[Dovecot] auth protocol, buffers

Thomas Hummel hummel at pasteur.fr
Tue Sep 20 20:29:39 EEST 2005


Hello Timo,

I'm curious about 2 points (I'm using alpha2 but these are general
questions) :

Background : 

  . I connect to dovecot-1.0.alpha2 through thunderbird
  . I use ldap pass/userdb and PLAIN mech
  . I've only got one auth block in dovecot.conf (all pass/userdb/mech
    except ldap/PLAIN are commented)

  1) I notice that, for one thunderbird connection trial, imap-login
     issues 2 AUTH messages. Why ? What info does the "resp=" hold the second
     time ? It goes like this :

	Info: Dovecot v1.0.alpha2 starting up
	Info: auth(default): client in: AUTH   1       PLAIN   service=IMAP     lip=xxx.xxx.xxx.xxx        rip=xxx.xxx.xxx.xxx
	Info: auth(default): client out: CONT  1
	Info: auth(default): client in: CONT   1       AGRvdmV0ZXN0AGZvbw==
	Info: auth(default): ldap(dovetest,xxx.xxx.xxx.xxx): base=ou=personnes, dc=pasteur, dc=fr scope=subtree filter=(&(objectClass=posixAccount)(uid=dovetest)) fields=uid,userPassword
	Info: auth(default): ldap(dovetest,xxx.xxx.xxx.xxx): userPassword(password)={CRYPT}sa8ufSVwLUHVU uid(user)=dovetest
	Info: auth(default): client out: FAIL  1       user=dovetest
	Info: auth(default): client in: AUTH   2       PLAIN   service=IMAP     lip=xxx.xxx.xxx.xxx        rip=xxx.xxx.xxx.xxx        resp=AGRvdmV0ZXN0AGZvbw==
	Info: auth(default): ldap(dovetest,157.99.64.42): base=ou=personnes, dc=pasteur, dc=fr scope=subtree filter=(&(objectClass=posixAccount)(uid=dovetest)) fields=uid,userPassword
	Info: auth(default): ldap(dovetest,157.99.64.42): userPassword(password)={CRYPT}sa8ufSVwLUHVU uid(user)=dovetest
dovecot: Sep 20 17:58:27 Info: auth(default): client out: FAIL  2       user=dovetest


  2) Which buffer/string handling function (among those in your lib)
     should I use to safely allocate a string and/or copy a string into
     another ? (instead of using str[n|l]cpy for instance) ?

Thank you.

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


More information about the dovecot mailing list