Re: [Postfixbuch-users] kein einloggen mit cyradm möglich

Holm Kapschitzki holm at oleco.net
Mi Jan 4 14:37:33 CET 2006


Berger, Stefan (DIMA Systems AG) schrieb:

>Moin!
>
>kann die Aufregung hier gar nicht verstehen, der Mann stellt nur normale
>Fragen.
>Also Fakt ist dass du vergessen hast deine imapd.conf anzupassen. Poste
>mal deinen imapd.conf....sie sollte unter anderem diese Optionen enthalten:
>
>sasl_pwcheck_method: auxprop
>log_level:      3
>sasl_auxprop_plugin: sql
>sasl_mech_list: plain login
>sasl_sql_engine: mysql
>sasl_sql_hostnames: woauchimmer
>sasl_sql_user: xxxx
>sasl_sql_passwd: xxxx
>sasl_sql_database: xxxx
>sasl_sql_select: SELECT password FROM xxxx WHERE xxxx = '%u'
>
>  
>

Danke! Also so ganz falsch lag ich ja auch nicht. Natürlich gehört der 
Benutzer cyrus mit Passwort in die sql Tabelle. Nichts da mit 
saslpasswd. Ich muss bloss vor den sql Parametern ein sasl_ 
vorschreiben. Hast Du mir ja auch geschrieben und hab ich im Internet 
auch endlich gefunden. Die einzige Anpassung, die ich machen musste 
währen die Zeilen:

sasl_sql_select: SELECT %p FROM users WHERE username = '%u' AND auth = '1'
sasl_mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5

Somit sieht meine imap.conf unter Debian so aus:

asl_pwcheck_method: auxprop
log_level:      3
sasl_auxprop_plugin: sql
sasl_mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5
sasl_sql_engine: mysql
sasl_sql_hostnames: localhost
sasl_sql_user: xxx
sasl_sql_passwd: xxx
sasl_sql_database: xxx
sasl_sql_select: SELECT %p FROM users WHERE username = '%u' AND auth = '1'
configdirectory: /var/lib/cyrus
partition-default: /var/spool/cyrus/mail
newsspool: /var/spool/news
altnamespace: no
unixhierarchysep: no
admins: cyrus
allowanonymouslogin: no
popminpoll: 1
umask: 077
sieveusehomedir: false
sievedir: /var/spool/sieve
hashimapspool: true
sasl_auto_transition: no
lmtpsocket: /var/run/cyrus/socket/lmtp
idlesocket: /var/run/cyrus/socket/idle
notifysocket: /var/run/cyrus/socket/notify

Das ist dann der entsprechende auth.log:

Jan  4 16:10:45 test cyrus/imapd[1339]: sql auxprop plugin using mysql 
engine
Jan  4 16:10:46 test cyrus/imapd[1339]: DIGEST-MD5 server step 1
Jan  4 16:10:46 test perl: DIGEST-MD5 client step 2
Jan  4 16:10:48 test cyrus/imapd[1339]: DIGEST-MD5 server step 2
Jan  4 16:10:48 test cyrus/imapd[1339]: sql plugin Parse the username cyrus
Jan  4 16:10:48 test cyrus/imapd[1339]: sql plugin try and connect to a 
host
Jan  4 16:10:48 test cyrus/imapd[1339]: sql plugin trying to open db 
'xxx' on host 'localhost'
Jan  4 16:10:48 test cyrus/imapd[1339]: begin transaction
Jan  4 16:10:48 test cyrus/imapd[1339]: sql plugin create statement from 
userPassword cyrus test
Jan  4 16:10:48 test cyrus/imapd[1339]: sql plugin doing query SELECT 
userPassword FROM users WHERE username = 'cyrus' AND auth = '1';
Jan  4 16:10:48 test cyrus/imapd[1339]: sql plugin create statement from 
cmusaslsecretDIGEST-MD5 cyrus test
Jan  4 16:10:48 test cyrus/imapd[1339]: sql plugin doing query SELECT 
cmusaslsecretDIGEST-MD5 FROM users WHERE username = 'cyrus' AND auth = '1';
Jan  4 16:10:48 test cyrus/imapd[1339]: sql query failed: Unknown column 
'cmusaslsecretDIGEST' in 'field list'
Jan  4 16:10:48 test cyrus/imapd[1339]: commit transaction
Jan  4 16:10:48 test cyrus/imapd[1339]: sql plugin Parse the username cyrus
Jan  4 16:10:48 test cyrus/imapd[1339]: sql plugin try and connect to a 
host
Jan  4 16:10:48 test cyrus/imapd[1339]: sql plugin trying to open db 
'xxx' on host 'localhost'
Jan  4 16:10:48 test perl: DIGEST-MD5 client step 3

Das einzige was mich zur Zeit stört ist. Mein Rechner heisst test. Hat 
das "test" hier was zu bedeuten:

Jan  4 16:10:48 test cyrus/imapd[1339]: sql plugin create statement from 
userPassword cyrus test

Mit der Zeile kann ich noch ichts anfangen:

Jan  4 16:10:48 test cyrus/imapd[1339]: sql query failed: Unknown column 
'cmusaslsecretDIGEST' in 'field list'

Die Felder der sql Tabelle sind wie im Buch:

id,username,userealm,userpassword,auth

Gruß Holm







Mehr Informationen über die Mailingliste Postfixbuch-users