Ticket #1484402 (closed Patches: fixed)
First name, last name (surname) in LDAP contacts
| Reported by: | rtomanek | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.1-rc2 |
| Component: | PHP backend | Version: | 0.1-rc1 |
| Severity: | normal | Keywords: | ldap |
| Cc: |
Description
Currently (RC1) contacts fetched from LDAP do not include first name nor last name (only common name and e-mail address). The following patch adds these two fields:
--- main.inc.php.dist.orig 2007-05-18 15:11:22.000000000 +0200
+++ main.inc.php.dist 2007-05-26 22:33:39.000000000 +0200
@@ -202,6 +202,8 @@ $rcmail_config['mail_header_delimiter']
* 'search_fields' => array('mail', 'cn'), // fields to search in
* 'name_field' => 'cn', // this field represents the contact's name
* 'email_field' => 'mail', // this field represents the contact's e-mail
+ * 'firstname_field' => 'givenName', // this field represents the contact's first name
+ * 'surname_field' => 'sn', // this field represents the contact's last name
* 'scope' => 'sub', // search mode: sub|base|list
* 'filter' => '', // will be &'d with search field ex: (status=act)
* 'fuzzy_search' => true); // server allows wildcard search
It should work with most common LDAP addressbook schemas.
Change History
Note: See
TracTickets for help on using
tickets.
