Answer the question
In order to leave comments, you need to log in
Why is SAMBA dropping out of a domain?
Good afternoon.
Please help me diagnose the problem. SAMBA 4.4.5 falls out of the Microsoft domain every week.
net ads testjoin
kerberos_kinit_password [email protected] failed: Preauthentication failed
kerberos_kinit_password [email protected] failed: Preauthentication failed
Join to domain is not valid: Logon failure
net ads join -U administrator
Enter administrator's password:
Using short domain name -- MYAD
Joined 'FILESERVER' to dns domain 'myad.ru'
net ads testjoin
Join is OK
# Global parameters
[global]
log level = 2
server string = Файловый Сервер
workgroup = MEZON
realm = MYAD.RU
netbios name = FILESERVER
server role = member server
dns forwarder = 192.168.1.11
security = ADS
encrypt passwords = yes
name resolve order = wins lmhosts hosts bcast
wins server = 192.168.1.11
remote announce = 192.168.1.11
idmap config *:range = 10000-20000
idmap uid = 10000-20000
idmap gid = 10000-20000
winbind nss info = rfc2307
winbind trusted domains only = no
winbind use default domain = yes
winbind enum users = yes
winbind enum groups = yes
winbind refresh tickets = yes
client ldap sasl wrapping = plain
unix charset = cp1251
dos charset = 866
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
read only = yes
browseable = yes
inherit owner = yes
inherit acls = yes
inherit permissions = yes
map acl inherit = yes
map archive = no
map readonly = no
locking = yes
oplocks = true
store dos attributes = yes
acl check permissions = yes
vfs objects = zfsacl
nfs4:mode = special
nfs4:acedup = merge
nfs4:chown = yes
guest ok = no
map to guest = Bad User
hide dot files = yes
veto files = /Thumbs.db/
delete veto files = yes
hide files = /*.dwl|*.dwl2/
deadtime = 360
getwd cache = yes
[libdefaults]
default_realm = DOMAIN.RU
clockskew = 300
v4_instance_resolve = false
v4_name_convert = {
host = {
rcmd = host
ftp = ftp
}
}
[realms]
DOMAIN.RU = {
kdc = DOMAIN.RU
admin_server = DOMAIN.RU
}
[domain_realm]
.domain.ru = DOMAIN.RU
Answer the question
In order to leave comments, you need to log in
Revealed a problem on troubleshooting from the official Wiki.
My keytab file was missing/corrupted. I removed the one I had.
Added to samba configuration:
kerberos method = secrets and keytab
dedicated keytab file = /etc/krb5.keytab
net ads leave -u Administrator
net ads join -u Administrator
net ads keytab create -U Administrator
Uncomment pam_krb5.so in /etc/pam.d/system-auth
This is for RHEL, but it's generally a good idea to specify the OS in such matters.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question