Re: saslauthd on AMD64

2008-07-14 Thread Duane Hill

On Mon, 14 Jul 2008, Yuri Pankov wrote:


On Sun, Jul 13, 2008 at 04:58:56PM +, Duane Hill wrote:

On Sun, 13 Jul 2008, Martin Schweizer wrote:


Hello Duane

Do you have some inputs (config files etc.)?


$ ls -l /usr/local/lib/sasl2/
-rw-r--r--  1 root  wheel 26 Jun 17 22:11 Sendmail.conf
-rw-r--r--  1 root  wheel  22834 Jun 11 19:16 libcrammd5.a
-rwxr-xr-x  1 root  wheel815 Jun 11 19:16 libcrammd5.la
lrwxr-xr-x  1 root  wheel 15 Jun 11 19:16 libcrammd5.so -> libcrammd5.so.2
-rwxr-xr-x  1 root  wheel  24482 Jun 11 19:16 libcrammd5.so.2
-rw-r--r--  1 root  wheel  63976 Jun 11 19:16 libdigestmd5.a
-rwxr-xr-x  1 root  wheel838 Jun 11 19:16 libdigestmd5.la
lrwxr-xr-x  1 root  wheel 17 Jun 11 19:16 libdigestmd5.so -> 
libdigestmd5.so.2
-rwxr-xr-x  1 root  wheel  57212 Jun 11 19:16 libdigestmd5.so.2
-rw-r--r--  1 root  wheel  20046 Jun 11 19:16 liblogin.a
-rwxr-xr-x  1 root  wheel809 Jun 11 19:16 liblogin.la
lrwxr-xr-x  1 root  wheel 13 Jun 11 19:16 liblogin.so -> liblogin.so.2
-rwxr-xr-x  1 root  wheel  20895 Jun 11 19:16 liblogin.so.2
-rw-r--r--  1 root  wheel  19894 Jun 11 19:16 libplain.a
-rwxr-xr-x  1 root  wheel809 Jun 11 19:16 libplain.la
lrwxr-xr-x  1 root  wheel 13 Jun 11 19:16 libplain.so -> libplain.so.2
-rwxr-xr-x  1 root  wheel  20749 Jun 11 19:16 libplain.so.2
-rw-r--r--  1 root  wheel 68 Jun 17 15:17 smtpd.conf

$ cat /usr/local/lib/sasl2/smtpd.conf
pwcheck_method: saslauthd
mechlist: LOGIN PLAIN CRAM-MD5 DIGEST-MD5

$ cat /usr/local/etc/saslauthd.conf
ldap_servers: ldap://ldap.example.com
ldap_bind_dn: [EMAIL PROTECTED]
ldap_bind_pw: password
ldap_search_base: cn=%d
ldap_filter: mail=%u
ldap_timeout: 60
ldap_time_limit: 60




Really just a guess as you are using LDAP. Try the attached patch and
rebuild cyrus-sasl2-saslauthd. If it doesn't help, try rebuilding sasl*
and openldap-client using WITH_DEBUG defined and post backtrace.


Thanks much! It works now.

-d
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: saslauthd on AMD64

