Switch to full style
Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems
Post a reply

Can I change a password using a script

Apr 08 04 11:24 am

At the school where I work, we allow students to connect to the internet via a single wingate user - 'student'. To stop the students from using the internet when they shouldn't we regularly change the password. What we'd like to do is change the password using a program or script - is this possible? I realise I can do it via sendkeys from vb but that method is a bit hit and miss at best - is there a command-line call or DLL or something I can use to change a password for a user?

Apr 16 04 6:52 pm

Alas, it seems there isn't an easy way to do this. If you run a telnet service as a command shell, you can enable/disable users. But you cannot change their passwords.

Apr 16 04 7:23 pm

So there isn't an easy way... does this mean there is a hard way? How hard? I'm guessing the username/passwords are stored somewhere can we generate a MD5 hash and update a registry setting or something? or is the information on how we might do this somethink that qbik isn't willing to release?

Apr 16 04 7:45 pm

Might be a hard way. Let me think about it, I'll have to ask Adrien what we can release / not release. One way might be to create a subsequent user account with the new password that is initially disabled, then just copy that across. (Resetting the name and the enabled state)

Apr 18 04 9:05 pm

Thank you, I do appreciate that there is confidential information that can't be released.

Please also note that I am a programmer (in addition to High School teacher) and have done quite a bit programming VB including DLL use. So if there is a DLL that I could hook into to use your routines just not via the normal interface that is something I could do if I was given the DLL and function call syntax (even just the C syntax since I can convert between them - or get a friend to write a wrapper if its one of those DLLs that can't be called directly from VB)
Post a reply