Здравствуйте. Настраиваю сейчас samba на debian 9. Версия самбы 4.5.12 Конфиг:
# Global parameters
[global]
netbios name = TST
realm = TST.IVK
server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbindd, ntp_signd, kcc, dnsupdate
workgroup = TSTIVK
server role = active directory domain controller
# idmap_ldb:use rfc2307 = yes
# winbind separator = +
winbind cache time = 10
winbind enum users = true
winbind enum groups = true
winbind use default domain = Yes
# idmap uid = 20000-20999
# idmap gid = 20000-20999
# idmap config * :base_rid =20000
idmap config * : range = 20000-20999
idmap config * : backend = rid
idmap config * : default = yes
log level = 3 winbind:10
logon script = netlogon.bat
winbind refresh tickets = yes
# wins support = Yes
getent passwd
TSTIVK\administrator:*:0:100::/home/TSTIVK/administrator:/bin/false
TSTIVK\dns-tst:*:3000018:100::/home/TSTIVK/dns-tst:/bin/false
TSTIVK\krbtgt:*:3000019:100::/home/TSTIVK/krbtgt:/bin/false
TSTIVK\guest:*:3000011:100::/home/TSTIVK/guest:/bin/false
TSTIVK\admin:*:3000014:100::/home/TSTIVK/admin:/bin/false