Thread:Extension talk:LDAP Authentication/Blank Page on wiki on trying LDAPAuthentication Plugin/reply

Ok.. Now I have got passed the blank page..

But now it does not authenticate

debug.log

2012-05-14 08:51:17 wiki-wiki: 2.0a Entering validDomain 2012-05-14 08:51:17 wiki-wiki: 2.0a User is using a valid domain (testLDAPdomain). 2012-05-14 08:51:17 wiki-wiki: 2.0a Setting domain as: testLDAPdomain 2012-05-14 08:51:17 wiki-wiki: 2.0a Entering getCanonicalName 2012-05-14 08:51:17 wiki-wiki: 2.0a Username is: testuser 2012-05-14 08:51:17 wiki-wiki: 2.0a Munged username: testuser 2012-05-14 08:51:17 wiki-wiki: 2.0a Entering userExists 2012-05-14 08:51:17 wiki-wiki: 2.0a 2012-05-14 08:51:17 wiki-wiki: 2.0a Entering authenticate for username testuser 2012-05-14 08:51:17 wiki-wiki: 2.0a 2012-05-14 08:51:17 wiki-wiki: 2.0a Entering Connect 2012-05-14 08:51:17 wiki-wiki: 2.0a It looks like you are missing LDAP support; please ensure you have either compiled LDAP support in, or have enabled the module. If the authentication is working for you, the plugin isn't properly detecting the LDAP module, and you can safely ignore this message. 2012-05-14 08:51:17 wiki-wiki: 2.0a Entering allowPasswordChange 2012-05-14 08:51:17 wiki-wiki: 2.0a Entering modifyUITemplate

BUT

I have installed php-ldap on RHEL5

cat /etc/php.d/ldap.ini ; Enable ldap extension module extension=ldap.so

php -v PHP 5.1.6 (cli) (built: May 3 2012 17:38:00)

yum install php-ldap Loaded plugins: rhnplugin, security Setting up Install Process Package php-ldap-5.1.6-34.el5_8.x86_64 already installed and latest version Nothing to do

Here is the LocalSettings.php

require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" ); $wgAuth = new LdapAuthenticationPlugin; $wgLDAPDomainNames = array( "testLDAPdomain"  ); $wgLDAPServerNames = array( "testLDAPdomain"=>"DIRECTORY.com"  ); $wgLDAPEncryptionType = array( "testLDAPdomain"=>"clear"  ); $wgLDAPSearchAttributes = array( "testLDAPdomain"=>"uid"  ); $wgLDAPBaseDNs = array( "testLDAPdomain"=>"ou=xxx, o=xxxx, c=com"  ); $wgLDAPDebug = 99; $wgDebugLogGroups["ldap"] = "/tmp/debug.log" ;
 * 1) Ldap Authentication Plugin

$wgLocaltimezone = 'EST';

What am I doing wrong here??

Again, to reiterate..

I want to do the following

1) Wiki users can ONLY login via authenticating against LDAP server. No one else can register or use wiki. ALL users are in many subtrees under "ou=xxx, o=xxxx, c=com"

2) Probably control access to a group on LDAP (if it can be done).. so only those users IN THAT GROUP, can edit / view wiki

Please help.. new to all of this..