Ticket #1485201 (closed Patches: fixed)
Automatically add mail_domain to ldap contacts (Patch Attached)
| Reported by: | hayalci | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.3-stable |
| Component: | LDAP connection | Version: | svn-trunk |
| Severity: | minor | Keywords: | |
| Cc: | ben@… |
Description
Hi,
I made a patch to automatically add "mail_domain" from the config if the ldap search for "mail" field does not return a string with "@".
This will be useful in situations where ldap server does not hold complete e-mail adresses but the e-mail can be generated from other fields. It has no effect if email field indeed contains e-mail address.
In my setup main.inc.php includes this;
$rcmail_config['ldap_public']['hayalci'] = array(
....
'email_field' => 'uid', // this field represents the contact's e-mail
If we include the patch to trunk, the help text may be;
// this field represents the contact's e-mail. mail_domain will be appended if no '@' character appears in the field content.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
