From owner-freebsd-current@FreeBSD.ORG Mon Oct 20 23:00:19 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 176AC16A4C0; Mon, 20 Oct 2003 23:00:19 -0700 (PDT) Received: from mandy.mts.ru (mandy.mts.ru [81.211.47.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 176E143F85; Mon, 20 Oct 2003 23:00:17 -0700 (PDT) (envelope-from tiamat@komi.mts.ru) Received: from maeko.inside.mts.ru (maeko [192.168.10.3]) by mandy.mts.ru with SMTP id h9L5vwI09461; Tue, 21 Oct 2003 09:57:58 +0400 (MSD) Received: from stella.komi.mts.ru ([10.50.1.1]) by maeko.inside.mts.ru (NAVGW 2.5.2.12) with SMTP id M2003102110001430983 ; Tue, 21 Oct 2003 10:00:14 +0400 Received: from nbdav (nb-dav.komi.mts.ru [10.50.1.185]) (user=tiamat mech=NTLM bits=0) by stella.komi.mts.ru (MTS Komi/Smtp) with ESMTP id h9L60DpH060057; Tue, 21 Oct 2003 10:00:14 +0400 (MSD) (envelope-from tiamat@komi.mts.ru) Message-ID: <005001c39798$958ee920$b901320a@komi.mts.ru> From: =?koi8-r?B?5MXK1MXSIOHMxcvTwc7E0iD3wczF0tjF18ne?= To: "Scot W. Hetzel" , References: <003801c396f6$6b00ed90$b901320a@komi.mts.ru><00d201c3972a$4b5f6730$13fd2fd8@Admin02><001a01c3972f$6d8892f0$1d01320a@komi.mts.ru> <000a01c3976c$6bfe35b0$13fd2fd8@Admin02> <001f01c39771$26840230$13fd2fd8@Admin02> Date: Tue, 21 Oct 2003 10:00:08 +0400 Organization: =?koi8-r?B?5snMycHMIO/h7yAi7c/CyczYztnFIPTFzMXzydPUxc3ZIiDXIMcu8w==?= =?koi8-r?B?2cvU2dfLwdLFLCDy6y4=?= MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 cc: "Jacques A. Vidrine" Subject: Re: bug in NSS ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2003 06:00:19 -0000 > > > my /usr/local/lib/sasl2/Sendmail.conf: > > > pwcheck_method: auxprop > > > auxprop_plugin: sasldb > > Is the Sendmail.conf file the same as the FreeBSD file on the Solaris 8 > > system? yes of course. On Solaris8 box and FreeBSD box i have a identical configuration. > Does sasldblistusers2 on the Solaris 8 system list the test user in the > sasldb file? If it does, is their a test user in the FreeBSD sasldb file? yes. # sasldblistusers2 smmsp@server.komi.mts.ru: userPassword test@server.komi.mts.ru: userPassword on FreeBSD and Solaris i can successfully authenticate any user from sasldb via SMTP with sendmail: # perl -e 'use MIME::Base64; print encode_base64("test\0test\0test");' dGVzdAB0ZXN0AHRlc3Q= $ telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 server.komi.mts.ru ESMTP Sendmail 8.12.10/8.12.10; Tue, 21 Oct 2003 13:29:41 +0400 (MSD) ehlo test 250-server.komi.mts.ru Hello localhost [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-AUTH CRAM-MD5 DIGEST-MD5 NTLM LOGIN PLAIN 250-DELIVERBY 250 HELP AUTH PLAIN dGVzdAB0ZXN0AHRlc3Q= 235 2.0.0 OK Authenticated quit 221 2.0.0 server.komi.mts.ru closing connection Connection closed by foreign host. But, user test (from ldap) on FreeBSD cannot send mail from command line via /usr/bin/mail or /usr/sbin/sendmail (if MSP use AUTH): %id uid=1000(test) gid=1000(test) groups=1000(test) %date | /usr/sbin/sendmail -v root root... Connecting to [127.0.0.1] via relay... 220 server.komi.mts.ru ESMTP Sendmail 8.12.10/8.12.10; Tue, 21 Oct 2003 13:44:57 +0400 (MSD) >>> EHLO server.komi.mts.ru 250-server.komi.mts.ru Hello localhost [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-AUTH CRAM-MD5 DIGEST-MD5 NTLM LOGIN PLAIN 250-DELIVERBY 250 HELP >>> QUIT 221 2.0.0 server.komi.mts.ru closing connection root... Deferred: Temporary AUTH failure Closing connection to [127.0.0.1] On Solaris this work fine. And any user from /etc/passwd can successfully send mail from command line via /usr/bin/mail or /usr/sbin/sendmail (if MSP use AUTH) on Solaris and FreeBSD: $ id uid=70(pgsql) gid=70(pgsql) groups=70(pgsql) $ date|/usr/sbin/sendmail -v root root... Connecting to [127.0.0.1] via relay... 220 server.komi.mts.ru ESMTP Sendmail 8.12.10/8.12.10; Tue, 21 Oct 2003 13:51:05 +0400 (MSD) >>> EHLO server.komi.mts.ru 250-server.komi.mts.ru Hello localhost [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-AUTH CRAM-MD5 DIGEST-MD5 NTLM LOGIN PLAIN 250-DELIVERBY 250 HELP >>> AUTH PLAIN c21tc3AAc21tc3AAc21tc3A= 235 2.0.0 OK Authenticated >>> MAIL From: SIZE=29 AUTH=pgsql@server.komi.mts.ru 250 2.1.0 ... Sender ok >>> RCPT To: >>> DATA 250 2.1.5 ... Recipient ok 354 Enter mail, end with "." on a line by itself >>> . 250 2.0.0 h9L9p5XM000790 Message accepted for delivery root... Sent (h9L9p5XM000790 Message accepted for delivery) Closing connection to [127.0.0.1] >>> QUIT 221 2.0.0 server.komi.mts.ru closing connection AUTH PLAIN c21tc3AAc21tc3AAc21tc3A= - is authinfo for user smmsp (smmsp\0smmsp\0smmsp): # perl -e 'use MIME::Base64;print decode_base64("c21tc3AAc21tc3AAc21tc3A=") , "\n";' smmspsmmspsmmsp Why auth work for local users and don't work for nss_ldap users ? Thanks!