[Dovecot] attr_names in test67

Thomas Hummel hummel at pasteur.fr
Fri Apr 8 19:11:27 EEST 2005


Hello,

I'm wondering if the following situation is valid (though I think it
isn't since I still cannot authenticate with ldap pass/userdb on
test67 running on FreeBSD-5.3).

Is it normal that the passdb_ldap_conn->attr_names second element (for
instance) "turns to" "homeDirectory" as the following step by step gdb
run sample shows ? :


--
Breakpoint 1, userdb_ldap_preinit (args=0x80796d0 "/usr/local/dovecot/etc/dovecot-ldap.conf")
    at userdb-ldap.c:201
201             userdb_ldap_conn = db_ldap_init(args);
(gdb) p passdb_ldap_conn->attr_names[1]
$1 = 0x8079990 "userPassword"
(gdb) cont
Continuing.

Breakpoint 2, userdb_ldap_init (args=0x80796d0 "/usr/local/dovecot/etc/dovecot-ldap.conf")
    at userdb-ldap.c:208
208             (void)db_ldap_connect(userdb_ldap_conn);
(gdb) p passdb_ldap_conn->attr_names[1]
$2 = 0x80799e0 "homeDirectory"
(gdb) cont
Continuing.

Breakpoint 3, ldap_lookup_pass (auth_request=0x5, ldap_request=0x14) at passdb-ldap.c:157
157             struct ldap_connection *conn = passdb_ldap_conn;
(gdb) p passdb_ldap_conn->attr_names[1]
$3 = 0x80799e0 "homeDirectory"
(gdb) cont
Continuing.
--


Could it explain why I get 

- in the error log :

--
dovecot: Apr 08 18:08:15 Error: auth(default): ldap(dovetest,127.0.0.1): No password in reply
dovecot: Apr 08 18:08:15 Error: auth(default): file passdb-ldap.c: line 122 (handle_request): assertion failed: (scheme != NULL)
--

- in the info log :

dovecot: Apr 08 18:08:15 Info: auth(default): ldap(dovetest,127.0.0.1): base=ou=personnes, dc=pasteur, dc=fr scope=subtree filter=(&(objectClass=posixAccount)(uid=dovetest)) fields=uid,homeDirectory,,,uidNumber,gidNumber

?

Thanks for your help.

-- 
Thomas Hummel 	    | Institut Pasteur
<hummel at pasteur.fr> | Pôle informatique - systèmes et réseau




More information about the dovecot mailing list