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

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 05-22-2009, 06:56 AM
Junior Member
 
Posts: 9
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..
Reply With Quote
  #2 (permalink)  
Old 06-23-2009, 02:03 AM
Junior Member
 
Posts: 9
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

Reply With Quote
  #3 (permalink)  
Old 07-16-2009, 03:07 AM
Elite Member
 
Posts: 338
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
Reply With Quote
  #4 (permalink)  
Old 07-16-2009, 03:16 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
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
Reply With Quote
  #5 (permalink)  
Old 08-17-2009, 03:58 AM
Junior Member
 
Posts: 9
Default

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

Reply With Quote
  #6 (permalink)  
Old 08-17-2009, 03:10 PM
Zimbra Employee
 
Posts: 580
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
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Reply With Quote
  #7 (permalink)  
Old 08-28-2009, 08:56 AM
Active Member
 
Posts: 48
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
Reply With Quote
  #8 (permalink)  
Old 08-28-2009, 09:05 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
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.
__________________
Regards


Bill

Last edited by phoenix; 08-28-2009 at 09:07 AM..
Reply With Quote
  #9 (permalink)  
Old 08-30-2009, 10:02 PM
Active Member
 
Posts: 48
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 .
Reply With Quote
  #10 (permalink)  
Old 09-02-2009, 07:05 PM
Elite Member
 
Posts: 338
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)
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.