Results 1 to 3 of 3

Thread: Error adding additional schema to OpenLDAP

  1. #1
    Join Date
    Mar 2009
    Beans
    2
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Error adding additional schema to OpenLDAP

    Hi everybody,

    I'm trying to migrate an OpenLDAP / Courier-MTA/IMAP setup from an old server to the latest Ubuntu server.
    I'm following the documentation that can be found here: https://help.ubuntu.com/8.10/serverg...ap-server.html

    My schema_convert.conf looks like this:

    Code:
    include /etc/ldap/schema/core.schema
    include /etc/ldap/schema/collective.schema
    include /etc/ldap/schema/corba.schema
    include /etc/ldap/schema/cosine.schema
    include /etc/ldap/schema/duaconf.schema
    include /etc/ldap/schema/dyngroup.schema
    include /etc/ldap/schema/inetorgperson.schema
    include /etc/ldap/schema/java.schema
    include /etc/ldap/schema/misc.schema
    include /etc/ldap/schema/nis.schema
    include /etc/ldap/schema/openldap.schema
    include /etc/ldap/schema/ppolicy.schema
    include /etc/ldap/schema/pureftpd.schema
    include /etc/ldap/schema/authldap.schema
    I'm running slaptest -f schema_convert.conf -F /tmp/ldif_output
    and I get the following error:

    Code:
    /etc/ldap/schema/authldap.schema: line 81 attributetype: Inconsistent duplicate attributeType: "mailhost"
    slaptest: bad configuration directory!
    Inspecting the file, the entry that causes the error is the following:

    Code:
    attributetype ( 1.3.6.1.4.1.10018.1.1.14 NAME 'mailhost'
            DESC 'Host to which incoming POP/IMAP connections should be proxied'
            EQUALITY caseIgnoreIA5Match
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
    ...and the one it conflicts with is apparently this one:

    Code:
    attributetype ( 1.3.6.1.4.1.10018.1.1.4 NAME 'maildrop'
            DESC 'RFC822 Mailbox - mail alias'
            EQUALITY caseIgnoreIA5Match
            SUBSTR caseIgnoreIA5SubstringsMatch
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )

    I'm well aware that authldap.schema wasn't updated in over 4 years and much has changed in OpenLDAP ever since. My question would be if anyone could think of a quick workaround/hack to get my LDAP server running?

    TIA

    Ess

  2. #2
    Join Date
    Mar 2009
    Beans
    2
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Error adding additional schema to OpenLDAP

    I was wrong. The duplicate entry is not in the authldap.schema but in the misc.schema. So basically, it seems you can't have both loaded in the same LDAP server.

    To delete misc.schema one could probably use ldapmodify, but that doesn't work for me - it hangs doing nothing after I type the password.

    The following worked for me though:

    - delete /etc/ldap/slapd.d/cn\=config/cn={x}misc.ldif (replace 'x' with whatever number you have in there)
    - restart slapd
    - add authldap.schema to the server. Done.

    Posting here in the hope it will help someone.

  3. #3
    Join Date
    Apr 2012
    Beans
    8

    Re: Error adding additional schema to OpenLDAP

    hi i everyone
    i want to add new schema for user informatiom like:
    firstName:
    lastName:
    birthday:
    Reg_year:
    but i can not adding
    can you help plesse?

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •