[Samba] Groupmap problem

turki at zahid.com turki at zahid.com
Sun Dec 26 13:12:54 GMT 2004


Gentlemen , 

I am getting this error when listing groupmaps

[root at lndc1 lib]# net groupmap list
[2004/12/26 15:21:38, 0] lib/smbldap.c:smbldap_search_suffix(1155)
  smbldap_search_suffix: Problem during the LDAP search:  (No such object)
[2004/12/26 15:21:38, 0] passdb/pdb_ldap.c:ldapsam_setsamgrent(2458)
  ldapsam_setsamgrent: LDAP search failed: No such object
[2004/12/26 15:21:38, 0] 
passdb/pdb_ldap.c:ldapsam_enum_group_mapping(2523)
  ldapsam_enum_group_mapping: Unable to open passdb


I'm running samba+LDAP on WhiteBox Linux with these packages : 
samba-common-3.0.10-1.fc2
samba-3.0.10-1.fc2
samba-client-3.0.10-1.fc2
openldap-clients-2.0.27-11
openldap-servers-2.0.27-11
openldap-2.0.27-11

Here is what I get in /var/log/ldap.log :
Dec 26 16:12:30 lndc1 slapd[5189]: daemon: conn=4 fd=7 connection from
IP=127.0.0.1:33259 (IP=0.0.0.0:389) accepted.
Dec 26 16:12:30 lndc1 slapd[5189]: conn=4 op=0 BIND
dn="CN=MANAGER,DC=ZAHIDTRACTOR,DC=COM" method=128
Dec 26 16:12:30 lndc1 slapd[5189]: conn=4 op=0 RESULT tag=97 err=0 text=
Dec 26 16:12:30 lndc1 slapd[5189]: conn=4 op=1 SRCH
base="dc=ZahidTractor,dc=com" scope=2
filter="(&(objectClass=sambaDomain)(sambaDomainName=ZAHIDTRACTOR))"
Dec 26 16:12:30 lndc1 slapd[5189]: conn=4 op=1 SEARCH RESULT tag=101 err=0
text=
Dec 26 16:12:30 lndc1 slapd[5189]: conn=4 op=2 SRCH
base="dc=zahidtractor,dc=com,dc=ZahidTractor,dc=com" scope=2
filter="(objectClass=sambaGroupMapping)"
Dec 26 16:12:30 lndc1 slapd[5189]: conn=4 op=2 RESULT tag=101 err=32 text=
Dec 26 16:12:31 lndc1 slapd[5189]: conn=-1 fd=7 closed


Everything else seems to work fine , just the groups problem.
I googled for this problem , didn't find much help.

Can you please guide me what is wrong !?

smb.conf :
[global]
        workgroup = ZahidTractor
        netbios name = lndc1
        syslog = 0
        log level = 2
        name resolve order = wins bcast hosts
        printcap name = CUPS
        show add printer wizard = No
 
        add user script =               /usr/local/sbin/smbldap-useradd -a 
-m '%u'
        delete user script =            /usr/local/sbin/smbldap-userdel %u
        add group script =              /usr/local/sbin/smbldap-groupadd 
-p '%g'
        delete group script =           /usr/local/sbin/smbldap-groupdel 
'%g'
        add user to group script =      /usr/local/sbin/smbldap-groupmod 
-m '%u' '%g'
        delete user from group script = /usr/local/sbin/smbldap-groupmod 
-x '%u' '%g'
        set primary group script =      /usr/local/sbin/smbldap-usermod -g 
'%g' '%u'
        add machine script =            /usr/local/sbin/smbldap-useradd -w 
'%u'

        domain logons = Yes
        preferred master = Yes
        wins support = Yes
        printing = CUPS

        ldap passwd sync = Yes
        ldap admin dn = cn=Manager,dc=ZahidTractor,dc=com
        passdb backend = ldapsam:ldap://127.0.0.1/ 
        ldap delete dn = yes
        ldap suffix = dc=ZahidTractor,dc=com
        ldap user suffix = dc=zahidtractor,dc=com
        ldap group suffix = dc=zahidtractor,dc=com
        ldap group suffix = dc=zahidtractor,dc=com
        ldap machine suffix = ou=Computers

        time server = yes
   logon script = scripts\logon.bat
        logon path = 
        logon home = 
[homes]
        comment = Home Directories
        valid users = %S
        read only = No
        browseable = No
[printers]
        comment = SMB Print Spool
        path = /var/spool/samba
        printable = Yes
        guest ok = Yes
        use client driver = Yes
        browseable = No
[netlogon]
        comment = Network Logon Service
        path = /netlogon
        browsable = no
        read only = yes
        guest ok = yes


slapd.conf
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.7 2001/09/27 
20:00:31 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#

include         /etc/openldap/schema/core.schema
include         /etc/openldap/schema/cosine.schema
include         /etc/openldap/schema/inetorgperson.schema
include         /etc/openldap/schema/nis.schema
include         /etc/openldap/schema/redhat/autofs.schema
include         /etc/openldap/schema/samba.schema
include         /etc/openldap/schema/redhat/kerberosobject.schema

database        ldbm
suffix          "dc=ZahidTractor,dc=com"
rootdn          "cn=Manager,dc=ZahidTractor,dc=com"
rootpw *******
directory       /var/lib/ldap
index   objectClass,uid,uidNumber,gidNumber,memberUid   eq
index   cn,mail,surname,givenname                       eq,subinitial

limits dn="cn=Manager,dc=zahidtractor,dc=com" size.soft=-1 size.hard=soft 


access to dn.children="OU=K5 CMD,DC=ZahidTractor,DC=com" 
attrs=userPassword,sambaNTPassword,sambaLMPassword
        by dn.exact="uid=Turkim,OU=Technical Support,OU=Information 
Technology,DC=ZahidTractor,DC=com" write
        by dn.exact="uid=ajunaid,OU=WR Support,OU=Operation,OU=Information 
Technology,DC=ZahidTractor,DC=com" write
        by self write
        by anonymous auth
access to dn.children="OU=K5 CMD,DC=ZahidTractor,DC=com"
        by dn.exact="uid=Turkim,OU=Technical Support,OU=Information 
Technology,DC=ZahidTractor,DC=com" write
        by dn.exact="uid=ajunaid,OU=WR Support,OU=Operation,OU=Information 
Technology,DC=ZahidTractor,DC=com" write
        by self write
        by users read
        by anonymous read

access to attrs=userPassword,sambaNTPassword,sambaLMPassword
        by dn.exact="uid=Turkim,OU=Technical Support,OU=Information 
Technology,DC=ZahidTractor,DC=com" write
        by self write
        by * auth

access to * 
        by dn.exact="uid=Turkim,OU=Technical Support,OU=Information 
Technology,DC=ZahidTractor,DC=com" write
        by self write
        by users read
        by * read


IT - Technical Support
tm @ zahid.com


More information about the samba mailing list