Cannot configure SSL for plugin
Hi
I'm trying to use SSL in configuration file :
require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" ); $wgAuth = new LdapAuthenticationPlugin(); $wgLDAPUseLocal = "true"; $wgLDAPDebug = 99; $wgLDAPDomainNames = array( "example"); $wgLDAPDisableAutoCreate = array("example"=>"true"); $wgLDAPUseSSL = array( "example"=>"true" ); $wgLDAPEncryptionType = array( "example" => "ssl"); $wgLDAPServerNames = array("example" => "127.0.0.1"); $wgLDAPPort = array("example" => "636"); $wgLDAPBaseDNs = array("example" => "dc=example,dc=com" ); ....
But still I get in Apache logs
[Sun Oct 09 22:32:31 2011] [error] [client 127.0.0.1] PHP Warning: ldap_start_tls(): Unable to start TLS: Can't contact LDAP server in /usr/share/mediawiki/extensions/LdapAuthentication/LdapAuthentication.php on line 283
Why this reference to TLS as I want to use SSL ?
Thanks for advance
If you are going to use SSL, you can't use an IP address. Also, if you are going to use 127.0.0.1, what's the point of using SSL anyway? An attacker that has the ability to sniff that traffic also has the ability to decrypt the traffic using the private key anyway.