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

Berger, Stefan (IT - Management) stefan.berger at dima-systems.de
Mi Jan 4 15:45:16 CET 2006


naja siehste rennt doch!

> 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
>

heißt deine Domain auch test? Dann weißt du wo das "test" herkommt.

> 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'

wir lesen mal aufmerksam die config:

%p: Name of the property being fetched/stored. This could technically be
anything, but SASL authentication will try userPassword and
cmusaslsecretMECHNAME (where MECHNAME is the name of a SASL mechanism).

... hast du ne Spalte "cmusaslsecretDIGEST"? sicher nicht



> Die Felder der sql Tabelle sind wie im Buch:
>
> id,username,userealm,userpassword,auth
>
> Gruß Holm
>
>
>
>
> --
> _______________________________________________
> Postfixbuch-users mailingliste
> Heinlein Professional Linux Support GmbH
>
> Postfixbuch-users at listi.jpberlin.de
> http://listi.jpberlin.de/mailman/listinfo/postfixbuch-users
>


-- 
Stefan Berger

- Systemadministrator -

DIMA Systems AG
Nonnenstraße 39
04229 Leipzig

Tel.:   +49 341 2668 - 0
Fax.:   +49 341  2866 - 333
mailto: stefan.berger at dima-systems.de
        www.dima-systems.de

This e-mail may contain information that is privileged and confidential.
The information is intended only for the use of the addressee. If you are
not the intended recipient, you are hereby notified that any dissemination
of this communication is strictly prohibited and may be unlawful. If you
have received this e-mail in error, please notify DIMA Systems AG
immediately and erase all copies of the message.




Mehr Informationen über die Mailingliste Postfixbuch-users