Ing. Claudio Nicora
2023-Jan-23 13:47 UTC
[Samba] Samba Wiki: fix to "Configure DHCP to update DNS records" page
@Rowland Penny: thanks for the BASH script to let DHCP update DNS records (https://wiki.samba.org/index.php/Configure_DHCP_to_update_DNS_records). I'm suggesting this change: the "if" condition at line 171 does not use the filename assigned to $keytab variable (at line 41), but a fixed filename (equal to default $keytab filename). If someone (like me) need to set a different filename, then the Kerberos keytab test fails. So my suggestion is to replace the "if" condition (around line 171) from ------------------------------ # Check for Kerberos keytab if [?! -f /etc/dhcpduser.keytab ] then logger "Required keytab $keytab not found, it needs to be created." ... ------------------------------ to ------------------------------ # Check for Kerberos keytab if [?! -f "$keytab" ] then logger "Required keytab $keytab not found, it needs to be created." ... ------------------------------ Thanks for your work
Rowland Penny
2023-Jan-23 13:54 UTC
[Samba] Samba Wiki: fix to "Configure DHCP to update DNS records" page
On 23/01/2023 13:47, Ing. Claudio Nicora via samba wrote:> @Rowland Penny: thanks for the BASH script to let DHCP update DNS > records > (https://wiki.samba.org/index.php/Configure_DHCP_to_update_DNS_records). > > I'm suggesting this change: > the "if" condition at line 171 does not use the filename assigned to > $keytab variable (at line 41), but a fixed filename (equal to default > $keytab filename). > If someone (like me) need to set a different filename, then the Kerberos > keytab test fails. > > So my suggestion is to replace the "if" condition (around line 171) from > > ------------------------------ > # Check for Kerberos keytab > if [?! -f /etc/dhcpduser.keytab ] > then > ? logger "Required keytab $keytab not found, it needs to be created." > ? ... > ------------------------------ > > to > > ------------------------------ > # Check for Kerberos keytab > if [?! -f "$keytab" ] > then > ? logger "Required keytab $keytab not found, it needs to be created." > ? ... > ------------------------------ > > Thanks for your workThanks for pointing that out, thought I had changed them all, I have now (hopefully) Rowland