Конфиг Самбы на сервере:[global]
workgroup = TESTDOMAIN
netbios name = SRV0
server string = SRV0
domain master = Yes
security = user
os level = 65
domain logons = yes
map to guest = Bad User
printcap name = cups
cups options = raw
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
max log size = 1000
log file = /var/log/samba/%m.log
logon drive = P:
logon home = \\%L\%U\.9xprofile
logon path = \\%L\profiles\.msprofile
idmap uid = 10000-20000
idmap gid = 1000-20000
idmap backend = ldap:ldap://127.0.0.1
winbind use default domain = Yes
passdb backend = ldapsam:ldap://127.0.0.1
wins support = yes
ldap timeout = 5
ldap passwd sync = Yes
ldap ssl = no
ldap admin dn = cn=adminldap,dc=testdomain,dc=com
ldap user suffix = ou=people
ldap group suffix = ou=group
ldap machine suffix = ou=Machines
ldap suffix = dc=testdomain,dc=com
ldap idmap suffix = ou=Idmap
usershare allow guests = No
[homes]
browseable = No
comment = Home Directories
writable = yes
create mode = 700
directory mode = 700
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
create mask = 0600
store dos attributes = Yes
browseable = No
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
browseable = No
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
browseable = No
[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin, root
force group = ntadmin
create mask = 0664
directory mask = 0775
[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
write list = root
[public]
comment = public files
path = /home/PUBLIC/
read only = No
create mask = 0777
directory mask = 0777
inherit acls = Yes
sync always = Yes