Can I change a password using a script

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

Can I change a password using a script

Postby snelo » 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?
snelo
 
Posts: 3
Joined: Apr 07 04 5:48 pm

Postby Pascal » 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.
Pascal

Qbik New Zealand
pascalv@qbik.com
http://www.qbik.com
Pascal
Qbik Staff
 
Posts: 2623
Joined: Sep 08 03 8:19 pm
Location: Auckland, New Zealand

Postby snelo » 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?
snelo
 
Posts: 3
Joined: Apr 07 04 5:48 pm

Postby Pascal » 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)
Pascal

Qbik New Zealand
pascalv@qbik.com
http://www.qbik.com
Pascal
Qbik Staff
 
Posts: 2623
Joined: Sep 08 03 8:19 pm
Location: Auckland, New Zealand

Postby snelo » 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)
snelo
 
Posts: 3
Joined: Apr 07 04 5:48 pm


Return to WinGate

Who is online

Users browsing this forum: No registered users and 5 guests

cron