Re: ldap , addressbook, custom field, HELP!

Tomas Kuliavas <[email protected]>
Newsgroups gmane.mail.squirrelmail.devel
Message-ID <[email protected]>

razor-5 wrote:
> 
> Hello list
> 
> i have an 1.5.1 version with virtual users (ldap).
> so i am using ldap addressbook.
> but when i upgraded from prev version i discovered that my addressbook  
> broken :(
> 
> so now i have only  "Nickname 	Name 	E-mail 	Info ", but i need also "ou".
> 
> i spend 2 days in  util_addressbook.php, addressbook_list.tpl,  
> addressbook.php and so on.
> but still cant to add "ou"-field.
> can smbd help me with  this "extra_field"/"add_extra_field". it seems that  
> it can help me.
> 

You look at wrong part of code. You want to change address book ldap backend
and instead of looking at functions/abook_ldap_server.php, you look at
address book display code. add_extra_field is boolean option used by address
book plugins to enable additional column in address book listing.

See search() method in abook_ldap_server class in
functions/abook_ldap_server.php. Older SquirrelMail versions add 'ou' or 'o'
attribute values in $label. 1.5.x uses 'description' attribute.

-- 
Tomas
-- 
View this message in context: http://old.nabble.com/ldap-%2C-addressbook%2C-custom-field%2C-HELP%21-tp26919907p26921755.html
Sent from the squirrelmail-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.