hello all,
I am beginner to this list, since i have just started hacking
mediawiki. I am trying to apply the LDAP authentication plugin to
mediawiki-1.5.2 in a FC-4. I'm using openldap-2.2.23-5.
I have read the documentation at :
http://meta.wikimedia.org/wiki/LDAP_Authentication and downloaded the
plugin from :http://bugzilla.wikipedia.org/attachment.cgi?id=1042&action=view
I have dropped the above file in /includes and changed
Localsettings.php accordingly. Luckily everything seems to be working
fine.
But everything crashed when I tried to Group based authentication in
mediawiki. I have added group entry to the ldap server, restarted it
and then inlcuded the configuration parameters for group based
authentication. Now my Localsettings.php looks like this:
<code>
require_once( 'LdapAuthentication.php' );
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array( "libregeek" );
$wgLDAPServerNames = array( "libregeek"=>"localhost" );
$wgLDAPSearchStrings = array(
"libregeek"=>"uid=USER-NAME,ou=People,dc=libregeek,dc=net" );
$wgLDAPUseSSL = false;
$wgLDAPUseLocal = false;
$wgLDAPAddLDAPUsers = false;
$wgLDAPUpdateLDAP = false;
$wgLDAPMailPassword = false;
$wgLDAPRetrievePrefs = false;
$wgMinimalPasswordLength = 1;
$wgLDAPGroupDN = "cn=itpeople,ou=Groups,dc=libregeek,dc=net";
$wgLDAPProxyAgent = "cn=root,dc=libregeek,dc=net";
$wgLDAPProxyAgentPassword = "secret"; //this should work with hashes btw
$wgLDAPBaseDNs = array("libregeek"=>"dc=libregeek,dc=net");
$wgLDAPSearchAttributes =
array("libregeek"=>"(uid=USER-NAME)(wikiAccess=TRUE)");
</code>
With this configuration I can't login . It simply says "The password
you entered is incorrect (or missing). Please try again.".
is there any missing configuration items ??
I just tried to print the global variables corresponding to Proxies in
LdapAuthentication.php and it gives nothing.
One more thing I didn't got the correct idea of Proxy. is it like the
"Manager" account who has read permission to all the directory
entries.
what may have gone wrong?
please help
regards
Manilal