2008-07-13 Thread Yuri Pankov
On Sun, Jul 13, 2008 at 04:58:56PM +, Duane Hill wrote:
> On Sun, 13 Jul 2008, Martin Schweizer wrote:
>
>> Hello Duane
>>
>> Do you have some inputs (config files etc.)?
>
> $ ls -l /usr/local/lib/sasl2/
> -rw-r--r--  1 root  wheel 26 Jun 17 22:11 Sendmail.conf
> -rw-r--r--  1 root  wheel  22834 Jun 11 19:16 libcrammd5.a
> -rwxr-xr-x  1 root  wheel815 Jun 11 19:16 libcrammd5.la
> lrwxr-xr-x  1 root  wheel 15 Jun 11 19:16 libcrammd5.so -> libcrammd5.so.2
> -rwxr-xr-x  1 root  wheel  24482 Jun 11 19:16 libcrammd5.so.2
> -rw-r--r--  1 root  wheel  63976 Jun 11 19:16 libdigestmd5.a
> -rwxr-xr-x  1 root  wheel838 Jun 11 19:16 libdigestmd5.la
> lrwxr-xr-x  1 root  wheel 17 Jun 11 19:16 libdigestmd5.so -> 
> libdigestmd5.so.2
> -rwxr-xr-x  1 root  wheel  57212 Jun 11 19:16 libdigestmd5.so.2
> -rw-r--r--  1 root  wheel  20046 Jun 11 19:16 liblogin.a
> -rwxr-xr-x  1 root  wheel809 Jun 11 19:16 liblogin.la
> lrwxr-xr-x  1 root  wheel 13 Jun 11 19:16 liblogin.so -> liblogin.so.2
> -rwxr-xr-x  1 root  wheel  20895 Jun 11 19:16 liblogin.so.2
> -rw-r--r--  1 root  wheel  19894 Jun 11 19:16 libplain.a
> -rwxr-xr-x  1 root  wheel809 Jun 11 19:16 libplain.la
> lrwxr-xr-x  1 root  wheel 13 Jun 11 19:16 libplain.so -> libplain.so.2
> -rwxr-xr-x  1 root  wheel  20749 Jun 11 19:16 libplain.so.2
> -rw-r--r--  1 root  wheel 68 Jun 17 15:17 smtpd.conf
>
> $ cat /usr/local/lib/sasl2/smtpd.conf
> pwcheck_method: saslauthd
> mechlist: LOGIN PLAIN CRAM-MD5 DIGEST-MD5
>
> $ cat /usr/local/etc/saslauthd.conf
> ldap_servers: ldap://ldap.example.com
> ldap_bind_dn: [EMAIL PROTECTED]
> ldap_bind_pw: password
> ldap_search_base: cn=%d
> ldap_filter: mail=%u
> ldap_timeout: 60
> ldap_time_limit: 60



Really just a guess as you are using LDAP. Try the attached patch and 
rebuild cyrus-sasl2-saslauthd. If it doesn't help, try rebuilding sasl*
and openldap-client using WITH_DEBUG defined and post backtrace.


HTH,
Yuri
Index: ports/security/cyrus-sasl2-saslauthd/Makefile
===
RCS file: /home/ncvs/ports/security/cyrus-sasl2-saslauthd/Makefile,v
retrieving revision 1.51
diff -u -r1.51 Makefile
--- ports/security/cyrus-sasl2-saslauthd/Makefile   7 Aug 2007 16:46:22 
-   1.51
+++ ports/security/cyrus-sasl2-saslauthd/Makefile   14 Jul 2008 02:31:44 
-
@@ -62,6 +62,9 @@
 WANT_OPENLDAP_VER= ${WITH_OPENLDAP_VER}
 .endif
 USE_OPENLDAP=  yes
+.if ${WANT_OPENLDAP_VER} >= 23
+CFLAGS+=-DLDAP_DEPRECATED
+.endif
 CONFIGURE_ARGS+=--with-ldap=${LOCALBASE}
 .endif
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: saslauthd on AMD64

2008-07-13 Thread Duane Hill

On Sun, 13 Jul 2008, Martin Schweizer wrote:


Hello Duane

Do you have some inputs (config files etc.)?


$ ls -l /usr/local/lib/sasl2/
-rw-r--r--  1 root  wheel 26 Jun 17 22:11 Sendmail.conf
-rw-r--r--  1 root  wheel  22834 Jun 11 19:16 libcrammd5.a
-rwxr-xr-x  1 root  wheel815 Jun 11 19:16 libcrammd5.la
lrwxr-xr-x  1 root  wheel 15 Jun 11 19:16 libcrammd5.so -> libcrammd5.so.2
-rwxr-xr-x  1 root  wheel  24482 Jun 11 19:16 libcrammd5.so.2
-rw-r--r--  1 root  wheel  63976 Jun 11 19:16 libdigestmd5.a
-rwxr-xr-x  1 root  wheel838 Jun 11 19:16 libdigestmd5.la
lrwxr-xr-x  1 root  wheel 17 Jun 11 19:16 libdigestmd5.so -> 
libdigestmd5.so.2
-rwxr-xr-x  1 root  wheel  57212 Jun 11 19:16 libdigestmd5.so.2
-rw-r--r--  1 root  wheel  20046 Jun 11 19:16 liblogin.a
-rwxr-xr-x  1 root  wheel809 Jun 11 19:16 liblogin.la
lrwxr-xr-x  1 root  wheel 13 Jun 11 19:16 liblogin.so -> liblogin.so.2
-rwxr-xr-x  1 root  wheel  20895 Jun 11 19:16 liblogin.so.2
-rw-r--r--  1 root  wheel  19894 Jun 11 19:16 libplain.a
-rwxr-xr-x  1 root  wheel809 Jun 11 19:16 libplain.la
lrwxr-xr-x  1 root  wheel 13 Jun 11 19:16 libplain.so -> libplain.so.2
-rwxr-xr-x  1 root  wheel  20749 Jun 11 19:16 libplain.so.2
-rw-r--r--  1 root  wheel 68 Jun 17 15:17 smtpd.conf

