This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
Closed
Won't fix
FS#458 LDAP and ACLs - mixed case groups
ACL & Authentication
2005-07-13
Using auth/ldap.php and Sun DS 5.2 (not OpenLdap!)
The Admin utility converts groups to lowercase in the acl_auth.php file, Sun DS returns mixedcase groups when querying LDAP directory.
Thus LDAP groups wouldn't work properly (for me).
So I either have to use lowercase groups in the directory (unfortunately not an option) or manually edit the acl_auth.php file to restore uppercase groups.
As a quick fix I put the following code before the final closing brace in function auth_getUserData (in ldap.php)
$cntg = count($info['grps']); // for debug info
$grpstrg = 'Groups = '; // for debug info
for($i=0; $i<$cntg; $i++){
$info['grps'][$i] = strtolower($info['grps'][$i]); // convert groups to lc
$grpstrg .= ' '.$info['grps'][$i].','; // create a string listing of groups
}
if($cnf['debug']){
$nogr = count($info['grps']);
msg("LDAP no of groups found = $nogr",0); // extra debug info print no of groups
msg('LDAP '.$grpstrg.' ',0); // extra debug info print groups
}
Basically I just convert returned groups to LC and print some extra LDAP debug info (grouplists are usefull when debugging LDAP).
The right way would be to fix the admin tool rather than change the case of returned groups (I did say "quick fix").
Apologies if this looks a messy - I've only started learning PHP a couple of weeks ago :-)
The LDAP support in this version is much better - Thanks!
Andy E
2006-10-03gb
If you still read this after reporting this problem so long ago, could you please test a recent version of Dokuwiki such as the RC version or even the -current darcs revision of Dokuwiki (or a snapshot)?