Hi Dear, I am a junior developer in Asp.net team. I have to develop newer version of one our existing application in vb.net.In which i have to authenticate user with 'AD LDS'. In earlier version of application,It was authenticating user with direct connecting
to ad server with searching object credential . But now when i am applying same code to in that scenario , it is not working. Please pull out me from this tremendous problems .
Below is my code which i have used over there .
Dim LdapPath As String = OBJSCUSER.LdapPath LdapPath = "LDAP://" + LdapPath Username = DomainName + "\" + Username Dim de As New DirectoryEntry(LdapPath, Username, Password)
Dim DS As New DirectorySearcher(de) DS.Filter = [String].Format("(SAMAccountName={0})", Username)
DS.PropertiesToLoad.Add("cn") Dim result As SearchResult Try result = DS.FindOne() DS.Dispose() de.Close() de.Dispose() Return True Catch ex As Exception
NitinJain100...
0 Points
1 Post
How to authenticate user with AD LDS in vb,net
Sep 05, 2011 08:22 AM|LINK
Hi Dear, I am a junior developer in Asp.net team. I have to develop newer version of one our existing application in vb.net.In which i have to authenticate user with 'AD LDS'. In earlier version of application,It was authenticating user with direct connecting to ad server with searching object credential . But now when i am applying same code to in that scenario , it is not working. Please pull out me from this tremendous problems .
Below is my code which i have used over there .
I would appreciate your input.