Я настраиваю openldap, все выглядит нормально, но я не могу настроить аутентификацию,
#getent shadow | grep user
user:*:::::::
tuser:*:::::::
tuser2:*:::::::
#getent passwd | grep user
git:!:999:999:git daemon user:/:/bin/bash
user:x:10000:2000:Test User:/home/user/:/bin/zsh
tuser:x:10000:2000:Test User:/home/user/:/bin/zsh
tuser2:x:10002:2000:Test User:/home/tuser2/:/bin/zsh
из root я могу войти как один из этих пользователей
#su - tuser2
su: warning: cannot change directory to /home/tuser2/: No such file or directory
10:24 tuser2@juliet:/root
я не могу войти через ssh, также passwd не работает
#ldapwhoami -h 192.168.10.156 -D "uid=user,ou=People,dc=xcl,dc=ie"
ldap_bind: Server is unwilling to perform (53)
additional info: unauthenticated bind (DN with no password) disallowed
10:30 root@juliet:~
#ldapwhoami -h 192.168.10.156 -D "uid=user,ou=People,dc=xcl,dc=ie" -W
Enter LDAP Password:
ldap_bind: Invalid credentials (49)
введенный мной пароль правильный
/etc/openldap/slapd.conf доступ к dn.base = "" с помощью * доступа для чтения к dn.base = "cn = Subschema" с помощью * доступа для чтения * путем самостоятельной записи пользователями, считываемых с помощью анонимного чтения
access to *
by dn="uid=root,ou=Roles,dc=xcl,dc=ie" write
by users read
by anonymous auth
access to attrs=userPassword,gecos,description,loginShell
by self write
access to attrs="userPassword"
by dn="uid=root,ou=Roles,dc=xcl,dc=ie" write
by anonymous auth
by self write
by * none
access to *
by dn="uid=root,ou=Roles,dc=xcl,dc=ie" write
by dn="uid=achmiel,ou=People,dc=xcl,dc=ie" write
by * search
access to attrs=userPassword
by self =w
by anonymous auth
access to *
by self write
by users read
database hdb
suffix "dc=xcl,dc=ie"
rootdn "cn=root,dc=xcl,dc=ie"
rootpw "{SSHA}AM14+..."
есть некоторые части этого файла conf, который выглядит /etc/openldap/ldap.conf:
BASE dc=xcl,dc=ie
URI ldap://192.168.10.156/
TLS_REQCERT allow
TIMELIMIT 2
Итак, мой вопрос в том, что мне не хватает, что ldap не позволяет мне войти в систему с помощью пароля?
хорошо, я решил проблему, удалив эти запросы ACL
access to *
by dn="uid=root,ou=Roles,dc=xcl,dc=ie" write
by users read
by anonymous auth
access to attrs=userPassword,gecos,description,loginShell
by self write
access to attrs="userPassword"
by dn="uid=root,ou=Roles,dc=xcl,dc=ie" write
by anonymous auth
by self write
by * none
access to *
by dn="uid=root,ou=Roles,dc=xcl,dc=ie" write
by dn="uid=achmiel,ou=People,dc=xcl,dc=ie" write
by * search
Я внес больше изменений, но в любом случае эти изменения не решают эту проблему, пока я не удалю упомянутые ACL