[Samba] samba 4.8.3 "apply group policy = yes" error
Kacper Wirski
kacper.wirski at gmail.com
Mon Jul 2 08:52:12 UTC 2018
Hello,
Centos 7.5 samba 4.8.3 installation, compiled from source working as AD DC.
It was an update from 4.7 (not an in place update, but added new DC's to
existing domain and demoted 4.7.x DC's).
After adding to my smb.conf:
/apply group policies = yes/
I see errors on samba star:
../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/local/samba/sbin/samba_gpoupdate: SID
S-1-5-21-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -> getpwuid(3000002) failed
[2018/07/02 10:21:45.885124, 0]
../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/local/samba/sbin/samba_gpoupdate: Traceback (most recent call last):
./lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/local/samba/sbin/samba_gpoupdate: File
"/usr/local/samba/sbin/samba_gpoupdate", line 177, in <module>
../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/local/samba/sbin/samba_gpoupdate: apply_gp(lp, creds,
test_ldb, logger, store, gp_extensions)
../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/local/samba/sbin/samba_gpoupdate: File
"/usr/local/samba/sbin/samba_gpoupdate", line 71, in apply_gp
../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/local/samba/sbin/samba_gpoupdate: for gpo_obj in gpos:
[2018/07/02 10:21:45.885357, 0]
../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
winbindd[14072]: /usr/local/samba/sbin/samba_gpoupdate: TypeError:
'NoneType' object is not iterable
UID that is "failed" is the right machine account of the server (DC2$).
Running "wbinfo --uid-info=30000002 results correctly with
DOMAIN\dc2$:*:3000002:10000::/home/dc2_ at DOMAIN:/bin/bash
Same issue is present on all other samba 4 AD servers i tried it (also
centos 7.5 with compiled from source samba 4.8.3).
Running: "samba_gpoupdate -M -d 5" is on the other hand successfull, and
GPO is being applied correctly:
end of output looks like this:
KDC Minimum Password age was changed from -4320000000000 to -4320000000000
KDC Maximum Password age was changed from -25920000000000 to -25920000000000
KDC Minimum Password length was changed from 5 to 8
KDC Password Properties were changed from 1 to 1
kdc:user_ticket_lifetime was changed from 10 to 13
kdc:renewal_lifetime was changed from 150 to 168
kdc:service_ticket_lifetime was changed from 10 to 13
and those settings are correctly applied and respected.
Can anyone shed some light , why the smb.conf setting fails, but running
update manually works just fine? Did anyone run into same issue?
One thing that I realized post-samba installa, is that "python-chardet"
package (from centos repo) was required to run the "samba_gpoupdate"
script. Could it be, that because it was missing at compile time, that's
the cause of the error?
Regards,
Kacper
More information about the samba
mailing list