Hello together,
We have a UCS system with an Active Directory domain controller module installed.
Now I wanted to add a second domain controller.
After installing the second UCS system as a backup directory node, I installed the Active Directory domain controller module as described in the documentation.
Now when I try to run the join scripts 96 & 98, they fail. I have been searching for hours and cannot find any error. Clients can be connected without problems, only the backup UCS fails.
Here is the log:
RUNNING 96univention-samba4.inst
2025-07-15 13:17:25.664200718+02:00 (in joinscript_init)
15.07.25 13:17:26.850 DEBUG_INIT
15.07.25 13:17:26.867 DEBUG_EXIT
Not updating samba4/role
Multifile: /etc/samba/smb.conf
Object exists: cn=Builtin,dc=XXX,dc=local
No modification: cn=Enterprise Domain Controllers,cn=groups,dc=XXX,dc=local
WARNING: cannot append cn=DC Backup Hosts,cn=groups,dc=XXX,dc=local to nestedGroup, value exists
No modification: cn=Enterprise Domain Controllers,cn=groups,dc=XXX,dc=local
WARNING: cannot append cn=dc-02,cn=dc,cn=computers,dc=XXX,dc=local to hosts, value exists
Stopping samba-ad-dc (via systemctl): samba-ad-dc.service.
Stopping nmbd (via systemctl): nmbd.service.
Setting kerberos/kdc
Setting kerberos/kpasswdserver
File: /etc/krb5.conf
Setting slapd/port
Multifile: /etc/ldap/slapd.conf
File: /etc/init.d/slapd
Setting slapd/port/ldaps
File: /etc/init.d/slapd
Multifile: /etc/ldap/slapd.conf
Restarting slapd (via systemctl): slapd.serviceWarning: The unit file, source configuration file or drop-ins of slapd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
.
Create windows/wins-support
Multifile: /etc/samba/smb.conf
Join against S4 Connector server: dc-01
Forest : XXX.local
Domain : XXX.local
Netbios domain : XXX
DC name : dc-01.XXX.local
DC netbios name : DC-01
Server site : Default-First-Site-Name
Client site : Default-First-Site-Name
Failed to bind - LDAP error 49 LDAP_INVALID_CREDENTIALS - <8009030C: LdapErr: DSID-0C0904DC, comment: AcceptSecurityContext error, data 52f, v1db1> <>
Failed to connect to 'ldap://dc-01' with backend 'ldap': LDAP error 49 LDAP_INVALID_CREDENTIALS - <8009030C: LdapErr: DSID-0C0904DC, comment: AcceptSecurityContext error, data 52f, v1db1> <>
Invalid username or password
WARNING: The option -k|--kerberos is deprecated!
Failed to join against the S4 Connector server dc-01.
Make sure the server is online or if this server is no longer in use,
please completely remove the server object from the domain.
Forest : XXX.local
Domain : XXX.local
Netbios domain : XXX
DC name : dc-01.XXX.local
DC netbios name : DC-01
Server site : Default-First-Site-Name
Client site : Default-First-Site-Name
INFO 2025-07-15 13:17:48,863 pid:7677 /usr/lib/python3/dist-packages/samba/join.py #104: Finding a writeable DC for domain 'XXX.local'
INFO 2025-07-15 13:17:48,879 pid:7677 /usr/lib/python3/dist-packages/samba/join.py #106: Found DC dc-01.XXX.local
Failed to bind - LDAP error 49 LDAP_INVALID_CREDENTIALS - <8009030C: LdapErr: DSID-0C0904DC, comment: AcceptSecurityContext error, data 52f, v1db1> <>
Failed to connect to 'ldap://dc-01.XXX.local' with backend 'ldap': LDAP error 49 LDAP_INVALID_CREDENTIALS - <8009030C: LdapErr: DSID-0C0904DC, comment: AcceptSecurityContext error, data 52f, v1db1> <>
Invalid username or password
WARNING: The option -k|--kerberos is deprecated!
Failed to join the domain XXX.local.
Make sure the server is online or if this server is no longer in use,
please completely remove the server object from the domain.
EXITCODE=1
2eedea72-215d-405b-9257-d20e946f821d
RUNNING 97univention-s4-connector.inst
EXITCODE=already_executed
RUNNING 98univention-pkgdb-tools.inst
EXITCODE=already_executed
RUNNING 98univention-samba4-dns.inst
2025-07-15 13:17:49.150342419+02:00 (in joinscript_init)
Samba4 backend database not available yet, exiting joinscript 98univention-samba4-dns.
EXITCODE=1
71175897-acff-4f64-a19a-3fa892b75a72
univention-join-hooks: looking for hook type "join/post-joinscripts" on dc-01.XXX.local
Found hooks:
Di 15. Jul 13:17:50 CEST 2025
univention-run-join-scripts finished
I checked the credentials and they are correct. Hope you got a hint for me.

