[Auth_ldap] Could not connect to LDAP server: No such file or directory(Now protocol Error)

jay alvarez qmailb0y at yahoo.com
Sun Mar 5 18:01:55 PST 2006


Hi,

 Ok, here's what I did:
 
 There are only 3 line you have to comment out: you don't have to revert to 
1.6.0 like I did, most likely.

  
 You mean these lines:
 
 //#if defined(WITH_OPENLDAP) && LDAP_VENDOR_VERSION >= 20000
 //   if ((ldap_initialize(&(sec->ldc->ldap), (sec->url))) != LDAP_SUCCESS) {
 //#else
     if ((sec->ldc->ldap = ldap_init(sec->host, sec->port)) == NULL) {
 //#endif
 
 Commenting those lines did solved the problem:
 "Could not connect to LDAP server: No such file or directory"
 
 but now, the error turned into:
 
 Could not bind to LDAP server `192.168.0.3' as uid
 =jay,ou=people,o=example,dc=com: Protocol error
 
 
 I make sure that I deleted the old auth_ldap.so and build from a clean tarball..
 
 What's happening here??
 Perhaps I should revert back to 1.6.0 with patches as the instructions on that site are mostly for 1.6.0.
 What do you think?
 
 
Cheers,
ace



On Thursday 02 March 2006 20:09, jay alvarez wrote:
> Hi,
>
> I turned on my apache to debugging level and here's
> what I got:
>
> Upon visiting the protected site...
>
> Entering ldap_authenticate_basic_user
> authenticate: using URL
> ldap://192.168.0.3:389/ou=people,o=example,dc=com
> authenticate: result is 401
>
> Now, after entering my credentials in the login
> form...
>
> Entering ldap_authenticate_basic_user
> authenticate: using URL
> ldap://192.168.0.3:389/ou=people,o=example,dc=com
> entry for `jay' is not in the cache
> Entering auth_ldap_connect_to_server
> Opening connection to ldap server(s) `192.168.0.3'
> LDAP OP: init
> Could not connect to LDAP server: No such file or
> directory
>
> Any idea what's happening here??
>
>
> My Directory contains:
>
> AuthLDAPAuthoritative on
> AuthLDAPBindDN uid=jay,ou=people,o=example,dc=com
> AuthLDAPBindPassword secret
> AuthLDAPEnabled on
> AuthLDAPUrl
> ldap://192.168.0.3:389/ou=people,o=example,dc=com
> require valid-user
>
>
> Apache/1.3.34 (Unix) PHP/4.4.2 mod_ssl/2.8.25
> OpenSSL/0.9.7
> auth_ldap-1.6.1
> $OpenLDAP: slapd 2.3.17
>
>
> ./configure
> --with-apxs=/usr/local/sbin/apxs
> --with-ldap-sdk=openldap
> --with-sdk-headers=/usr/local/openldap/include
> --with-sdk-libs=/usr/local/openldap/lib
> --with-ssl
> --with-activate
>
> Thanks.
>
>
 

		
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 
		
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.rudedog.org/pipermail/auth_ldap/attachments/20060305/6ada626c/attachment.htm 


More information about the Auth_ldap mailing list