Last post Nov 18, 2010 04:28 AM by targethelpdesk
Jul 28, 2005 10:01 AM|asasture|LINK
I am trying to connect to my college LDAP directory using ASP.NET. This LDap
does not have security as it returns only user demographic information.
What i am trying to do is, i am trying to look up all the information for
the user with user id 'testuser'. The following is the Vb.net code for my
Dim oRoot As DirectoryEntry = New
Dim oSearcher As DirectorySearcher = New DirectorySearcher(oRoot)
Dim oResult As SearchResult
Dim propName As String
Dim obProp As Object
oSearcher.Filter = "uupid=testuser"
oResult = oSearcher.FindOne
For Each propName In oResult.Properties.PropertyNames
For Each obProp In oResult.Properties(propName)
Response.Write("name= " & propName)
Response.Write("value= " & obProp)
Catch Ex as Exception
The above code fails at the line "oResult = oSearcher.FindOne" and gives me
an error which is useless: "Unknown error (0x80005000)"
Please help me!! Thanks in advanc
Aug 04, 2005 02:33 PM|asasture|LINK
Aug 22, 2005 09:11 AM|seanf12|LINK
What did you do to solve the problem? I am getting the same error using similar code
Sep 24, 2008 08:22 AM|targethelpdesk|LINK
We just came up against this error while extending the functionality of Target Helpdesk software product to be able to process multiple LDAP queries. In the end, we found this error was simply down to a control character at the end/start of the url that
you cannot see - such as a carriage return/line feed character.
We solved this by just applying a "trim" to the LDAP path to ensure we got rid of any control characters and all was good!
Hope this helps.
Matt - http://www.targethelpdesk.com
LDAP authentication eDirectory AD
Nov 18, 2010 03:49 AM|brsk|LINK
I applied "trim" to the LDAP path, but still I get the same error. Is there any other reason why this error shows up?
Thanks in advance.
Nov 18, 2010 04:28 AM|targethelpdesk|LINK
If you show me the code you are using and a sample of the url that is failing, I will take a look for you.
Matt - www.targethelpdesk.com