authentication problem with LDAP query (I think)

authentication problem with LDAP query (I think)

Post by s_m_ » Thu, 28 Aug 2008 20:27:18


Basically, I have an aspx page generating the same query as an asp page.
The asp (classic) version works fine, but the ASP.NET (vb) one gives me an
error 80005000, no matter how I try it.

On Error Resume Next
'Try
Dim oRoot As DirectoryEntry = New DirectoryEntry(sql)
If Err.Number <> 0 Then Trace.Write("139 " & Err.Description)
oRoot.Username = "xxx\xxxxxx"
If Err.Number <> 0 Then Trace.Write("142 " & Err.Description)
oRoot.Password = "xxxxxxxx"
If Err.Number <> 0 Then Trace.Write("144 " & Err.Description)
'On Error Resume Next
oRoot.AuthenticationType = AuthenticationTypes.Secure
If Err.Number <> 0 Then Trace.Write("146 " & Err.Description)
Dim oSearcher As DirectorySearcher = New DirectorySearcher(oRoot)
If Err.Number <> 0 Then Trace.Write("147 " & Err.Description)

Dim oResults As SearchResultCollection
If Err.Number <> 0 Then Trace.Write("151 " & Err.Description)
Dim oResult As SearchResult
'Dim RetArray As New Hashtable()
' Try

'oSearcher.PropertiesToLoad.Add("uid")
'oSearcher.PropertiesToLoad.Add("givenname")
'oSearcher.PropertiesToLoad.Add("cn")
' On Error Resume Next
oResults = oSearcher.FindAll
If Err.Number <> 0 Then Trace.Write("160 " & Err.Description)

the error comes in the last line. I have added the .username, .password and
AuthenticationTypes.Secure lines with no improvement.
 
 
 

1. My I's are coming up i's. (lower case)

2. LDAP query construction and LDAP query tool

I am trying to find out which users have a limit set that restricts the size
of emails they can send.
The attribute that gets populated is "SubmissionContLength" and it is blank
(or null) when there is no limit set.
Does anyone have an LDAP query that I can issue against Active DIrectory
that will return the info I need?

Also is there a tool like SQL Query Analyser that I can use to execute LDAP
commands and examine the results

Thanks

Bob

3. [LDAP] Speeding up authentication using ldap

4. Querying AD via LDAP w/ simple authentication - need domain name?

5. LDAP Authentication - Unable to load configuration '/var/ldap/ldap_client_file'

6. LDAPS authentication/LDAP path format

7. LDAP Authentication - Unable to load configuration '/var/ldap/ldap_client_file'

8. LDAP authentication issues -- simple authentication does not work

9. Problem with LDAP authentication

10. Problem in LDAP authentication

11. Problem in using LDAP for form authentication in sharepoint sites.

12. LDAP/PAM_LDAP authentication problem on Solaris 8 box

13. Redhat 9 -- LDAP Authentication Problems

14. authentication problem with apache2 + ldap + active directory

15. LDAP authentication problem