Mueller
2021-May-21 07:39 UTC
[Samba] bind9 Debian 10, samba_dlz: Failed to connect to Failed to connect to /var/lib/samba/private/dns/sam.ldb
Samba 4.14 again on Debian 10, bind 9.11, After succesfull compiling, bind 9 refuses to strat with: systemctl status bind9.service ? bind9.service - BIND Domain Name Server Loaded: loaded (/lib/systemd/system/bind9.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Fri 2021-05-21 09:27:02 CEST; 4min 18s ago Docs: man:named(8) Process: 4176 ExecStart=/usr/sbin/named $OPTIONS (code=exited, status=1/FAILURE) Mai 21 09:27:02 dom named[4177]: samba_dlz: Failed to connect to Failed to connect to /var/lib/samba/private/dns/sam.ldb: Unable to open tdb '/var/lib/samba/private/d Mai 21 09:27:02 dom named[4177]: samba_dlz: FAILED dlz_create call result=25 #refs=0 Mai 21 09:27:02 dom named[4177]: dlz_dlopen of 'AD DNS Zone' failed Mai 21 09:27:02 dom named[4177]: SDLZ driver failed to load. Mai 21 09:27:02 dom named[4177]: DLZ driver failed to load. Mai 21 09:27:02 dom named[4177]: loading configuration: failure Mai 21 09:27:02 dom named[4177]: exiting (due to fatal error) Mai 21 09:27:02 dom systemd[1]: bind9.service: Control process exited, code=exited, status=1/FAILURE Mai 21 09:27:02 dom systemd[1]: bind9.service: Failed with result 'exit-code'. Mai 21 09:27:02 dom systemd[1]: Failed to start BIND Domain Name Server. The fact is bind9 is right. There is no to /var/lib/samba/private/dns/sam.ldb. There is a sam.ldb: to /var/lib/samba/private/dns/sam.ldb. A directory "dns" wa not created under /var/lib/samba/private/dns/sam.ldb But, there in: /var/lib/lib/samba/bind-dns/ ls -la /var/lib/lib/samba/bind-dns/ insgesamt 24 drw------- 3 root bind 4096 Mai 20 13:09 . drwxr-xr-x 4 root root 4096 Mai 21 09:26 .. drwxrwxr-x 3 root bind 4096 Mai 20 13:02 dns < -------------------- right olace -rw-r----- 2 root bind 427 Mai 20 13:02 dns.keytab -rwxrwx--- 1 root bind 986 Mai 20 13:09 named.conf -rw-r--r-- 1 root root 2059 Mai 20 13:02 named.txt And there is sam.ldb ls -la /var/lib/lib/samba/bind-dns/dns insgesamt 3552 drwxrwxr-x 3 root bind 4096 Mai 20 13:02 . drw------- 3 root bind 4096 Mai 20 13:09 .. -rw-rw---- 1 root bind 3620864 Mai 20 13:02 sam.ldb drwxrwx--- 2 root bind 4096 Mai 20 13:02 sam.ldb.d How can I fix this . A softlik does not work. Greetings Daniel
Rowland penny
2021-May-21 07:50 UTC
[Samba] bind9 Debian 10, samba_dlz: Failed to connect to Failed to connect to /var/lib/samba/private/dns/sam.ldb
On 21/05/2021 08:39, Mueller via samba wrote:> Samba 4.14 again on Debian 10, bind 9.11, > > After succesfull compiling, bind 9 refuses to strat with: > >2nd DC ? If so, use samba_upgradedns to 'upgrade to the internal dns server, then immediately use the same tool to upgrade to bind9 again. This should fix your problem. Rowland