[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 22:52:04 PST 2006
Dave Carrigan <dave at rudedog.org> wrote: jay alvarez wrote:
> 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
Are you using ldap over SSL or plain ldap?
I started ldap as "ldap -H "ldap:/// ldapi:/// ldaps:///"
The URL I specified in my httpd.conf uses plain ldap
AuthLDAPUrl ldap://192.168.0.3:389/ou=people,o=example,dc=com??sub
Also, my ldap installation also supports TLS/SSL but
both 1.6.1 and 1.6.0 with patches returns the same error.
I even tried to change
>=20000 to < 20000 as someone advised..
Anymore idea?
--
Dave Carrigan
Seattle, WA, USA
dave at rudedog.org | http://www.rudedog.org/
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL-Postfix
Dave is currently listening to The Pogues - Greenland Whale Fisheries
(Live, 1985-03-01)
_______________________________________________
Auth_ldap mailing list
Auth_ldap at rudedog.org
http://www.rudedog.org/mailman/listinfo/auth_ldap
---------------------------------
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/45dc432a/attachment.htm
More information about the Auth_ldap
mailing list