hi, it seem to me that dovecot support only v2 ldap protocol but openldap2.1 support only v3 (or you can enable v2 in the conf file, but it seems they wouldn't like to support it in the future). will dovecot support v3 ldap protocal? thanks.
-- Levente "Si vis pacem para bellum!"
On Thu, 2003-03-06 at 14:25, Farkas Levente wrote:
it seem to me that dovecot support only v2 ldap protocol but openldap2.1 support only v3 (or you can enable v2 in the conf file, but it seems they wouldn't like to support it in the future). will dovecot support v3 ldap protocal?
Why do you think it supports only v2? I don't really know what their difference is, but it should be v3.
Timo Sirainen wrote:
On Thu, 2003-03-06 at 14:25, Farkas Levente wrote:
it seem to me that dovecot support only v2 ldap protocol but openldap2.1 support only v3 (or you can enable v2 in the conf file, but it seems they wouldn't like to support it in the future). will dovecot support v3 ldap protocal?
Why do you think it supports only v2? I don't really know what their difference is, but it should be v3.
for log file:
Mar 3 23:02:51 atom dovecot-auth: LDAP: ldap_simple_bind_s() failed (dn cn=proxyuser, ou=People, dc=bnap, dc=hu): Protocol error
and when I add allow bind_v2 to slapd.conf the error message disappear...
-- Levente "Si vis pacem para bellum!"
I think it would be trivial to make dovecot support LDAPv3.
All it would entail is modifying ldap_conn_open() in src/auth/db-ldap.c.
code might look something like:
int version = LDAP_VERSION3;
if (ldap_set_option (conn->ld, LDAP_OPT_PROTOCOL_VERSION,
&version)!= LDAP_OPT_SUCCESS)
{
i_fatal ("could not set LDAP_OPT_PROTOCOL_VERSION %d", version);
}
How Timo would want to integrate with configuration is up to him. But at any rate, if you really NEED LDAPv3, you now have it.
d!
On Thu, 2003-03-06 at 10:42, Farkas Levente wrote:
it seem to me that dovecot support only v2 ldap protocol but openldap2.1 support only v3 (or you can enable v2 in the conf file, but it seems they wouldn't like to support it in the future). will dovecot support v3 ldap protocal?
participants (3)
-
David E. Storey
-
Farkas Levente
-
Timo Sirainen