Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-05-2007, 05:39 PM
Loyal Member
 
Posts: 92
Thumbs up authenticating dokuwiki to zimbra's openldap!

I couldn't just google the answer for this, so I just want to share my config with people in case they are trying to get their dokuwiki to authenticate to zimbra's openldap. Also, I'm a dokuwiki bigot it's awesome, almost as awesome as zimbra.

I think, the key thing had to do with telling dokuwiki the right ldap schema (objectClass) to look at. At first I wasn't too sure about objectClass's, because I thought the posixAccount was something already in Zimbra, or I thought posixAccount was something that Zimbra's ldap schema was built "on top of" - but i'll have to take a closer look. Anyway looks like want I care about is zimbraAccount instead (this works for me).

All this stuff goes in your ./conf/dokuwiki.conf - what this does is just authenticate user/password from zimbra's openldap:

PHP Code:
$conf['useacl']      = 1;
$conf['openregister']= 0;
$conf['authtype']    = 'ldap';

$conf['auth']['ldap']['server']      = 'ldap://xxxxxx.xxxxxxxx.com';
$conf['auth']['ldap']['port']        = 389;
$conf['auth']['ldap']['version']     = 3;

# Optional debugging
$conf['auth']['ldap']['debug']      = true;

# ldap user info
$conf['auth']['ldap']['usertree']    = 'ou=people,dc=xxxxxxxxx,dc=com';
$conf['auth']['ldap']['userfilter']  = '(&(uid=%{user})(objectClass=zimbraAccount))'
I'm still working on the Group (OU) lookup:

PHP Code:
#$conf['auth']['ldap']['grouptree']   = 'ou=people,dc=blah,dc=com';
#$conf['auth']['ldap']['groupfilter'] = '(&(Member=%{ou})(objectClass=zimbraAccount))'; 
(I'm guessing the lookup is fine, but at the moment, I'm not sure how I'd match up openldap groups to dokuwiki groups. Or if that is something I want to worry abou. Maybe I should define my access control within Dokuwiki. I guess the downside to this is I'm creating "sprawl" for access control policies/lists. But I think I'll revisit this problem when it truly becomes a problem for my needs.)
Reply With Quote
  #2 (permalink)  
Old 10-05-2007, 06:57 PM
Former Zimbran
 
Posts: 5,606
Default

Does this article help?
LDAP Authentication - ZimbraWiki
Reply With Quote
  #3 (permalink)  
Old 03-01-2011, 07:43 AM
Starter Member
 
Posts: 1
Default

This configuration works for dukuwiki:

PHP Code:
$conf['useacl'] = 1
$conf['openregister'] = 0;
$conf['authtype'] = 'ldap';

$conf['auth']['ldap']['server'] = 'ldap://xxxxx.xx';       
$conf['auth']['ldap']['port'] = 389;
$conf['auth']['ldap']['version'] = 3;
$conf['auth']['ldap']['usertree'] = 'uid=%{user},ou=people,dc=xxxxxxxx,dc=com';
$conf['auth']['ldap']['debug'] = 1
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.