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
Manilal K M <libregeek@...> writes:
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
<snip>
what may have gone wrong? please help regards Manilal
Manilal,
This is probably not the right list to post to about this. Please post this information on the discussion page at: http://meta.wikimedia.org/wiki/LDAP_Authentication
I'll help you out there.
V/r,
Ryan Lane
Ryan Lane wrote:
This is probably not the right list to post to about this. Please post this information on the discussion page at: http://meta.wikimedia.org/wiki/LDAP_Authentication
I'll help you out there.
Ryan,
Is there anything that prevent your patch from being an extension ? :)
Ashar Voultoiz <hashar@...> writes:
Ryan Lane wrote:
This is probably not the right list to post to about this. Please post this information on the discussion page at: http://meta.wikimedia.org/wiki/LDAP_Authentication
I'll help you out there.
Ryan,
Is there anything that prevent your patch from being an extension ? :)
Well, it isn't really a patch. You just drop it into /includes and set some variables in LocalSettings.php. I guess it's more of a plugin? If you are asking why it isn't included in the normal release, I believe Brion mentioned somewhere that it is third party and not ever likely to be maintained by any of the mediawiki developers (and I can understand that).
V/r,
Ryan Lane
wikitech-l@lists.wikimedia.org