Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: new zimbra ldap attribute

  1. #1
    van_rusu is offline Junior Member
    Join Date
    May 2009
    Posts
    9
    Rep Power
    6

    Default new zimbra ldap attribute

    Hi guys!
    I added new own attribute "zimbraMailOut" to "zimraAccount" class.
    I can set value for this attribute, but cant get a filtering in search.

    for example:

    ldapsearch -h ps-zimbra -x -b 'dc=domain,dc=local' '(zimbraMailOut=*)'

    # extended LDIF
    #
    # LDAPv3
    # base <dc=domain,dc=local> with scope subtree
    # filter: (zimbraMailOut=*)
    # requesting: ALL
    #

    # search result
    search: 2
    result: 0 Success

    --------------------------

    But I really have an accounts with "zimbraMailOut" attr.

    # zmprov ga user@domain.local zimbraMailOut
    # name user@domain.local
    # zimbraMailOut: disabled


    Is this possibly for zimbra to add own attrs for using with zimbra ldap requests ?

    Thank you

    Last edited by van_rusu; 06-04-2009 at 05:51 AM.

  2. #2
    van_rusu is offline Junior Member
    Join Date
    May 2009
    Posts
    9
    Rep Power
    6

    Default

    ок.
    Wich way is correct for adding new attributes to zimbra LDAP schema classes? I need some attributes for using it in filters of authentication requests.

    Thx


  3. #3
    dalmate is offline Elite Member
    Join Date
    Jan 2009
    Posts
    368
    Rep Power
    6

    Default

    Ok, I'm too
    So I found a way:
    -first, U create new request, such as: getMyAttrInLdapRequest
    -next, U create new service( U can use ZimbraExtension, or some service class of zimbra) to process your request
    - your service will find that attribute in ldap database and return to you through soap response
    I've done by using this way, goodluck

  4. #4
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,566
    Rep Power
    57

    Default

    Just a word of caution, non-standard changes are not guaranteed to be preserved during an upgrade of Zimbra and you may have to redo them.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    van_rusu is offline Junior Member
    Join Date
    May 2009
    Posts
    9
    Rep Power
    6

    Default

    2 dalmate
    Thank you very mutch for your help bro! I'll try to do it soon as possibly.


  6. #6
    quanah is offline Zimbra Employee
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,276
    Rep Power
    10

    Default

    Changing the zimbra schema is not allowed, and is guaranteed to break migration from 5.0.x to 6.0.x. The proper course of action if you want to extend the schema is to get your own OID if your organization doesn't already have one, and create your own auxiliary objectClass with whatever attributes you need, and add that onto the objects you want to modify. That is the correct LDAP way to do it, and that's what Zimbra supports.
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  7. #7
    riju123 is offline Active Member
    Join Date
    May 2009
    Posts
    48
    Rep Power
    6

    Default

    Hi All ,
    I am new to Zimbra ..
    I would really like to know how to create/add a new Attribute in the schema and make it work So that i can access the Value from Command or from GUI .

    Thanks in Advance
    riju

  8. #8
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,566
    Rep Power
    57

    Default

    Quote Originally Posted by riju123 View Post
    I am new to Zimbra ..
    I would really like to know how to create/add a new Attribute in the schema and make it work So that i can access the Value from Command or from GUI.
    You should not under any circumstances make changes to the Zimbra schema, you may break your Zimbra installation, lose data or cause your computer to blow-up. Search the forums for details of what you should do if you want to add a new attribute.

    [EDIT]Actually, if you look at post #6 in this thread you'll find details from an expert on what you should do.
    Last edited by phoenix; 08-28-2009 at 09:07 AM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    riju123 is offline Active Member
    Join Date
    May 2009
    Posts
    48
    Rep Power
    6

    Default

    Well ,
    First off Thanks phoenix for ur Reply .il try to go by #6 post by quanah .
    And am aware that issues might rise if i change the zimbra schema (which i read in wiki ) . That is the reason i wanted to know the Exact Way to do the same so that i dont break Zimbra into pieces .
    And another question - What is meant by "cause your computer to blow-up" . How might the change in schema might Blow my computer . .. Thats Scary .

  10. #10
    dalmate is offline Elite Member
    Join Date
    Jan 2009
    Posts
    368
    Rep Power
    6

    Default

    No, I don't think it "cause your computer to blow-up" ) But if you change zimbra schema and when you upgrade zimbra maybe your data is lost( except you have a plant to backup and restore after upgrading)

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Moving Zimbra to a new server
    By krolen in forum Administrators
    Replies: 109
    Last Post: 02-05-2009, 11:38 AM
  2. Cleanup after many upgrades
    By tobru in forum Installation
    Replies: 1
    Last Post: 12-23-2007, 09:21 AM
  3. [SOLVED] Error Installing Zimbra on RHEL 5
    By harris7139 in forum Installation
    Replies: 10
    Last Post: 09-25-2007, 11:39 AM
  4. Postfix problem
    By jimbo in forum Administrators
    Replies: 46
    Last Post: 07-23-2007, 05:24 AM
  5. Replies: 16
    Last Post: 09-07-2006, 06:39 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
  •