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:
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?