Hello,
I've just start studying OpenLDAP after reading OpenLDAP site and now following "Mastering OpenLDAP" by Matt Butcher.
I have troubled with starting slapd after exporting slapd.conf to slapd.d with following syslog output.
####### syslog output ######### Sep 20 16:12:59 vubuntu slapd[10550]: @(#) $OpenLDAP: slapd 2.4.15 (Mar 19 2009 10:08:25) $ ^Ibuildd@palmer:/build/buildd/openldap-2.4.15/debian/build/servers/slapd Sep 20 16:12:59 vubuntu slapd[10550]: olcAttributeTypes: value #0 olcAttributeTypes: Duplicate attributeType: "2.16.840.1.113730.3.1.1" Sep 20 16:12:59 vubuntu slapd[10550]: config error processing cn={3}inetorgperson,cn=schema,cn=config: olcAttributeTypes: Duplicate attributeType: "2.16.840.1.113730.3.1.1" Sep 20 16:12:59 vubuntu slapd[10550]: slapd stopped. Sep 20 16:12:59 vubuntu slapd[10550]: connections_destroy: nothing to destroy. root@vubuntu:/etc/ldap# ####### syslog output #########
I can still start slapd without problem when I use old slapd.conf with "/usr/sbin/slapd -f /etc/ldap/slapd.conf" but I want to debug the problem for my study and understanding slapd.d.
Please tell me what the problem of this error.
Best regards,
Akihiro
Hi Akihiro,
Akihiro Moriguchi wrote:
cn={3}inetorgperson,cn=schema,cn=config: olcAttributeTypes: Duplicate attributeType: "2.16.840.1.113730.3.1.1"
Sounds to me like you have two schema files which each define the same attribute (in this case, carLicense). Try identifying them with something like: grep -r 2.16.840.1.113730.3.1.1 /etc/ldap/slapd.d
Respectfully, Ryan
How were these converted?
On 21/09/2009, Ryan Steele ryans@aweber.com wrote:
Hi Akihiro,
Akihiro Moriguchi wrote:
cn={3}inetorgperson,cn=schema,cn=config: olcAttributeTypes: Duplicate attributeType: "2.16.840.1.113730.3.1.1"
Sounds to me like you have two schema files which each define the same attribute (in this case, carLicense). Try identifying them with something like: grep -r 2.16.840.1.113730.3.1.1 /etc/ldap/slapd.d
Respectfully, Ryan
Hello Ryan,
Thanks for your help.
Following your suggestion, I got to know there are two inetorgperson schemas, cn={2}inetorgperson.ldif, cn={3}inetorgperson.ldif. And removing one of them, cn={3}inetorgperson.ldif, makes slapd work without problem.
But I don't understand why the cn={3}inetorgperson.ldif was created in the process of slaptest -f slapd.conf -F slapd.d.
Anyway I appreciate your help.
Best regards, Akihiro
On 9/22/09, Ryan Steele ryans@aweber.com wrote:
Hi Akihiro,
Akihiro Moriguchi wrote:
cn={3}inetorgperson,cn=schema,cn=config: olcAttributeTypes: Duplicate attributeType: "2.16.840.1.113730.3.1.1"
Sounds to me like you have two schema files which each define the same attribute (in this case, carLicense). Try identifying them with something like: grep -r 2.16.840.1.113730.3.1.1 /etc/ldap/slapd.d
Respectfully, Ryan
openldap-software@openldap.org