basti.mueller31 at web.de
2019-Aug-05 13:02 UTC
[Samba] No dynamic dns updates if client ip changed
Hi, ? I've a problem with the dynamic dns updates. It seems they won't work. ? Most of my clients have a dynmaic IP so sometimes they change. If I do a ping to the name, it tries do ping the old ip insead of the changed new one. ? I tried a "samba_dnsupdate --verbose" and got a looking/checking output and at least a "No DNS updates needed". But the client still has the old dns-record ? We've changed our setup from winbind to sssd some month ago. I'm not sure if this was working before we switched. ? ? My setup is: Linux Debian 4.9.168 Samba vers 4.5.16 sssd vers 1.15.0 isc dhcp vers. 4.3.5 ? smb.conf: [global] ??????? netbios name = PDC ??????? realm = COMPANY.COM ??????? workgroup = COMPANY ??????? server role = active directory domain controller ??????? interfaces = br0 tun0 ??????? idmap_ldb:use rfc2307 = yes ??????? template shell = /bin/bash ??????? template homedir= /home/%U ??????? dns forwarder = 8.8.8.8 ??????? ldap server require strong auth = no ??????? log file = /var/log/samba/log.samba-ad ??????? max log size = 10000 ??????? log level = 2 ??????? domain logons = Yes ??????? panic action = /var/lib/samba/gdb_backtrace %d ??????? mangled names = no ??????? unix extensions = no ??????? acl allow execute always = True ??????? follow symlinks = yes ??????? wide links = yes ? sssd.conf: [sssd] ??????? config_file_version = 2 ??????? services = nss, pam ??????? domains = COMPANY.COM [domain/COMPANY.COM] ??????? id_provider = ad ??????? access_provider = ad ??????? sudo_provider = none ??????? ldap_id_mapping = false ??????? fallback_homedir = /home/%u ??????? default_shell = /bin/bash ??????? skel_dir = /etc/skel ??????? krb5_keytab=/etc/krb5.sssd.keytab ??????? enumerate = true ??????? ldap_user_gecos = description ??????? cache_credentials = false ??????? ldap_enumeration_refresh_timeout = 30 ? If you need some more infos please let me know but I think I just missed an option to activate it?
On 05/08/2019 14:02, basti mueller via samba wrote:> Hi, > > I've a problem with the dynamic dns updates. It seems they won't work. > > Most of my clients have a dynmaic IP so sometimes they change. If I do a ping to the name, it tries do ping the old ip insead of the changed new one. > > I tried a "samba_dnsupdate --verbose" and got a looking/checking output and at least a "No DNS updates needed". But the client still has the old dns-recordsamba_dnsupdate has nothing to do with updating your clients dns records.> > We've changed our setup from winbind to sssd some month ago. I'm not sure if this was working before we switched. >Using sssd with Samba is not supported (not even by red-hat)> My setup is: > Linux Debian 4.9.168I take it that is your kernel version> Samba vers 4.5.16But that means Debian Stretch, I suggest you upgrade to Buster> sssd vers 1.15.0apt-get purge sssd> isc dhcp vers. 4.3.5How is DHCP setup ?> > smb.conf: > > [global] > ??????? netbios name = PDCWhy call it something it isn't ?> ??????? realm = COMPANY.COM > ??????? workgroup = COMPANY > ??????? server role = active directory domain controller > ??????? interfaces = br0 tun0 > ??????? idmap_ldb:use rfc2307 = yes > ??????? template shell = /bin/bash > ??????? template homedir= /home/%U > ??????? dns forwarder = 8.8.8.8Not using bind9> ??????? ldap server require strong auth = no > ??????? log file = /var/log/samba/log.samba-ad > ??????? max log size = 10000 > ??????? log level = 2 > ??????? domain logons = YesDon't need that line, it sort of goes with being an AD domain> ??????? panic action = /var/lib/samba/gdb_backtrace %d > ??????? mangled names = no > ??????? unix extensions = no > ??????? acl allow execute always = True > ??????? follow symlinks = yes > ??????? wide links = yesWow, you are brave, allowing wide links Rowland
L.P.H. van Belle
2019-Aug-05 13:50 UTC
[Samba] No dynamic dns updates if client ip changed
Rowland missed one ;-) .. Remove : domain logons = Yes This one is only for NT4PDC/BDC setups. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Rowland penny via samba > Verzonden: maandag 5 augustus 2019 15:19 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] No dynamic dns updates if client ip changed > > On 05/08/2019 14:02, basti mueller via samba wrote: > > Hi, > > > > I've a problem with the dynamic dns updates. It seems they > won't work. > > > > Most of my clients have a dynmaic IP so sometimes they > change. If I do a ping to the name, it tries do ping the old > ip insead of the changed new one. > > > > I tried a "samba_dnsupdate --verbose" and got a > looking/checking output and at least a "No DNS updates > needed". But the client still has the old dns-record > samba_dnsupdate has nothing to do with updating your clients > dns records. > > > > We've changed our setup from winbind to sssd some month > ago. I'm not sure if this was working before we switched. > > > Using sssd with Samba is not supported (not even by red-hat) > > My setup is: > > Linux Debian 4.9.168 > I take it that is your kernel version > > Samba vers 4.5.16 > But that means Debian Stretch, I suggest you upgrade to Buster > > sssd vers 1.15.0 > apt-get purge sssd > > isc dhcp vers. 4.3.5 > How is DHCP setup ? > > > > smb.conf: > > > > [global] > > ??????? netbios name = PDC > Why call it something it isn't ? > > ??????? realm = COMPANY.COM > > ??????? workgroup = COMPANY > > ??????? server role = active directory domain controller > > ??????? interfaces = br0 tun0 > > ??????? idmap_ldb:use rfc2307 = yes > > ??????? template shell = /bin/bash > > ??????? template homedir= /home/%U > > ??????? dns forwarder = 8.8.8.8 > Not using bind9 > > ??????? ldap server require strong auth = no > > ??????? log file = /var/log/samba/log.samba-ad > > ??????? max log size = 10000 > > ??????? log level = 2 > > ??????? domain logons = Yes > Don't need that line, it sort of goes with being an AD domain > > ??????? panic action = /var/lib/samba/gdb_backtrace %d > > ??????? mangled names = no > > ??????? unix extensions = no > > ??????? acl allow execute always = True > > ??????? follow symlinks = yes > > ??????? wide links = yes > Wow, you are brave, allowing wide links > > Rowland > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
On 05/08/2019 14:50, L.P.H. van Belle via samba wrote:> Rowland missed one ;-) > > .. > Remove : domain logons = Yes > This one is only for NT4PDC/BDC setups. > >No I didn't, what do you think 'Don't need that line, it sort of goes with being an AD domain' was for ? LOL Rowland
L.P.H. van Belle
2019-Aug-05 14:16 UTC
[Samba] No dynamic dns updates if client ip changed
Ahhh... I need better glasses... I really did not see that.. Sorry for the noice. Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Rowland penny via samba > Verzonden: maandag 5 augustus 2019 16:11 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] No dynamic dns updates if client ip changed > > On 05/08/2019 14:50, L.P.H. van Belle via samba wrote: > > Rowland missed one ;-) > > > > .. > > Remove : domain logons = Yes > > This one is only for NT4PDC/BDC setups. > > > > > No I didn't, what do you think 'Don't need that line, it sort of goes > with being an AD domain' was for ? LOL > > Rowland > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >