Re: ldap , addressbook, custom field, HELP!

"razor razor" <[email protected]>
Newsgroups gmane.mail.squirrelmail.devel
Message-ID <op.u5nj4pehexrkg9@lg54>
THANKS A LOT!!!

so i changed :

  $attributes = array('dn', 'description', 'sn', 'givenName', 'cn', 'mail');
on
$attributes = array('dn', 'ou', 'sn', 'givenName', 'cn', 'mail');

and


             if(empty($row['ou'][0])) {
                 $label = '';
             } else {
                 $label = $this->charset_decode($row['ou'][0]);
             }

and 'description' became 'ou'


25.12.09 в 16:47 Tomas Kuliavas в своём письме писал(а):

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


-- 
Написано в почтовом клиенте браузера Opera: http://www.opera.com/mail/

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