[Samba] LDAP with Samba Server

rodrigo tavares rodrigofariat at yahoo.com.br
Mon Nov 12 06:23:42 MST 2012

Hello !

Today I have a ldap server, it replicate the database from another machine SMB-LDAP.
See the result:

dn: cn=informatica,ou=defensoria,dc=defensoria,dc=br
cn: informatica
description: Informatica
gidNumber: 2451
phpgwAccountExpires: -1
phpgwAccountType: g
mail: informatica at defensoria.br
memberUid: diego.santos
memberUid: alan.murta
memberUid: bruce.borba
memberUid: william.mor
memberUid: manuel.neto
memberUid: eli.set
memberUid: rodrigo.tavares
memberUid: faria.tavares
structuralObjectClass: posixGroup
entryUUID: e0cf40fa-b0af-1031-9098-b773bfdd8a70
creatorsName: cn=admin,dc=defensoria,dc=br
createTimestamp: 20121022161837Z
objectClass: top
objectClass: posixGroup
objectClass: phpgwAccount
objectClass: sambaGroupMapping
sambaGroupType: 2
displayName: informatica
entryCSN: 20121112130102.988770Z#000000#000#000000
modifiersName: cn=admin,dc=defensoria,dc=mg,dc=gov,dc=br
modifyTimestamp: 20121112130102Z

I my smb.conf

        comment = system
        path = /home/system
        public = yes
        printable = no
        browseable = no
        guest ok = yes
        read only = yes
        write list = @informatica

 domain logons = yes
   add user script = /usr/sbin/smbldap-useradd -a -m "%u"
   add group script = /usr/sbin/smbldap-groupadd -p "%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 -w "%u"

 ldap user suffix = ou=defensoria
   ldap group suffix = ou=grupos
   ldap machine suffix = ou=computadores
   ldap passwd sync = yes
   ldap admin dn = cn=admin,dc=defensoria,dc=mg,dc=gov,dc=br
   ldap suffix = dc=defensoria,dc=mg,dc=gov,dc=br
   ldap ssl = no
   passdb backend = ldapsam:ldap://


When I try mapping the folder, come a screen with login/password, then i type password but
is not login is not access. Why is not access ?

Rodrigo Faria

More information about the samba mailing list