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 06-14-2011, 04:35 AM
Special Member
 
Posts: 117
Default Add Custom Attribute in LDAP

Hello,

I would like to be able to add some more attributes to Zimbra's user database. For example:
I want to display message when a user first time login (it would be a flag) and also want to store a PIN assigned to him.

Please let me know if is there any way to do it.

Thank You!
Reply With Quote
  #2 (permalink)  
Old 06-15-2011, 06:03 AM
Special Member
 
Posts: 117
Default

anybody. Please.
Reply With Quote
  #3 (permalink)  
Old 06-22-2011, 01:15 AM
Special Member
 
Posts: 117
Default

I did following steps to add new attribute. Please tell me what is wrong in it. Coz zimbra gives me an error while creating new user. That the type does not exits.

1. I went to /opt/zimbra/data/ldap/config/cn=config/cn=schema
2. And I've created a new file named "cn={11}custom.ldif" and added following content to it.
Code:
dn: cn={11}custom
objectClass: olcSchemaConfig
cn: {11}custom

olcObjectIdentifier: zimbraAccountGId ZimbraAttrType:5001

olcAttributeTypes: ( zimbraAccountGId
  NAME ( 'zimbraAccountGId' )
  DESC 'G ID type'
  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{32}
  EQUALITY caseIgnoreMatch
  SUBSTR caseIgnoreSubstringsMatch
  SINGLE-VALUE)

olcObjectClasses: ( zimbraCustomClass 
  NAME 'zimbraCustomClass'
  DESC 'Custom class'
  SUP  zimbraMailRecipient AUXILIARY
  MAY (
    zimbraAccountGId $
  )
  )
3. And restarted ldap.

But I am getting an error that the zimbraAccountGId does not exists while adding new user.

Please help me if you can.

Thanks.
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.