Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - xgonc

Pages: [1]
1
Hi,

I've tested this workaround in Zentyal 6, and it doesn't seem to work. It looks like the user dhcpd doesn't have permissions to run the dhcp-dyndns.sh script:

Code: [Select]
Jan 13 14:42:52 zen dhcpd[29771]: DHCPREQUEST for 192.168.1.106 from 00:0e:08:d4:4f:0d (teles) via enp7s0
Jan 13 14:42:52 zen dhcpd[29771]: DHCPACK on 192.168.1.106 to 00:0e:08:d4:4f:0d (teles) via enp7s0
Jan 13 14:43:02 zen dhcpd[29771]: Commit: IP: 192.168.1.115 DHCID: 1:0:e:8:d4:4f:14 Name: telcv
Jan 13 14:43:02 zen dhcpd[29771]: execute_statement argv[0] = /etc/dhcp/bin/dhcp-dyndns.sh
Jan 13 14:43:02 zen dhcpd[29771]: execute_statement argv[1] = add
Jan 13 14:43:02 zen dhcpd[29771]: execute_statement argv[2] = 192.168.1.115
Jan 13 14:43:02 zen dhcpd[29771]: execute_statement argv[3] = 1:0:e:8:d4:4f:14
Jan 13 14:43:02 zen dhcpd[29771]: execute_statement argv[4] = telcv
Jan 13 14:43:02 zen sh[29771]: /etc/dhcp/bin/dhcp-dyndns.sh: line 108: /usr/bin/awk: Permission denied
Jan 13 14:43:02 zen dhcpd[22977]: 13-01-19 14:43:02 [dyndns] : Running check for valid kerberos ticket
Jan 13 14:43:02 zen dhcpd[22979]: 13-01-19 14:43:02 [dyndns] : Getting new ticket, old one has expired
Jan 13 14:43:02 zen sh[29771]: kinit: krb5_init_creds_set_keytab: Failed to find dhcpduser@IDEIAO.LAN in keytab FILE:/etc/dhcp/dhcpduser.keytab (unknown enctype)
Jan 13 14:43:02 zen dhcpd[22981]: 13-01-19 14:43:02 [dyndns] : dhcpd kinit for dynamic DNS failed
Jan 13 14:43:02 zen dhcpd[29771]: execute: /etc/dhcp/bin/dhcp-dyndns.sh exit status 256

However if I run manually as user dhcpd, the script adds the host correctly, and no error messages are printed:

Code: [Select]
sudo -u dhcpd /etc/dhcp/bin/dhcp-dyndns.sh add 192.168.1.115 1:0:e:8:d4:4f:14 telcv
sudo -u dhcpd kinit -F -k -t /etc/dhcp/dhcpduser.keytab -c /tmp/dhcp-dyndns.cc "dhcpduser@IDEIAO.LAN"

I've tried to whoami to know what user is running the script, but there's no permission also.

Any thoughts?


Thanks

2
Other modules / Zentyal 6 DHCP update DNS
« on: January 10, 2019, 05:12:52 am »
Hi,

I have selected the DHCP option to update DNS records.

This feature only works for domain machines. Non-domain machines cannot be reached by name, only IP address.

Can anyone help troubleshooting this?

Thanks.

Pages: [1]