|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Validate UserI am trying to figure out how to validate a userid against AD. At the time
the user will be logged on as the local admin, right after puuling down a fresh image. the form asks for the userid and password to attach to a network share to install extra software on the machine. If the user types it wrong, it will just hang there. i am using shell("net use \\srvname\share /user:domain\Userid password", appwinstyle.hide, true). Is there a way to check to make sure it is valid before running the above command? Greg,
Do you know this class? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityPrincipalWindowsPrincipalClassTopic.asp Maybe something for your problem Cor That gave me something to look at but it will take time to understand. I am
still green at this so i really don't know what i am doing. Show quoteHide quote "Cor Ligthert" wrote: > Greg, > > Do you know this class? > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityPrincipalWindowsPrincipalClassTopic.asp > > Maybe something for your problem > > Cor > > > Did you try to find out why it's hanging with invalid data? If you can
solve that problem, you can leave the authentication up to Windows. In regards to validating the username and password, since Active Directory is LDAP-based it means you could use LDAP queries to try and check the username and password data. I haven't got a clue about LDAP queries (I've never had a need to learn), so I can't really help in that area :) If you want to use the LDAP route, check out the classes in the System.DirectoryServices namespace. Regards, -Adam. Greg wrote: Show quoteHide quote > I am trying to figure out how to validate a userid against AD. At the time > the user will be logged on as the local admin, right after puuling down a > fresh image. the form asks for the userid and password to attach to a > network share to install extra software on the machine. If the user types it > wrong, it will just hang there. i am using shell("net use \\srvname\share > /user:domain\Userid password", appwinstyle.hide, true). Is there a way to > check to make sure it is valid before running the above command?
stringbuilder replace doesn't work on vbLf , vbCrLf , vbCr
TextChanged Regular Expression to Parse HTML Sending Mail using dotNET Excel Reports in VB.NET Opening and Closing a form error : Cannot access a disposed object named "frmImage". Change/assign a value to dataset DATAGRID+SQL: INSERT - works, but SELECT - not :-( openfiledialog control locks folder sending string |
|||||||||||||||||||||||