openldap – 在debian上使用ldapdb的Saslauth

前端之家收集整理的这篇文章主要介绍了openldap – 在debian上使用ldapdb的Saslauth前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我想让saslauthd与openldap合作.

ldapsearch和连接到openldap的每个服务都可以正常工作. sasldblistusers2不起作用 – 而且ldapwhoami也不起作用.

getent passwd工作正常.

sasldblistusers2生成此日志条目:

  1. Sep 30 03:48:01 sogo sasldblistusers2: _sasl_plugin_load Failed on sasl_auxprop_plug_init for plugin: ldapdb
  2. Sep 30 03:48:01 sogo sasldblistusers2: canonuserfunc error -7
  3. Sep 30 03:48:01 sogo sasldblistusers2: _sasl_plugin_load Failed on sasl_canonuser_init for plugin: ldapdb
  4. Sep 30 03:48:01 sogo sasldblistusers2: DIGEST-MD5 common mech free

ldapwhoami结果:

  1. root@sogo:/root# ldapwhoami
  2. SASL/DIGEST-MD5 authentication started
  3. Please enter your password:
  4. ldap_sasl_interactive_bind_s: Invalid credentials (49)
  5. additional info: SASL(-13): user not found: no secret in database

我的/etc/saslauthd.conf:

  1. ldap_servers: ldap://localhost
  2. ldap_version: 3
  3. ldap_auth_method: bind
  4. ldap_search_base: dc=MY,dc=DOMAIN
  5. ldap_scope: sub
  6. ldap_bind_dn: cn=admin,dc=MY,dc=DOMAIN
  7. ldap_bind_pw: LDAPPASS
  8. ldap_filter: <uid=%u>
  9. auxprop_plugin: ldapdb

在/ etc /默认/ saslauthd:

  1. START=yes
  2. DESC="SASL Authentication Daemon"
  3. NAME="saslauthd"
  4. MECHANISMS="ldap"
  5. MECH_OPTIONS=""
  6. THREADS=5
  7. OPTIONS="-c -m /var/run/saslauthd"

我看不出错误.请帮忙.

你的saslauthd.conf配置文件应该包含在saslauthd中:

MECH_OPTIONS = “的/ etc / saslauthd.conf”

猜你在找的Bash相关文章