I have some further information.
After properly setting up LDAP in PHP, I now get error messages in the
apache error log. Here's what I show:
[Tue Sep 22 10:21:54 2009] [error] [client 192.168.1.240] PHP Warning:
ldap_start_tls(): Unable to start TLS: Can't contact LDAP server in
/srv/www/htdocs/w/extensions/LDAPAuthentication/LdapAuthentica
tion.php on
line 213, referer:
https://192.168.1
.130/w/index.php5?title=Special:UserLogin&returnto=Main_Page
.240 is the workstation I'm on
.130 is the server MediWiki is running on
.5 is the LDAP server
Here are the settings I'm using in the LocalSettings.php file:
#LDAP Authentication
Require_once(
'extensions/LDAPAuthentication/LdapAuthentication.php' );
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array( "FOSAWiki" );
$wgLDAPServerNames = array( "FOSAWiki"=>"192.168.1.5" );
This needs to be the fully qualified domain name of the LDAP server, not the
IP address.
$wgLDAPSearchStrings = array(
"FOSAWiki"=>"cn=USER-NAME,ou=LEVEL2,ou=LEVEL1,o=ORGANIZATION" );
$wgLDAPUseSSL = array( "{Wiki Identity variable}"=>"ssl" );
This should be:
$wgLDAPUseSSL = array( "FOSAWiki"=>"ssl" );
Notice that even after setting this, you may still have SSL issues. If you
have SSL issues, see:
http://ryandlane.com/wprdl/2009/06/16/using-the-ldap-authentication-plugin-f
or-mediawiki-the-basics-part-2/#configuring-the-ssl-trust
(
http://bit.ly/2JMbDy)
V/r,
Ryan Lane