Thread:Project:Support desk/PHP Notice: Undefined offset: 0 in /srv/www/vhosts/wiki/extensions/LdapAuthentication.php on line 1208/reply (2)

Hi, this is my current version:

MediaWiki 1.15.1 PHP 5.2.14 (apache2handler) MySQL 5.0.95

Other
 * LDAP Authentication Plugin
 * (Version 1.2a (beta)) LDAP Authentication plugin with support for multiple LDAP authentication methods Ryan Lane


 * NamespacePermissions
 * (Version ) flexible access management for custom namespaces Petr Andreev

I suppose that I should get the last LDAP Authentication Plugin version, but I don't know if it will work with my current options:

require_once( "$IP/extensions/LdapAuthentication.php" );

$wgAuth = new LdapAuthenticationPlugin;

$wgLDAPDomainNames = array("DO1","DO2","DO3");

$wgLDAPServerNames = array("DO2"=>"do2.corp.company.com","DO1"=>"do1.corp.company.com","DO3"=>"do3.corp.company.com");

$wgLDAPSearchStrings = array("DO2"=>"DO2\\USER-NAME","DO1"=>"DO1\\USER-NAME","DO3"=>"DO3\\USER-NAME");

$wgLDAPUseLocal = true;

$wgLDAPEncryptionType = array("DO2"=>"clear","DO3"=>"clear","DO1"=>"clear");

$wgLDAPUseSSL = false;

$wgLDAPEncryptionType = array( "DO2"=>"false", "DO1"=>"false", "DO3"=>"false" );

$wgLDAPBaseDNs = array("DO2"=>"dc=corp,dc=company,dc=com","DO1"=>"dc=corp,dc=company,dc=com","DO1"=>"dc=corp,dc=company,dc=com");

$wgLDAPProxyAgent = "CN=iNNL NIS robot,OU=Services,OU=Accounts,OU=Dev research,OU=Resources,DC=do2,DC=corp,DC=company,DC=com";

$wgLDAPProxyAgentPassword = "proxypass";

$wgLDAPSearchAttributes = array("DO2"=>"sAMAccountName","DO1"=>"sAMAccountName","DO3"=>"sAMAccountName");

So:


 * 1) How do I download and replace the LdapAuthentication.php extension?
 * 2) Will my current options work with the new extension version?

Thanks so much.