Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-01-2010, 04:25 PM
Junior Member
 
Posts: 7
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.
Reply With Quote
  #2 (permalink)  
Old 11-02-2010, 01:18 AM
Trained Alumni
 
Posts: 336
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.
__________________
YetOpen S.r.l. ~ Your open source partner
Lecco (LC) - ITALY
http://www.yetopen.it

Last edited by maxxer; 11-02-2010 at 01:19 AM.. Reason: mising link
Reply With Quote
  #3 (permalink)  
Old 11-02-2010, 05:37 AM
Junior Member
 
Posts: 7
Default

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

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

Quote:
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:

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

Quote:
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 06:06 AM..
Reply With Quote
  #4 (permalink)  
Old 11-02-2010, 06:46 AM
Special Member
 
Posts: 113
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.