Сразу извиняюсь у меня не ответ на ваш вопрос, а новый вопрос. У меня ни как не получается ввести самбу в домен. wbinfo -u,g,t -работают, getent passwd, group - отображает только локальных пользователей. Билетики kerberos получаются. В домен компьютер добавился. При входе на Линукс спрашивает имя и пароль Если ввести пользователей ад то не пускает.
Пишет - Username HARD\* is invalid on this systemnsswitch.conf
passwd: files winbind
shadow: files winbind
group: files winbind
hosts: files dns
networks: files
services: files
protocols: files
rpc: files
ethers: files
netmasks: files
netgroup: files
bootparams: files
automount: files
aliases: files
krb5.conf
[libdefaults]
default_realm = HARD.NOV
ticket_lifetime = 24000
clock_skew = 300
[realms]
HARD.NOV = {
kdc = moscow.hard.nov
admin_server = moscow.hard.nov
default_domain = HARD.NOV
}
[domain_realm]
.hard.nov = HARD.NOV
hard.nov = HARD.NOV
[login]
krb4_convert = false
krb4_get_tickets = false
[logging]
default = FILE:/var/krb5/kdc.log
kdc = FILE:/var/krb5/kdc.log
kdc_rotate = {
period = 1d
version = 10
}
smb.conf
[global]
workgroup = HARD
server string = Samba Server
security = ads
hosts allow = 192.168.1. 127.
load printers = yes
log file = /usr/local/samba/var/log.%m
debug level = 2
max log size = 50
password server = moscow.hard.nov
realm = HARD.NOV
interfaces = 192.168.1.44/24
local master = no
os level = 0
domain master = no
preferred master = no
dns proxy = no
encrypt passwords = yes
null passwords = yes
auth methods = winbind
idmap uid = 10000-20000
idmap gid = 10000-20000
winbind enum groups = yes
winbind enum users = yes
winbind use default domain = yes
netbios name = kert
template homedir = /home/%D+%U
template shell = /bin/bash
client use spnego = yes
pam.d/samba
auth required /usr/local/samba/lib/pam_winbind.so
account required /usr/local/samba/lib/pam_winbind.so
session required /usr/local/samba/lib/pam_winbind.so