Thread: LDAP and Samba
View Single Post
  #1 (permalink)  
Old 05-29-2007, 11:44 AM
numkem numkem is offline
Junior Member
 
Posts: 8
Default LDAP and Samba

After viewing all the post that i could find for this problem, i still can't find an explanation of why i can't :

1 - Get LDAP to read the schema for samba
2 - Get rid of the "invalid DN" error in Samba's log

I followed Greg's guide from the wiki for the installation process.

/opt/zimbra/conf/slapd.conf.in
Code:
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
#ucdata-path    "/opt/zimbra/openldap/ucdata"
include         "/opt/zimbra/openldap/etc/openldap/schema/core.schema"
include         "/opt/zimbra/openldap/etc/openldap/schema/cosine.schema"
include     "/opt/zimbra/openldap/etc/openldap/schema/inetorgperson.schema"
include         "/opt/zimbra/openldap/etc/openldap/schema/amavisd.schema"
include         "/opt/zimbra/openldap/etc/openldap/schema/zimbra.schema"
include         "/opt/zimbra/lib/conf/zimbra-ext.schema"
include         "/opt/zimbra/openldap/etc/openldap/schema/nis.schema"
include         "/opt/zimbra/openldap/etc/openldap/schema/samba.schema"

[...]

TLSCertificateFile /opt/zimbra/conf/slapd.crt
TLSCertificateKeyFile /opt/zimbra/conf/slapd.key
TLSVerifyClient never

#indexes for PAM
index uidNumber             eq
index gidNumber             eq
index memberUID             eq

#indexes for Samba
index sambaSID              eq
index sambaPrimaryGroupSID  eq
index sambaDomainName       eq
ls -l /opt/zimbra/openldap/etc/openldap/schema/
Code:
-rw-r--r-- 1 zimbra zimbra  32161 2007-04-18 18:39 amavisd.schema
-r--r--r-- 1 zimbra zimbra   8231 2007-03-12 14:37 corba.schema
-r--r--r-- 1 zimbra zimbra  20591 2007-03-12 14:37 core.ldif
-r--r--r-- 1 zimbra zimbra  19762 2007-03-12 14:37 core.schema
-r--r--r-- 1 zimbra zimbra  74080 2007-03-12 14:37 cosine.schema
-r--r--r-- 1 zimbra zimbra   1553 2007-03-12 14:37 dyngroup.schema
-r--r--r-- 1 zimbra zimbra   6360 2007-03-12 14:37 inetorgperson.schema
-r--r--r-- 1 zimbra zimbra  13984 2007-03-12 14:37 java.schema
-r--r--r-- 1 zimbra zimbra   2471 2007-03-12 14:37 misc.schema
-r--r--r-- 1 zimbra zimbra   7723 2007-03-12 14:37 nis.schema
-r--r--r-- 1 zimbra zimbra   3391 2007-03-12 14:37 openldap.ldif
-r--r--r-- 1 zimbra zimbra   1601 2007-03-12 14:37 openldap.schema
-r--r--r-- 1 zimbra zimbra  19689 2007-03-12 14:37 ppolicy.schema
-r--r--r-- 1 zimbra zimbra   2968 2007-03-12 14:37 README
-rw-r--r-- 1 zimbra zimbra  19058 2005-12-29 15:45 samba.schema
-r--r--r-- 1 zimbra zimbra     49 2007-04-18 18:39 zimbra-ext.schema
-r--r--r-- 1 zimbra zimbra    962 2007-04-18 18:39 zimbra-hsm.schema
-rw-r--r-- 1 zimbra zimbra 145468 2007-04-18 18:39 zimbra.schema
For Samba, i use the one shipped with the OS, in my case Ubuntu 6.10. smb.conf is the same as in the wiki with the only difference of the prefix.

Thanks in advance.
Reply With Quote