[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: strange problem

> I'm successfully using mod_ldap on hosing system, with FreeBSD 4.8 and proftpd 1.2.9, OpenLDAP 2.0.23; however, I've got problems on 5.3/1.3.0/2.2.19.
> Problem is QUITE strange. 
>   if ((ld = ldap_init(ldap_server, LDAP_PORT)) == NULL) {
>     printf("mod_ldap: pr_ldap_connect(): ldap_init() to %s failed: %s", ldap_server, strerror(errno));
>     return -1;
>   }
>   if ((ret = ldap_simple_bind_s(ld, ldap_dn, ldap_dnpass) != LDAP_SUCCESS)) {
>     printf("mod_ldap: pr_ldap_connect(): ldap_simple_bind() to %s as %s:%s failed (%d): %s", ldap_server, ldap_dn, ldap_dnpass, ret, ldap_err2string(ret));
>     return -1;
>   }
> With either correct or incorrect password, I get error 1 on ldap_simple_bind_s: "Operations error".
> On the working box, with dn "cn=Manager,o=Sub Service" and correct password, the code works quite fine.
> rootdn is correct, checked several times.
> What could I've done wrong?...

Have you tested by performing a simple bind via the ldapsearch command
line tool.

ldapsearch -H ldap://localhost -D"{bind dn}" -w {password} -b"{base}

If that works, then your problem isn't with OpenLDAP.

Have you checked the OpenLDAP log?  Perhaps your trying to make a v2
bind on a server that denies v2?