Continuing the discussion from Problem: univention-s4search and samba-tool drs showrepl shows error messages:
Our problem is that Samba has the wrong password:
root@pdc:~# kinit --password-file=/etc/machine.secret 'pdc$'
kinit: Password incorrect
Now, when we try to set it:
samba-tool user setpassword 'pdc$' --newpassword=$(< /etc/machine.secret)
then the msDS-KeyVersionNumber in /var/lib/samba/private/secrets.ldb and
/var/lib/samba/private/sam.ldb differ. Setting the msDS-KeyVersionNumber
to the higher number from sam.ldb in secrets.ldb does NOT help:
root@pdc:~# univention-s4search
Wrong username or password: kinit for pdc$@xxxxxxx.xxx.DE failed (Preauthentication failed)
Failed to bind - LDAP error 49 LDAP_INVALID_CREDENTIALS - <8009030C: LdapErr: DSID-0C0904DC, comment: AcceptSecurityCon|
text error, data 52e, v1db1> <> |
Failed to connect to 'ldaps://pdc.intern.izt.de' with backend 'ldaps': LDAP error 49 LDAP_INVALID_CREDENTIALS - <800903
0C: LdapErr: DSID-0C0904DC, comment: AcceptSecurityContext error, data 52e, v1db1> <>
Failed to connect to ldaps://pdc.xxxxxxx.xxx.de - LDAP error 49 LDAP_INVALID_CREDENTIALS - <8009030C: LdapErr: DSID-0C09
04DC, comment: AcceptSecurityContext error, data 52e, v1db1> <>
Any hints, how to resolve this problem?
Ciao; Gregor