Opened 5 years ago
Closed 4 years ago
#1485184 closed Feature Requests (fixed)
Defualt LDAP query
| Reported by: | ryanroth | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.3-stable |
| Component: | LDAP connection | Version: | git-master |
| Severity: | normal | Keywords: | |
| Cc: |
Description
It would be nice if there was an option to preform a default LDAP query when clicking on the Address Book. Currently if you are set to LDAP it shows a blank list until you search for something, I would like there to be an option to query LDAP with a configurable string be default such as '.', or 'mydomain.com'. This would be helpful for novice users.
Change History (4)
comment:1 Changed 5 years ago by alec
- Milestone changed from later to 0.2-beta
comment:2 Changed 4 years ago by thomasb
- Milestone changed from 0.2-stable to later
comment:3 Changed 4 years ago by ldeviator
comment:4 Changed 4 years ago by alec
- Milestone changed from later to 0.3-stable
- Resolution set to fixed
- Status changed from new to closed
Fixed in [08ff050e]. If 'filter' is empty we're using (objectclass=*)
Note: See
TracTickets for help on using
tickets.

this works for me.. but you need a default "filter" defined in your LDAP setup.. here's an example
the whole thing...
$rcmail_config['ldap_public']['tempstop'] = array( 'name' => 'Temp-Stop', 'hosts' => array('localhost'), 'port' => 389, 'use_tls' => false, 'user_specific' => true, // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login. 'base_dn' => 'ou=people,dc=tempstop,dc=com', 'bind_dn' => 'uid=%u,ou=People,dc=tempstop,dc=com', 'writable' => false, // Indicates if we can write to the LDAP directory or not. '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 'surname_field' => 'sn', // this field represents the contact's last name 'firstname_field' => 'givenName', // this field represents the contact's first name 'sort' => 'cn', // The field to sort the listing by. 'scope' => 'sub', // search mode: sub|base|list 'filter' => 'gidNumber=500', // used for basic listing (if not empty) and will be &'d with search queries. example: status=act 'global_search' => true, // perform a global search for address auto-completion on compose 'fuzzy_search' => true); // server allows wildcard search