Для этого пытаюсь настроить SASLAuthd.
Код: Выделить всё
saslauthd -a ldap -O /etc/saslauthd2
testsaslauthd -u user -p password
0: NO "authentication failed"
auth.log
Код: Выделить всё
Apr 10 12:25:52 pdc saslauthd[2778]: Authentication failed for user: Group member check failed (-4)
Apr 10 12:25:52 pdc saslauthd[2778]: do_auth : auth failure: [user=user] [service=imap] [realm=] [mech=ldap] [reason=Unknown]
Код: Выделить всё
ldapsearch -LLL -D "uid=SupAdmin,ou=Users,dc=mydomen,dc=ru" -b "cn=SVN,ou=Groups,dc=mydomen,dc=ru -W
dn: cn=SVN,ou=Groups,dc=sibgipro,dc=ru
objectClass: posixGroup
objectClass: top
objectClass: sambaGroupMapping
gidNumber: 10018
cn: SVN
sambaSID: S-1-5-21-2495669406-2609046395-831246210-1026
sambaGroupType: 2
displayName: SVN
description: Subversion
memberUid: user
Текущие конфиги:
Код: Выделить всё
cat saslauthd2
pwchek_method: saslauthd
auxprop_plugin: ldap
mech_list: PLAI LOGIN
ldapdb_mech: PLAIN LOGIN
ldap_servers: ldap://127.0.0.1
ldap_bind_dn: cn=admin,dc=mydomen,dc=ru
ldap_password: *****
ldap_bind_pw: *****
ldap_cache_ttl: 0
ldap_scope: sub
ldap_search_base: ou=Users,dc=mydomen,dc=ru
ldap_auth_method: bind
ldap_basedn: dc=mydomen,dc=ru
ldap_group_dn: cn=SVN,ou=Groups,dc=mydomen,dc=ru
ldap_group_attr: memberUid
ldap_filter: uid=%U
ldap_mech: PLAIN