I am working in an AD domain with a single DC running Windows Server 2012 R2. On the domain's network (though not formally domain-joined) is a LAMP web server running Ubuntu Server 14.04.3 LTS. All machines are able to reach one another by both IP address and DNS record, and the LAMP stack is (as far as I can tell) appropriately configured; HTTP requests are served as expected.
The aim is to set up an instance of MediaWiki on the LAMP server. Moreover, MediaWiki should - using Ryan Lane's excellent extension LdapAuthenticate - contact the AD DC to authenticate user logins.
I have tried to follow setup instructions as closely to the book as possible. LAMP installation is mostly taken care of by the Ubuntu Server installer, and I additionally install via apt-get
the packages php5-intl php5-gd texlive php5-xcache imagemagick mediawiki mediawiki-math
and their dependencies.
I next uncomment the #Alias...
line in /etc/mediawiki/apache.conf
, run the commands a2enconf mediawiki
and php5enmod mycrypt
, and lastly install the LdapAuthenticate MediaWiki extension according to tutorials at the author's website.
Appended to my /etc/mediawiki/LocalSettings.php
are:
ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);
require_once("$IP/extensions/LdapAuthentication/LdapAuthentication.php");
$wgLDAPDebug = 3;
$wgDebugLogGroups["ldap"] = "/tmp/debug.log";
$wgAuth = new LdapAuthenticationsPlugin();
$wgLDAPDomainNames = array("MYDOMAIN");
$wgLDAPServerNames = array("MYDOMAIN" => "addc.local.domain.com");
$wgLDAPSearchStrings = array("MYDOMAIN" => "USER-NAME@local.domain.com");
$wgLDAPEncryptionType = array("MYDOMAIN" => "tls");
I next add the AD DC's self-signed CA certificate to /etc/ssl/certs
on the LAMP server, run c_rehash
, and restart everything.
At this point I am able to get into MediaWiki and navigate to the login form no problem. The login form shows MYDOMAIN
, and PHP reports no errors - the LdapAuthentication plugin looks good to go.
When I try to login using an AD credential set, however, MediaWiki reports a wrong password. A PHP error on the web page reports that PHP was unable to start TLS (Warning: ldap_start_tls(): Unable to start TLS: Connect error in...
), and this same message is reconfirmed by the LdapAuthentication plugin's debug log which I set earlier to /tmp/debug.log
.
Looking now at the AD DC, I note the following event in the system log:
Error from Schannel, Event ID 36874
An TLS 1.2 connection request was received from a remote client application, but none of the cipher suites supported by the client application are supported by the server. The SSL connection request has failed.
This error coincides with repeated attempts to authenticate user logins on MediaWiki with AD via LDAP.
I don't know enough about managing cipher suites to approach resolving this issue. Moreover, days upon days of Google searching hasn't yielded me any productive results. Could someone point me in the right direction?