Hi,
Here's a small patch to support LDAP over IPC, "ldapi://". It's only defined in an expired Internet Draft [1], but works quite well with OpenLDAP.
--- LdapAuthentication.php~ +++ LdapAuthentication.php @@ -159,6 +159,10 @@ $this->printDebug( "Using SSL", SENSITIVE ); $serverpre = "ldaps://"; break; + case "ipc": + $this->printDebug( "Using IPC", SENSITIVE ); + $serverpre = "ldapi://"; + break; default: $this->printDebug( "Using TLS or not using encryption.", SENSITIVE ); $serverpre = "ldap://";
[1] http://opends.dev.java.net/public/standards/draft-chu-ldap-ldapi.txt
Thanks!
Matej
Matej,
Wow, that looks terrifyingly evil. But I guess if you are only using LDAP as a user store for your web server, it wouldn't be so bad. I'll add this into the next version.
Note that the next version may not be out for quite a while; another extension I've been working on has slightly higher priority right now.
V/r,
Ryan Lane
-----Original Message----- From: mediawiki-enterprise-bounces@lists.wikimedia.org [mailto:mediawiki-enterprise-bounces@lists.wikimedia.org] On Behalf Of Matej Vela Sent: Saturday, February 02, 2008 5:57 PM To: mediawiki-enterprise@lists.wikimedia.org Subject: [Mediawiki-enterprise] LdapAuthentication: LDAP over IPC
Hi,
Here's a small patch to support LDAP over IPC, "ldapi://". It's only defined in an expired Internet Draft [1], but works quite well with OpenLDAP.
--- LdapAuthentication.php~ +++ LdapAuthentication.php @@ -159,6 +159,10 @@ $this->printDebug( "Using SSL", SENSITIVE ); $serverpre = "ldaps://"; break;
case "ipc":
$this->printDebug( "Using IPC",
SENSITIVE );
$serverpre = "ldapi://";
break; default: $this->printDebug( "Using TLS
or not using encryption.", SENSITIVE ); $serverpre = "ldap://";
[1] http://opends.dev.java.net/public/standards/draft-chu-ldap-ldapi.txt
Thanks!
Matej
Mediawiki-enterprise mailing list Mediawiki-enterprise@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-enterprise
mediawiki-enterprise@lists.wikimedia.org