Forums FUG-FR
https://forums.fug-fr.org/cgi-bin/yabb2/YaBB.pl
FreeBSD >> Logiciels tiers >> 8.0-PRERELEASE SASL2
https://forums.fug-fr.org/cgi-bin/yabb2/YaBB.pl?num=1258345309

Message started by kermitt on 16. Nov 2009 at 05:21

Title: 8.0-PRERELEASE SASL2
Post by kermitt on 16. Nov 2009 at 05:21
Bonjour
Je n'arrive pas à fairte fonctionner sasl sur Freebsd 8 rc3
j'ai la même config sur un Feebsd 7.2 p4 pas de soucis


Quote:
telnet domaine.tld 25
Trying X.Z.Y.X...
Connected to domaine.tld.
Escape character is '^]'.
220 rtfm.private.net ESMTP Postfix
EHLO somedomain.org
250-rtfm.private.net
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
AUTH PLAIN AG1hcmNAaW5mb3dlc3Qubm8taXAub3JnAG1hcmt1c3MgOzs=
535 5.7.8 Error: authentication failed: generic failure


log:

Quote:
_sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sq


Quote:
sql_select option missing
Nov 16 08:12:51 rtfm postfix/smtpd[70433]: auxpropfunc error no mechanism available


Title: Re: 8.0-PRERELEASE SASL2
Post by kermitt on 17. Nov 2009 at 04:41
Log + verbeux: /var/log/maillog

Quote:
Nov 17 07:26:16 rtfm postfix/smtpd[15266]: connect from mail.domaine.tld[10.0.0.3]
Nov 17 07:26:53 rtfm postfix/smtpd[15266]: warning: SASL authentication failure: could not verify password
Nov 17 07:26:53 rtfm postfix/smtpd[15266]: warning: SASL authentication failure: Password verification failed
Nov 17 07:26:53 rtfm postfix/smtpd[15266]: warning: mail.domaine.tld[10.0.0.3]: SASL PLAIN authentication failed: generic failure
Nov 17 07:26:53 rtfm authdaemond: Authenticated: sysusername=<null>, sysuserid=2000, sysgroupid=2000, homedir=/var/vmail, address=user@domaine.tld, fullname=user@domaine.tld, maildir=domaine.tld/user/, quota=20000000S, options=<null>
Nov 17 07:26:53 rtfm authdaemond: Authenticated: clearpasswd=xxxxxxx, passwd=UvCsZpyS9T2P.
Nov 17 07:27:03 rtfm postfix/smtpd[15266]: disconnect from mail.domaine.tld[10.0.0.3]

/var/log/debug.log

Quote:
Nov 17 07:26:15 rtfm postfix/smtpd[15266]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql
Nov 17 07:26:53 rtfm authdaemond: received auth request, service=smtp, authtype=login
Nov 17 07:26:53 rtfm authdaemond: authmysql: trying this module
Nov 17 07:26:53 rtfm authdaemond: authmysqllib: connected. Versions: header 50140, client 50140, server 50140
Nov 17 07:26:53 rtfm authdaemond: SQL query: SELECT login, password, "", uid, gid, home, maildir, quota, name, "" FROM users WHERE login = 'user@domaine.tld'
Nov 17 07:26:53 rtfm authdaemond: password matches successfully
Nov 17 07:26:53 rtfm authdaemond: authmysql: sysusername=<null>, sysuserid=2000, sysgroupid=2000, homedir=/var/vmail, address=user@domaine.tld, fullname=user@domaine.tld, maildir=domaine.tld/user/, quota=20000000S, options=<null>
Nov 17 07:26:53 rtfm authdaemond: authmysql: clearpasswd=<null>, passwd=UvCsZpyS9T2P.

Title: Re: 8.0-PRERELEASE SASL2
Post by fgudin on 17. Nov 2009 at 13:22
Je comprends pas vraiment le pb - veux-tu utiliser un backend SQL pour ton authentification ? - mais dans la négative, ce post (dernier commentaire) peut aider -> il faudrait dégager une certaine 'libsql' quelque-part sous '…/lib/sasl2/', sinon 'authdaemond' tente de l'utiliser dès qu'il la trouve.

Title: Re: 8.0-PRERELEASE SASL2
Post by kermitt on 18. Nov 2009 at 05:34

fgudin wrote on 17. Nov 2009 at 13:22:
Je comprends pas vraiment le pb - veux-tu utiliser un backend SQL pour ton authentification ?

Oui
Merci ..
When configuring Postfix, we have restricted mail relay to a limited number of trusted networks, i.e. the internal corporate LANs. Sometimes, however, such a relay policy may not fit your organization's requirements: a typical example is the need to let mobile users (such as sales people) send messages from anywhere over the Internet.

Je me demande si ce n'est pas un bug  sous FreeBSD 8?
j'ai lu sur le net qu'une personne qui a upgradé son systeme de  7.2-RELEASE-p4 ==> 8 rc1 a le même problème que moi avec 8 rc3 (8.0-PRERELEASE)

Title: Alert Re: 8.0-RELEASE-SASL2
Post by kermitt on 24. Nov 2009 at 09:55

kermitt wrote on 18. Nov 2009 at 05:34:
Je me demande si ce n'est pas un bug  sous FreeBSD 8?
j'ai lu sur le net qu'une personne qui a upgradé son systeme de  7.2-RELEASE-p4 ==> 8 rc1 a le même problème que moi avec 8 rc3 (8.0-PRERELEASE)


je persiste et signe
Problèmes d'authentification avec sasl2 + postfix + mysql avec FreeBSD 8
J'ai passé mon serveur en 8.0 release "stable"

Quote:
kimsufi.com 8.0-RELEASE

:-? Niké je suis!
problemes constatés
postalias (postfix) permet de creer aliases.db car newaliases ne fonctionne plus et idem pour sasl2 et authdaemond mêmes soucis que les posts ci dessus.

Title: RESOLU: 8.0-PRERELEASE SASL2
Post by kermitt on 10. May 2010 at 08:03
Un patch corrige ce bug

click on the file lib:checkpw.c.diff and copy the contents
make a new file in /usr/ports/security/cyrus-sasl2/files with the filename: "patch-lib::checkpw.c" (which means that the file patches the file in work/lib/checkpw.c)
(I use edit patch-lib::checkpw.c - which creates the file as an empty file)

and copy the contents of lib:checkpw.c.diff into it (CTRL+SHIFT+V) and save.

then:

Quote:
cd /usr/ports/security/cyrus-sasl2/
make deinstall
make reinstall

https://forums.fug-fr.org/cgi-bin/yabb2/YaBB.pl?action=downloadfile;file=lib:checkpw_c_diff.txt (0 KB | 200 )

Forums FUG-FR » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2025. All Rights Reserved.