Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions auth-ldap/authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,22 @@ class LDAPAuthentication {
'lookup' => '(&(objectClass=inetOrgPerson)({attr}={q}))',
),
),
// Zimbra LDAP is a bit different than standard ldap
'zimbra' => array(
'user' => array(
'filter' => '(objectClass=zimbraAccount)',
'first' => 'givenName',
'last' => 'sn',
'full' => array('displayName', 'cn'),
'email' => 'mail',
'phone' => 'telephoneNumber',
'mobile' => 'mobile',
'username' => 'uid',
'dn' => 'uid={username},{search_base}',
'search' => '(&(objectClass=zimbraAccount)(|(uid={q}*)(displayName={q}*)(cn={q}*)))',
'lookup' => '(&(objectClass=zimbraAccount)({attr}={q}))',
),
),
);

var $config;
Expand Down
1 change: 1 addition & 0 deletions auth-ldap/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ function($self, $val) use ($__) {
'auto' => '— '.$__('Automatically Detect').' —',
'msad' => 'Microsoft® Active Directory',
'2307' => 'Posix Account (rfc 2307)',
'zimbra' => 'Zimbra',
),
)),

Expand Down