[Postfixbuch-users] SASL authentication failure: Can only find author (no password)
Kai Kuehne
kai.kuehne at gmail.com
Di Okt 11 16:53:52 CEST 2005
Hi Patrick,
On 10/11/05, Patrick Ben Koetter <p at state-of-mind.de> wrote:
> Also: Erstelle einen sysmbolischen Link von smtpd.conf auf eine sample.conf im
> selben Verzeichnis in dem die smtpd.conf ist.
>
server # ls -l /usr/lib/sasl2/
total 272
-rwxr-xr-x 1 root root 686 Oct 8 15:47 libanonymous.la
lrwxrwxrwx 1 root root 22 Oct 8 15:47 libanonymous.so ->
libanonymous.so.2.0.20
lrwxrwxrwx 1 root root 22 Oct 8 15:47 libanonymous.so.2 ->
libanonymous.so.2.0.20
-rwxr-xr-x 1 root root 18096 Oct 8 15:47 libanonymous.so.2.0.20
-rwxr-xr-x 1 root root 674 Oct 8 15:47 libcrammd5.la
lrwxrwxrwx 1 root root 20 Oct 8 15:47 libcrammd5.so -> libcrammd5.so.2.0.20
lrwxrwxrwx 1 root root 20 Oct 8 15:47 libcrammd5.so.2 ->
libcrammd5.so.2.0.20
-rwxr-xr-x 1 root root 22192 Oct 8 15:47 libcrammd5.so.2.0.20
-rwxr-xr-x 1 root root 704 Oct 8 15:47 libdigestmd5.la
lrwxrwxrwx 1 root root 22 Oct 8 15:47 libdigestmd5.so ->
libdigestmd5.so.2.0.20
lrwxrwxrwx 1 root root 22 Oct 8 15:47 libdigestmd5.so.2 ->
libdigestmd5.so.2.0.20
-rwxr-xr-x 1 root root 55184 Oct 8 15:47 libdigestmd5.so.2.0.20
-rwxr-xr-x 1 root root 670 Oct 8 15:47 liblogin.la
lrwxrwxrwx 1 root root 18 Oct 8 15:47 liblogin.so -> liblogin.so.2.0.20
lrwxrwxrwx 1 root root 18 Oct 8 15:47 liblogin.so.2 -> liblogin.so.2.0.20
-rwxr-xr-x 1 root root 18096 Oct 8 15:47 liblogin.so.2.0.20
-rwxr-xr-x 1 root root 665 Oct 8 15:47 libntlm.la
lrwxrwxrwx 1 root root 17 Oct 8 15:47 libntlm.so -> libntlm.so.2.0.20
lrwxrwxrwx 1 root root 17 Oct 8 15:47 libntlm.so.2 -> libntlm.so.2.0.20
-rwxr-xr-x 1 root root 38608 Oct 8 15:47 libntlm.so.2.0.20
-rwxr-xr-x 1 root root 670 Oct 8 15:47 libplain.la
lrwxrwxrwx 1 root root 18 Oct 8 15:47 libplain.so -> libplain.so.2.0.20
lrwxrwxrwx 1 root root 18 Oct 8 15:47 libplain.so.2 -> libplain.so.2.0.20
-rwxr-xr-x 1 root root 18096 Oct 8 15:47 libplain.so.2.0.20
-rwxr-xr-x 1 root root 691 Oct 8 15:47 libsasldb.la
lrwxrwxrwx 1 root root 19 Oct 8 15:47 libsasldb.so -> libsasldb.so.2.0.20
lrwxrwxrwx 1 root root 19 Oct 8 15:47 libsasldb.so.2 -> libsasldb.so.2.0.20
-rwxr-xr-x 1 root root 26312 Oct 8 15:47 libsasldb.so.2.0.20
-rwxr-xr-x 1 root root 713 Oct 8 15:47 libsql.la
lrwxrwxrwx 1 root root 16 Oct 8 15:47 libsql.so -> libsql.so.2.0.20
lrwxrwxrwx 1 root root 16 Oct 8 15:47 libsql.so.2 -> libsql.so.2.0.20
-rwxr-xr-x 1 root root 26244 Oct 8 15:47 libsql.so.2.0.20
lrwxrwxrwx 1 root root 21 Oct 11 16:24 sample.conf -> /etc/sasl2/smtpd.conf
server # ls -l /etc/sasl2/
total 1
lrwxrwxrwx 1 root root 10 Oct 11 16:14 sample.conf -> smtpd.conf
-rw-r--r-- 1 root root 323 Oct 11 10:08 smtpd.conf
volatron sasl2 # ls -l /var/lib/sasl2/
total 0
lrwxrwxrwx 1 root root 21 Oct 11 16:51 sample.conf -> /etc/sasl2/smtpd.conf
lrwxrwxrwx 1 root root 21 Oct 11 10:06 smtpd.conf -> /etc/sasl2/smtpd.conf
volatron sample # ./sample-server -s rcmd -p 8000
Generating client mechanism list...
Sending list of 0 mechanism(s)
S:
Waiting for client mechanism...
Stimmt was nich, ne? :)
Beim sample-client habe ich die Hilfeseite angezeigt bekommen...
Habe jetzt einfach "server" und "client" (make server, make client) genommen,
denn die funktionieren (wo ist der Unterschied?):
server sample # ./server -s rcmd -p 8000
trying 2, 1, 6
trying 10, 1, 6
socket: Address family not supported by protocol
accepted new connection
send: {31}
LOGIN PLAIN DIGEST-MD5 CRAM-MD5
server sample # ./client -s rcmd -p 8000 -m PLAIN 127.0.0.1
receiving capability list... recv: {31}
LOGIN PLAIN DIGEST-MD5 CRAM-MD5
LOGIN PLAIN DIGEST-MD5 CRAM-MD5
please enter an authentication id: test at example.com
please enter an authorization id: test at example.com <-- ich habs in der
db von mail.example.com auf example.com geaendert
Password:
send: {5}
PLAIN
send: {1}
Y
send: {42}
test at example.com[0]test at example.com[0]testpass
authentication failed
closing connection
Der Server sagt mir dann noch:
recv: {5}
PLAIN
recv: {1}
Y
recv: {42}
test at volatron.de[0]test at volatron.de[0]testpass
starting SASL negotiation: user not foundclosing connection
Es tut mir leid.. ich versteh's nicht.. :(
Danke & Gruß
Kai
Mehr Informationen über die Mailingliste Postfixbuch-users