Joined: 20 Oct 2006 Posts: 25 Location: alang-alang Mandaue
Posted: Tue May 12, 2009 7:32 pm Post subject: vbscript on active directory
Hi,
I want to create a small vbscript that gets user input like username and password and then checks to see if that username and password exist in active directory and is correct or not. Could someone help me out if they know a code or know how to code it? Your help would be much appreciated.
Joined: 25 Aug 2004 Posts: 67 Location: San Francisco, California
Posted: Tue May 12, 2009 8:06 pm Post subject:
I'm not sure I understand what you are looking for but have you checked to see if DSQUERY can do what you need? It can query just about anything from AD.
Joined: 20 Oct 2006 Posts: 25 Location: alang-alang Mandaue
Posted: Tue May 12, 2009 8:24 pm Post subject:
It means I want a code for a vbscript that would ask for user inputs like uername and password and checks that username and password if it exists on active directory and if the password for the username is the same as the password in the active directory.
If you want to compare a password to the one stored in AD, you will have to hash it first, since they are not (usually) stored in plain text.
I think this may be a whole lot more complicated than you seem to think.
Joined: 20 Oct 2006 Posts: 25 Location: alang-alang Mandaue
Posted: Thu Jun 11, 2009 8:47 pm Post subject:
I see, you said it right I think it is more complicated. Well, say i want to create an vbscript that would ask for user name and password and use it later do I have to encrypt the variable holding it or whatever? I need to know how to securely do a scripting which involves getting the username and password input of user.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum