r43390 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43389‎ | r43390 | r43391 >
Date:17:40, 11 November 2008
Author:laner
Status:old
Tags:
Comment:
Added ldapi support (in kind of a dirty way). To use this, ensure your server name is the path of the socket on your file system, and your encryption type is ldapi (...like I said, kind of dirty).
Modified paths:
  • /trunk/extensions/LdapAuthentication/LdapAuthentication.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LdapAuthentication/LdapAuthentication.php
@@ -154,6 +154,12 @@
155155
156156 //Set the server string depending on whether we use ssl or not
157157 switch( $encryptionType ) {
 158+ case "ldapi":
 159+ # this is a really dirty place to put this,
 160+ # but it is easy and avoids another config option.
 161+ $this->printDebug( "Using ldapi", SENSITIVE );
 162+ $serverpre = "ldapi://";
 163+ break;
158164 case "ssl":
159165 $this->printDebug( "Using SSL", SENSITIVE );
160166 $serverpre = "ldaps://";

Status & tagging log