Cameron Murdoch
2016-Sep-01 11:24 UTC
[Samba] Segmentation fault in samba_upgradedns - Samba 4.4.5
Hi, I'm having the following issue when trying to switch from samba_internal to bind9_dlz. I have been following the procedure here: https://wiki.samba.org/index.php/Changing_the_DNS_backend# Changing_from_Samba_Internal_DNS_to_BIND_DLZ I get the following: [root at dc2 ~]# /usr/local/sbin/samba_upgradedns --dns-backend=BIND9_DLZ Reading domain information Segmentation fault (core dumped) The system is running Freebsd 11.0-RC2. I have two domain controllers and I am attempting this on one of them whilst the other is still running. Filesystem is zfs. Both DCs are running Samba 4.4.5 and are otherwise running well. Any help or suggestions would be most appreciated. Thanks Cameron
L.P.H. van Belle
2016-Sep-01 11:44 UTC
[Samba] Segmentation fault in samba_upgradedns - Samba 4.4.5
Hai Cameron, If you run: named -V Does that version match with the setting in : For example "/var/lib/samba/private/named.conf"; I'm running debian so change the path above to your file. # # This configures dynamically loadable zones (DLZ) from AD schema # Uncomment only single database line, depending on your BIND version # dlz "AD DNS Zone" { # For BIND 9.8.x # database "dlopen /usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9.so"; # For BIND 9.9.x database "dlopen /usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_9.so"; # For BIND 9.10.x # database "dlopen /usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_10.so"; }; Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Cameron Murdoch > via samba > Verzonden: donderdag 1 september 2016 13:25 > Aan: samba at lists.samba.org > Onderwerp: [Samba] Segmentation fault in samba_upgradedns - Samba 4.4.5 > > Hi, > > I'm having the following issue when trying to switch from samba_internal > to > bind9_dlz. I have been following the procedure here: > > https://wiki.samba.org/index.php/Changing_the_DNS_backend# > Changing_from_Samba_Internal_DNS_to_BIND_DLZ > > I get the following: > > [root at dc2 ~]# /usr/local/sbin/samba_upgradedns --dns-backend=BIND9_DLZ > Reading domain information > Segmentation fault (core dumped) > > The system is running Freebsd 11.0-RC2. I have two domain controllers and > I > am attempting this on one of them whilst the other is still running. > > Filesystem is zfs. > > Both DCs are running Samba 4.4.5 and are otherwise running well. > > Any help or suggestions would be most appreciated. > > Thanks > Cameron > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
L.P.H. van Belle
2016-Sep-01 11:55 UTC
[Samba] Segmentation fault in samba_upgradedns - Samba 4.4.5
And what i forgot. Check you rights for /var/lib/samba/private needs 775 dns.keytab needs 640 ( root:named ) ( change named to you bind user) named.conf root:root 644 named.conf.update root:root 444 /var/lib/samba/private/dns needs root:named 770 /var/lib/samba/private/sam.ldb.d needs 750 root:named Check these and report back before changing anything here. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens L.P.H. van Belle > via samba > Verzonden: donderdag 1 september 2016 13:44 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Segmentation fault in samba_upgradedns - Samba > 4.4.5 > > Hai Cameron, > > > If you run: > named -V > > Does that version match with the setting in : > For example "/var/lib/samba/private/named.conf"; > I'm running debian so change the path above to your file. > > # > # This configures dynamically loadable zones (DLZ) from AD schema > # Uncomment only single database line, depending on your BIND version > # > dlz "AD DNS Zone" { > # For BIND 9.8.x > # database "dlopen /usr/lib/x86_64-linux- > gnu/samba/bind9/dlz_bind9.so"; > > # For BIND 9.9.x > database "dlopen /usr/lib/x86_64-linux- > gnu/samba/bind9/dlz_bind9_9.so"; > > # For BIND 9.10.x > # database "dlopen /usr/lib/x86_64-linux- > gnu/samba/bind9/dlz_bind9_10.so"; > }; > > Greetz, > > Louis > > > > > -----Oorspronkelijk bericht----- > > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Cameron Murdoch > > via samba > > Verzonden: donderdag 1 september 2016 13:25 > > Aan: samba at lists.samba.org > > Onderwerp: [Samba] Segmentation fault in samba_upgradedns - Samba 4.4.5 > > > > Hi, > > > > I'm having the following issue when trying to switch from samba_internal > > to > > bind9_dlz. I have been following the procedure here: > > > > https://wiki.samba.org/index.php/Changing_the_DNS_backend# > > Changing_from_Samba_Internal_DNS_to_BIND_DLZ > > > > I get the following: > > > > [root at dc2 ~]# /usr/local/sbin/samba_upgradedns --dns-backend=BIND9_DLZ > > Reading domain information > > Segmentation fault (core dumped) > > > > The system is running Freebsd 11.0-RC2. I have two domain controllers > and > > I > > am attempting this on one of them whilst the other is still running. > > > > Filesystem is zfs. > > > > Both DCs are running Samba 4.4.5 and are otherwise running well. > > > > Any help or suggestions would be most appreciated. > > > > Thanks > > Cameron > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: https://lists.samba.org/mailman/options/samba > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
Rowland Penny
2016-Sep-01 12:15 UTC
[Samba] Segmentation fault in samba_upgradedns - Samba 4.4.5
On Thu, 1 Sep 2016 12:24:38 +0100 Cameron Murdoch via samba <samba at lists.samba.org> wrote:> Hi, > > I'm having the following issue when trying to switch from > samba_internal to bind9_dlz. I have been following the procedure here: > > https://wiki.samba.org/index.php/Changing_the_DNS_backend# > Changing_from_Samba_Internal_DNS_to_BIND_DLZ > > I get the following: > > [root at dc2 ~]# /usr/local/sbin/samba_upgradedns --dns-backend=BIND9_DLZ > Reading domain information > Segmentation fault (core dumped) > > The system is running Freebsd 11.0-RC2. I have two domain controllers > and I am attempting this on one of them whilst the other is still > running. > > Filesystem is zfs. > > Both DCs are running Samba 4.4.5 and are otherwise running well. > > Any help or suggestions would be most appreciated. > > Thanks > CameronI take it you have installed a compatible version of bind9, it is set up correctly and it isn't running. After it prints 'Reading domain information' the script gets info by reading smb.conf etc, it then goes on to check a few things before (normally) printing 'DNS accounts already exist' So as you don't get the last message, it seems likely the problem lies in the block of code between the messages. Can you post the smb.conf from the DC you are trying to upgrade What version of bind are you using ? can you also post your Bind conf files Rowland
Rowland Penny
2016-Sep-01 12:18 UTC
[Samba] Segmentation fault in samba_upgradedns - Samba 4.4.5
On Thu, 1 Sep 2016 12:24:38 +0100 Cameron Murdoch via samba <samba at lists.samba.org> wrote:> Hi, > > I'm having the following issue when trying to switch from > samba_internal to bind9_dlz. I have been following the procedure here: > > https://wiki.samba.org/index.php/Changing_the_DNS_backend# > Changing_from_Samba_Internal_DNS_to_BIND_DLZ > > I get the following: > > [root at dc2 ~]# /usr/local/sbin/samba_upgradedns --dns-backend=BIND9_DLZ > Reading domain information > Segmentation fault (core dumped) > > The system is running Freebsd 11.0-RC2. I have two domain controllers > and I am attempting this on one of them whilst the other is still > running. > > Filesystem is zfs. > > Both DCs are running Samba 4.4.5 and are otherwise running well. > > Any help or suggestions would be most appreciated. > > Thanks > CameronJust another question, who is the user that bind is run as ? Rowland
Cameron Murdoch
2016-Sep-01 12:23 UTC
[Samba] Segmentation fault in samba_upgradedns - Samba 4.4.5
Hi Louis, thanks for your response. On 1 September 2016 at 12:44, L.P.H. van Belle via samba < samba at lists.samba.org> wrote:> Hai Cameron, > > If you run: > named -VI have BIND 9.10.4-P2 installed.> > Does that version match with the setting in : > For example "/var/lib/samba/private/named.conf"; > I'm running debian so change the path above to your file. >I do not have a named.conf file in private. I had thought that the samba_upgradedns command would create it?> > # > # This configures dynamically loadable zones (DLZ) from AD schema > # Uncomment only single database line, depending on your BIND version > # > dlz "AD DNS Zone" { > # For BIND 9.8.x > # database "dlopen /usr/lib/x86_64-linux-gnu/samb > a/bind9/dlz_bind9.so"; > > # For BIND 9.9.x > database "dlopen /usr/lib/x86_64-linux-gnu/samb > a/bind9/dlz_bind9_9.so"; > > # For BIND 9.10.x > # database "dlopen /usr/lib/x86_64-linux-gnu/samb > a/bind9/dlz_bind9_10.so"; > }; > > Greetz, > > Louis > > > > > -----Oorspronkelijk bericht----- > > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Cameron Murdoch > > via samba > > Verzonden: donderdag 1 september 2016 13:25 > > Aan: samba at lists.samba.org > > Onderwerp: [Samba] Segmentation fault in samba_upgradedns - Samba 4.4.5 > > > > Hi, > > > > I'm having the following issue when trying to switch from samba_internal > > to > > bind9_dlz. I have been following the procedure here: > > > > https://wiki.samba.org/index.php/Changing_the_DNS_backend# > > Changing_from_Samba_Internal_DNS_to_BIND_DLZ > > > > I get the following: > > > > [root at dc2 ~]# /usr/local/sbin/samba_upgradedns --dns-backend=BIND9_DLZ > > Reading domain information > > Segmentation fault (core dumped) > > > > The system is running Freebsd 11.0-RC2. I have two domain controllers and > > I > > am attempting this on one of them whilst the other is still running. > > > > Filesystem is zfs. > > > > Both DCs are running Samba 4.4.5 and are otherwise running well. > > > > Any help or suggestions would be most appreciated. > > > > Thanks > > Cameron >
Cameron Murdoch
2016-Sep-01 12:33 UTC
[Samba] Segmentation fault in samba_upgradedns - Samba 4.4.5
On 1 September 2016 at 13:18, Rowland Penny <rpenny at samba.org> wrote:> On Thu, 1 Sep 2016 12:24:38 +0100 > Cameron Murdoch via samba <samba at lists.samba.org> wrote: > > > Hi, > > > > I'm having the following issue when trying to switch from > > samba_internal to bind9_dlz. I have been following the procedure here: > > > > https://wiki.samba.org/index.php/Changing_the_DNS_backend# > > Changing_from_Samba_Internal_DNS_to_BIND_DLZ > > > > I get the following: > > > > [root at dc2 ~]# /usr/local/sbin/samba_upgradedns --dns-backend=BIND9_DLZ > > Reading domain information > > Segmentation fault (core dumped) > > > > The system is running Freebsd 11.0-RC2. I have two domain controllers > > and I am attempting this on one of them whilst the other is still > > running. > > > > Filesystem is zfs. > > > > Both DCs are running Samba 4.4.5 and are otherwise running well. > > > > Any help or suggestions would be most appreciated. > > > > Thanks > > Cameron > > Just another question, who is the user that bind is run as ? > > Rowland >bind runs as user bind: bind:*:53:53::0:0:Bind Sandbox:/:/usr/sbin/nologin Thanks C