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.
Otomii Lu - ...
Contributor
3065 Points
490 Posts
Microsoft
Re: How to authenticate user with AD LDS in vb,net
Sep 07, 2011 06:52 AM|LINK
According to what you have said, maybe there is no error with your code. Other things affect the results.
It would be appreciated if you could debug the error and tell me which code throw the exception.
I would like to suggest you to refer the link below for some document about AD LDS:
http://msdn.microsoft.com/en-us/library/aa772138(v=VS.85).aspx
If you still have any problems, please let me know.