In the past I found some great help on this forum, so here goes. Bare with me because it's a long story. I'll try to be as complete as possible.
I've installed and configured OpenLdap on a virtual machine with ip 192.168.39.134. I've added 2 users via LAM. In the ou WikiUsers and the domain is wiki.local.
I've then created another host with ip 192.168.39.133 with mediawiki installed on it. Then I added the extension LDAPAuthenthication.
In the LdapAuthentication file I added this code (only the last paragraph is mine, I added the others to show it's location in the script):
Quote:
$path = array( $IP, "$IP/includes", "$IP/languages" );
set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );
require_once( "$IP/includes/DefaultSettings.php" );
require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" );
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array( "wiki.local" );
$wgLDAPServerNames = array( "wiki.local"=>"192.168.39.134" );
$wgLDAPSearchStrings = array( "wiki.local"=>"uid=USER-NAME,ou=WikiUsers,dc=wiki,dc=local" );
$wgLDAPSearchAttributes = array( "wiki.local"=>"uid" );
$wgLDAPUseSSL = array( "wiki.local"=>"ssl" );
$wgMinimalPasswordLength = 1;
|
I know I'm close because I can't register any new users or accounts on the mediawiki site. Although I could before I added the LDAP service.
Any suggestions?
This is indeed all just to test and get to know how LDAP works. That's why it's all virtual in VMWare.
I did not really configure anything on the LDAP, i just installed it and chose a domain (wiki.local).
Any tips or suggestions are highly appreciated.