Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add zimbra as ldap backend #282

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
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