refactor ♻️: Update ntp.conf to use AD DCs, configure winbind, and enable SMB service with appropriate ID mapping.
Refactored the ntp configuration to include AD domain controllers, updated winbind settings for local BUILTIN accounts, and enabled SMB service with proper ID mapping.
This commit is contained in:
@@ -2,13 +2,26 @@
|
||||
workgroup = {{ ad_realm.split('.')[0] }}
|
||||
security = ads
|
||||
realm = {{ ad_realm }}
|
||||
|
||||
# users will be in the form username instead of DOMAIN\username.
|
||||
winbind use default domain = true
|
||||
|
||||
winbind offline logon = false
|
||||
dedicated keytab file = /etc/krb5.keytab
|
||||
kerberos method = secrets and keytab
|
||||
|
||||
# Default ID mapping configuration for local BUILTIN accounts
|
||||
# and groups on a domain member. The default (*) domain:
|
||||
# - must not overlap with any domain ID mapping configuration!
|
||||
# - must use a read-write-enabled back end, such as tdb.
|
||||
idmap config * : backend = tdb
|
||||
idmap config * : range = 10000-20000
|
||||
idmap config * : range = 3000-7999
|
||||
|
||||
# - You must set a DOMAIN backend configuration
|
||||
# idmap config for the {{ ad_realm.split('.')[0] }} domain
|
||||
idmap config {{ ad_realm.split('.')[0] }} : backend = rid
|
||||
idmap config {{ ad_realm.split('.')[0] }} : range = 20001-999999
|
||||
idmap config {{ ad_realm.split('.')[0] }} : range = 10000-999999
|
||||
|
||||
# Template settings for login shell and home directory
|
||||
template shell = /bin/bash
|
||||
template homedir = /home/%U
|
||||
|
||||
Reference in New Issue
Block a user