Last post Nov 19, 2009 09:19 PM by chuuburg
Nov 19, 2009 09:19 PM|chuuburg|LINK
Hi, i need some help with using Visual studio 2008 to login using active directory.
The programming language i am using is VB
Because i have to insert into an audit_log database to record down when the user logins (both failed and successful)
But i am unable to figure out how to check for the wrong password.
A short version of the codes im currently using:
adUser = ActiveDirAuthentication.AuthUser(Me.cboActiveDirectory.SelectedItem.ToString,
lbl_invalid.Text = "Invalid Login!"
"Login is successful"
What i do not know is that if adUser is nothing what does it signify?
What value would the adUser return?
The incorrect password in the Active Directory is wrong ? or there is no existing user in the AD.