Sasl & ldap

Bonjour,

j’essaye de configurer SASL avec un serveur LDAP.
J’ai suivis ce tutoriel pour l’installation de LDAP (avec Samba) et pour SASL celui-ci

mon serveur LDAP fonctionne correctement, il est utilisé pour authentifier les comptes utilisateurs.

voici mon fichier /etc/saslauthd.conf

# SERVEUR LDAP
ldap_servers: ldap://127.0.0.1

# DOMAINE
# LDAP_DEFAULT_DOMAIN: domain.tld
# LDAP_TIMEOUT: 10
# LDAP_TIME_LIMIT: 10
# LDAP_CACHE_TTL: 30
# LDAP_CACHE_MEM: 32768

# VERSION LDAP
# LDAP_VERSION: 3

# SASL Pour l'accès au serveur
# LDAP_USE_SASL: no

# Méthode d'authentification (bind / custom / fastbind)
ldap_auth_method: bind

# Utilisateur utilisé pour la connexion - Si vide = Anonyme
ldap_bind_dn: cn=admin,dc=domain,dc=tld
# Et le mot de passe
ldap_bind_pw: pwd

# Base de départ de la recherche
ldap_search_base: ou=Users,dc=domain,dc=tld
# Et profondeur (sub / one / base )
ldap_scope: sub

# Filtre de recherche : uid dans notre cas
ldap_filter: uid=%u
# Et nom du champ contenant le mot de passe
ldap_password_attr: userPassword

et voici mon fichier /etc/default/saslauthd :

#
# Settings for saslauthd daemon
# Please read /usr/share/doc/sasl2-bin/README.Debian for details.
#

# Should saslauthd run automatically on startup? (default: no)
START=yes

# Description of this saslauthd instance. Recommended.
# (suggestion: SASL Authentication Daemon)
DESC="SASL Authentication Daemon"

# Short name of this saslauthd instance. Strongly recommended.
# (suggestion: saslauthd)
NAME="saslauthd"

# Which authentication mechanisms should saslauthd use? (default: pam)
#
# Available options in this Debian package:
# getpwent  -- use the getpwent() library function
# kerberos5 -- use Kerberos 5
# pam       -- use PAM
# rimap     -- use a remote IMAP server
# shadow    -- use the local shadow password file
# sasldb    -- use the local sasldb database file
# ldap      -- use LDAP (configuration is in /etc/saslauthd.conf)
#
# Only one option may be used at a time. See the saslauthd man page
# for more information.
#
# Example: MECHANISMS="pam"
MECHANISMS="ldap"
PARAMS="-O /etc/saslauthd.conf"

# Additional options for this mechanism. (default: none)
# See the saslauthd man page for information about mech-specific options.
MECH_OPTIONS=""

# How many saslauthd processes should we run? (default: 5)
# A value of 0 will fork a new process for each connection.
THREADS=2

# Other options (default: -c -m /var/run/saslauthd)
# Note: You MUST specify the -m option or saslauthd won't run!
#
# WARNING: DO NOT SPECIFY THE -d OPTION.
# The -d option will cause saslauthd to run in the foreground instead of as
# a daemon. This will PREVENT YOUR SYSTEM FROM BOOTING PROPERLY. If you wish
# to run saslauthd in debug mode, please run it by hand to be safe.
#
# See /usr/share/doc/sasl2-bin/README.Debian for Debian-specific information.
# See the saslauthd man page and the output of 'saslauthd -h' for general
# information about these options.
#
# Example for postfix users: "-c -m /var/spool/postfix/var/run/saslauthd"
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd"

mon problème, lorsque je tape : testsaslauthd -u userldap -p pwd
j’ai ce message d’erreur : connect() : No such file or directory.

Si vous avez une idée, j’a fouiller google … essayer certaines choses, mais cela ne fonctionne toujours pas :frowning:

Merci