View Single Post
  #6  
Old 3rd February 2011, 20:25
gu35t gu35t is offline
Junior Member
 
Join Date: Feb 2011
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Default

ok i got it

In FreeBSD you have to add saslauthd_flags in /etc/rc.conf:
cat /etc/rc.conf |grep saslauthd
Code:
saslauthd_enable="YES"
saslauthd_flags="-a pam -r"
'-r' is the winner :
man saslauthd:
Code:
 
[...]
-r             Combine the realm with the login before passing to authentication mechanism
                 Ex. login: "foo" realm: "bar" will get passed as login: "foo@bar"
                 The realm name is passed untouched.
[...]
By default saslauthd rc script (/usr/local/etc/rc.d/saslauthd) run saslauthd with '-a pam' argument. There is no saslauthd main config file. Only auth via LDAP use config file:
man saslauthd:
Code:
[....]
FILES
     /var/run/saslauthd/mux  The default communications socket.

     /usr/local/etc/saslauthd.conf
                             The default configuration file for ldap support.
[....]
it was just too simple

regards
David
Reply With Quote