$ cat /usr/local/lib/sasl2/smtpd.conf
pwcheck_method: saslauthd
mechlist: LOGIN PLAIN CRAM-MD5 DIGEST-MD5

$ cat /usr/local/etc/saslauthd.conf
ldap_servers: ldap://ldap.example.com
ldap_bind_dn: [EMAIL PROTECTED]
ldap_bind_pw: password
ldap_search_base: cn=%d
ldap_filter: mail=%u
ldap_timeout: 60
ldap_time_limit: 60


Am Sun, Jun 15, 2008 at 11:42:57PM + Duane Hill schrieb:

I have an AMD64 install using saslauthd and is failing.

An identical installation on i386 works fine. Both installations are
running on FreeBSD 7.0-RELEASE with cyrus-sasl-2.1.22_1, and
cyrus-sasl-saslauthd-2.1.22.

A telnet session to the MTA yields the result:

  535 5.7.8 Error: authentication failed: generic failure

One of the saslauthd threads then exits:

  Jun 15 23:09:55 smtpgate kernel: pid 44573 (saslauthd), uid 0: exited on
  signal 11 (core dumped)

I did not have this issue running on the AMD64 6.2-RELEASE.

Any help would be appreciated.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: saslauthd on AMD64

2008-07-13 Thread Martin Schweizer
Hello Duane 

Do you have some inputs (config files etc.)?

Regards,


Am Sun, Jun 15, 2008 at 11:42:57PM + Duane Hill schrieb:
> I have an AMD64 install using saslauthd and is failing.
> 
> An identical installation on i386 works fine. Both installations are 
> running on FreeBSD 7.0-RELEASE with cyrus-sasl-2.1.22_1, and 
> cyrus-sasl-saslauthd-2.1.22.
> 
> A telnet session to the MTA yields the result:
> 
>   535 5.7.8 Error: authentication failed: generic failure
> 
> One of the saslauthd threads then exits:
> 
>   Jun 15 23:09:55 smtpgate kernel: pid 44573 (saslauthd), uid 0: exited on
>   signal 11 (core dumped)
> 
> I did not have this issue running on the AMD64 6.2-RELEASE.
> 
> Any help would be appreciated.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

-- 

Martin Schweizer
<[EMAIL PROTECTED]>

PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch;
public key : http://www.pc-service.ch/pgp/public_key.asc; 
fingerprint: EC21 CA4D 5C78 BC2D 73B7  10F9 C1AE 1691 D30F D239;

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


saslauthd on AMD64

2008-06-15 Thread Duane Hill

I have an AMD64 install using saslauthd and is failing.

An identical installation on i386 works fine. Both installations are 
running on FreeBSD 7.0-RELEASE with cyrus-sasl-2.1.22_1, and 
cyrus-sasl-saslauthd-2.1.22.


A telnet session to the MTA yields the result:

  535 5.7.8 Error: authentication failed: generic failure

One of the saslauthd threads then exits:

  Jun 15 23:09:55 smtpgate kernel: pid 44573 (saslauthd), uid 0: exited on
  signal 11 (core dumped)

I did not have this issue running on the AMD64 6.2-RELEASE.

Any help would be appreciated.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"