Results 1 to 4 of 4

Thread: Extending LDAP database

  1. #1
    Join Date
    Sep 2010
    Location
    Poland, Wołomin
    Posts
    7
    Rep Power
    5

    Default Extending LDAP database

    Hello,

    I need to extend LDAP database which is in Zimbra as default. I'm thinking about adding some new fields to the existing database. I'm importing database from another program and there are some more fields than in Zimbra.

    I know that LDAP has a directory sturcture and in 6.0+ versions it is in /opt/zimbra/data but I still don't know which file I can edit and how...

    I'd be grateful if anybody would like to help me.

  2. #2
    Join Date
    Feb 2009
    Location
    Lecco, Italy
    Posts
    554
    Rep Power
    7

    Default

    maybe you can have a look at the document which describes how to integrate Samba with Zimbra:
    UNIX and Windows Accounts in Zimbra LDAP and Zimbra Admin UI 6.0 - Zimbra :: Wiki
    which explains how to alter the LDAP db schema.
    Last edited by maxxer; 11-02-2010 at 02:19 AM. Reason: mising link
    YetOpen S.r.l. ~ Your open source partner
    Lecco (LC) - ITALY
    http://www.yetopen.it

  3. #3
    Join Date
    Sep 2010
    Location
    Poland, Wołomin
    Posts
    7
    Rep Power
    5

    Default

    Thanks for your response, but I still don't know how should I do this.

    I added one file: cn={11}procter.ldif

    dn: cn={11}
    objectClass: olcSchemaConfig
    cn: {11}procter
    # Depends upon core.schema and cosine.schema

    attributetype ( 1.3.6.1.1.1.1.0 NAME 'id_pacj'
    DESC 'An integer uniquely identifying a user in an administrative domain'
    EQUALITY integerMatch
    SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )

    # Object Class Definitions

    objectclass ( 1.3.6.1.1.1.2.0 NAME 'procterAccount'
    DESC 'Abstraction of an account with procter attributes'
    SUP top AUXILIARY
    MAY ( id_pacj )
    )
    to the following directory:
    /opt/zimbra/data/ldap/config/cn=config/cn=schema

    but trying to modify account in this way:

    zmprov ma mateusz@debian.workgroup +objectClass procterAccount id_pacj 3141
    I'm getting the following error:

    ERROR: account.INVALID_ATTR_VALUE (invalid attr value: [LDAP: error code 21 - objectClass: value #0 invalid per syntax])

    I really need help to do this. I'm fighting with this for a long hours and I'm still at the same point.
    Last edited by frost983; 11-02-2010 at 07:06 AM.

  4. #4
    Join Date
    May 2009
    Location
    Bremen, Germany
    Posts
    122
    Rep Power
    6

    Default

    Mistakes in your cn={11}procter.ldif
    Code:
    dn: cn={11}procter
    objectClass: olcSchemaConfig
    cn: {11}procter
    # Depends upon core.schema and cosine.schema
    
    olcAttributeTypes: ( 1.3.6.1.1.1.1.0 NAME 'id_pacj'
      DESC 'An integer uniquely identifying a user in an administrative domain'
      EQUALITY integerMatch
      SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
    
    # Object Class Definitions
    
    olcObjectClasses: ( 1.3.6.1.1.1.2.0 NAME 'procterAccount'
      DESC 'Abstraction of an account with procter attributes'
      SUP top AUXILIARY
      MAY ( id_pacj ))
    And you should use or own OIDs.

    Right permissions on the file? -> chmod 600 cn\=\{11\}procter.ldif && chown zimbra.zimbra cn\=\{11\}procter.ldif

    Restart of ldap service? ldap stop && ldap start

Similar Threads

  1. Replies: 23
    Last Post: 01-24-2013, 03:44 PM
  2. LDAP Cannot bind on migration to new server
    By neekster in forum Migration
    Replies: 23
    Last Post: 03-09-2009, 03:08 AM
  3. Extending external LDAP -> GAL setup in UI
    By ab5602 in forum Developers
    Replies: 1
    Last Post: 12-17-2007, 12:30 PM
  4. change ldap database
    By Grejao in forum Administrators
    Replies: 1
    Last Post: 12-07-2007, 08:39 AM
  5. 3 testing: LDAP: 389 Failed when restore zimbra
    By victorLeong in forum Administrators
    Replies: 15
    Last Post: 05-24-2007, 07:45 AM

Posting Permissions

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