Переименуйте smb.conf, создайте новый.
Оставьте только
[global]
dos charset = CP866
workgroup = VAOFIT
realm = VAOFIT.LOC
security = ADS
dedicated keytab file = /etc/krb5.keytab
kerberos method = secrets and keytab
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = Yes
winbind nss info = rfc2307
winbind refresh tickets = Yes
winbind offline logon = Yes
idmap config VAOFIT : range = 1500-99999
idmap config VAOFIT : schema_mode = rfc2307
idmap config VAOFIT : backend = ad
idmap config * : range = 100000-100999
idmap config * : backend = tdb
map acl inherit = Yes
store dos attributes = Yes
vfs objects = acl_xattr
Cделал.
samba-tool testparm --suppress-prompt дает
[global]
dos charset = CP866
workgroup = VAOFIT
realm = VAOFIT.LOC
server string = %h server (Samba, Ubuntu)
server role = standalone server
security = ADS
map to guest = Bad User
obey pam restrictions = Yes
passdb backend = tdbsam
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
dedicated keytab file = /etc/krb5.keytab
kerberos method = secrets and keytab
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = Yes
winbind nss info = rfc2307
winbind refresh tickets = Yes
winbind offline logon = Yes
idmap config * : backend = tdb
idmap config * : range = 100000-100999
idmap config vaofit : backend = ad
idmap config vaofit : schema_mode = rfc2307
idmap config vaofit : range = 1500-99999
map acl inherit = Yes
store dos attributes = Yes
vfs objects = acl_xattr
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
sudo net ads join -U admin -D VAOFIT дает
Using short domain name -- VAOFIT
Joined 'UBUNTUDESKTOP' to dns domain 'vaofit.loc'
DNS Update for ubuntudesktop.vaofit.loc failed: ERROR_DNS_GSS_ERROR
DNS update failed: NT_STATUS_UNSUCCESSFUL
Пользователь решил продолжить мысль 14 Января 2016, 12:56:05:
Не последняя причина, почему я всегда отключаю аватары на форуме…
Согасен
