[pmwiki-users] any ldap users?

Russ Fink russfink at hotmail.com
Sat Oct 22 09:18:20 CDT 2005


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.

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');

I verified via the command line at my school account that the following 
produces all my information:
    ldapsearch -b "dc=myschool,dc=edu" -h ldap.myschool.edu uid=myself

I then created a wiki page, went to the attr screen and entered the 
following in the "read password" box:
   id:myself

Now, when I try to read the page, I get two boxes, one for username and one 
for password.  When I enter "myself" and "mypassword" (who'd have guessed), 
it keeps presenting the box.  Finally, I enter the default site password and 
no username and it lets me edit the page, indicating that passwords are 
being processed at some level and that authuser.php is alive and well.

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?

Thanks,
Russ Fink






More information about the pmwiki-users mailing list