[pmwiki-users] any ldap users?

Patrick R. Michaud pmichaud at pobox.com
Sat Oct 22 14:03:10 CDT 2005


On Sat, Oct 22, 2005 at 10:18:20AM -0400, Russ Fink wrote:
> Hi, sorry for the repost, but I didn't see any reply (maybe did not go 
> through).  Does anyone use the ldap authentication mechanism for PmWiki?  
> If you do, would you mind very much reviewing my procedure as I'm sure I'm 
> just doing something wrong.  I'm running PmWiki-2.0.5.

Sorry I missed the earlier message... 

> I have an account "myself at myschool.edu".  They have an ldap server, 
> ldap.myschool.edu, though I don't know what version.
> 
> I edited my local config.php as such:
>    # LDAP authentication
>    $AuthUser['ldap'] = 'ldap://ldap.myschool.edu/dc=myschool,dc=edu?uid';
>    include_once('scripts/authuser.php');

You might try 

     $AuthUser['ldap'] = 'ldap://ldap.myschool.edu/dc=myschool,dc=edu?uid?sub';

The default is 'one', and you probably need to search somewhere beneath
the "dc=myschool,dc=edu" entry.

> What am I doing wrong?  If it's not obvious, is there a way to put pmwiki 
> in a debug mode where I can easily see the result of the ldap query - e.g., 
> not finding the right command, not finding the right port, or maybe just a 
> simple log file of the output?

I probably need to provide some debugging hints, yes.  But in the meantime
see if adding '?sub' solves the problem for you.

Pm




More information about the pmwiki-users mailing list