ViniMagrelo
(usa Ubuntu)
Enviado em 30/08/2011 - 09:34h
Sim, e até reniciei o samba.
Dê uma olhada no meu smb.conf
[global]
workgroup = Ldap
netbios name = Server
passdb backend = ldapsam:ldap://192.168.1.10
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
username map = /etc/samba/smbusers
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
add user script = /usr/sbin/smbldap-useradd -m -a "%u"
delete user script = /usr/sbin/smbldap-userdel "%u"
add group script = /usr/sbin/smbldap-groupadd -p "%g"
delete group script = /usr/sbin/smbldap-groupdel "%g"
add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"
add machine script = /usr/sbin/smbldap-useradd -a -w "%u"
domain logons = Yes
preferred master = Yes
wins support = Yes
ldap admin dn = "cn=Manager,dc=dominio,dc=com,dc=br"
ldap group suffix = "ou=grupos"
ldap idmap suffix = ou=idmap
ldap machine suffix = "ou=computadores"
ldap suffix = "dc=g5brasil,dc=com,dc=br"
ldap ssl = no
ldap user suffix = "ou=usuarios"
panic action = /usr/share/samba/panic-action %d
idmap backend = ldap:ldap://192.168.1.10
idmap uid = 10000-20000
idmap gid = 10000-20000
[compart]
comment = compart
path = /home/compart
valid users = @grupo
read only = No
create mask = 0777
directory mask = 0777