• RSS
  • Twitter
  • FaceBook

Security Forums

Log in

FAQ | Search | Usergroups | Profile | Register | RSS | Posting Guidelines | Recent Posts

vbscript on active directory

Users browsing this topic:0 Security Fans, 0 Stealth Security Fans
Registered Security Fans: None
Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Programming and More

View previous topic :: View next topic  
Author Message
wickerandvine
New Member
New Member


Joined: 20 Oct 2006
Posts: 25
Location: alang-alang Mandaue

Offline

PostPosted: Tue May 12, 2009 7:32 pm    Post subject: vbscript on active directory Reply with quote

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.

Thanks
Back to top
View user's profile Send private message
ryansutton
Trusted SF Member
Trusted SF Member


Joined: 25 Aug 2004
Posts: 67
Location: San Francisco, California

Offline

PostPosted: Tue May 12, 2009 8:06 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
wickerandvine
New Member
New Member


Joined: 20 Oct 2006
Posts: 25
Location: alang-alang Mandaue

Offline

PostPosted: Tue May 12, 2009 8:24 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
AdamV
SF Mod
SF Mod


Joined: 06 Oct 2004
Posts: 24
Location: Leeds, UK

Offline

PostPosted: Thu May 21, 2009 4:06 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
wickerandvine
New Member
New Member


Joined: 20 Oct 2006
Posts: 25
Location: alang-alang Mandaue

Offline

PostPosted: Thu Jun 11, 2009 8:47 pm    Post subject: Reply with quote

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.

Thanks
Back to top
View user's profile Send private message
jsatan
Just Arrived
Just Arrived


Joined: 14 Jun 2007
Posts: 0


Offline

PostPosted: Sun Jun 14, 2009 12:33 am    Post subject: Reply with quote

Have a look at this and mode it to VB.

Second one down is a better option.

http://stackoverflow.com/questions/290548/c-validate-a-username-and-password-against-active-directory
Back to top
View user's profile Send private message
Display posts from previous:   

Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Programming and More All times are GMT + 2 Hours
Page 1 of 1


 
Jump to:  
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

Community Area

Log in | Register