I don't know if this is the best place to ask for help but I can only try please don't shoot me down. I'm new to openldap and find it hard going so any help would great. Trying to setup an Address book to work with Thunderbird. Trying to Include mozillaAbPersonAlpha.schema in to Ldap 2.4.7 on Ubuntu server 20.04.2
The steps I have taken 1) mkdir /tmp/ldapworkingdir 2) cd /tmp/ldapworkingdir/ 3) touch ldap.conf 4) echo "include /etc/ldap/schema/mozillaAbPersonAlpha.schema" > ldap.conf 5) slaptest -f ldap.conf -F . 6) the error message 60b0fc5f /etc/ldap/schema/mozillaAbPersonAlpha.schema: line 148 objectclass: AttributeType not found: "c" slaptest: bad configuration directory!
I have tried look for example of how to setup Thunderbird address book but with no look. I do hope someone can help.
Thanks Bob H
--On Friday, May 28, 2021 7:45 PM +0000 bob@gunas.co.uk wrote:
I have tried look for example of how to setup Thunderbird address book but with no look. I do hope someone can help.
You need to include core.schema before the mozilla schema.
I would also note that ldap.conf is generally for the ldap client, slapd.conf is for the slapd server. Obviously slaptest won't care.
--Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
I think the core schema is in use as it is in the /etc/ldap/slapd.d /cn=config cn=config.ldif
/etc/ldap/slapd.d/cn=config cn=module{0}.ldif cn=schema.ldif olcDatabase={-1}frontend.ldif olcDatabase={0}config.ldif olcDatabase={1}mdb.ldif
/etc/ldap/slapd.d/cn=config/cn=schema cn={0}core.ldif cn={1}cosine.ldif cn={2}nis.ldif cn={3}inetorgperson.ldif
Thanks Bob H
--On Saturday, May 29, 2021 12:23 AM +0000 bob@gunas.co.uk wrote:
I think the core schema is in use as it is in the
It is not. You're telling slaptest to use the ldap.conf file you created, which in turn ignores everything in /etc/ldap/
--Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
Thanks Quanah I have how sorted it out. I just proceeded as the following:
vim /tmp/schema_config.conf Below is the list of schemas I put in the file
include /etc/ldap/schema/core.schema include /etc/ldap/schema/cosine.schema include /etc/ldap/schema/nis.schema include /etc/ldap/schema/inetorgperson.schema include /etc/ldap/schema/mozillaAbPersonAlpha.schema
mkdir /tmp/toinclud slaptest -f /schema_config.conf -F /tmp/toinclud
I edit the generated file vim / /tmp/toinclud/cn=config/cn=schema/cn={4}mozillaabpersonalpha.ldif I changed the three head lines to this: dn: cn=mozillaabpersonalpha,cn=schema,cn=config objectClass: olcSchemaConfig cn: mozillaabpersonalpha
Deleted these lines from the bottom of the file structuralObjectClass: entryUUID: creatorsName: createTimestamp: entryCSN: modifiersName: modifyTimestamp:
Inserted the new schema to the ldap tree with. ldapadd -Y EXTERNAL -H ldapi:/// -f //tmp/toinclud/cn=config/cn=schema/cn={4}mozillaabpersonalpha.ldif
This maybe helpful to people having the same problem.
Thanks Bob H
openldap-technical@openldap.org