Thread:Project:Support desk/PHP Notice: Undefined offset: 0 in /srv/www/vhosts/wiki/extensions/LdapAuthentication.php on line 1208/reply (2): Difference between revisions
No edit summary |
No edit summary |
||
| Line 13: | Line 13: | ||
<code> |
<code> |
||
require_once( "$IP/extensions/LdapAuthentication.php" ); |
require_once( "$IP/extensions/LdapAuthentication.php" ); |
||
$wgAuth = new LdapAuthenticationPlugin(); |
$wgAuth = new LdapAuthenticationPlugin(); |
||
$wgLDAPDomainNames = array("DO1","DO2","DO3"); |
$wgLDAPDomainNames = array("DO1","DO2","DO3"); |
||
$wgLDAPServerNames = array("DO2"=>"do2.corp.company.com","DO1"=>"do1.corp.company.com","DO3"=>"do3.corp.company.com"); |
$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"); |
$wgLDAPSearchStrings = array("DO2"=>"DO2\\USER-NAME","DO1"=>"DO1\\USER-NAME","DO3"=>"DO3\\USER-NAME"); |
||
$wgLDAPUseLocal = true; |
$wgLDAPUseLocal = true; |
||
$wgLDAPEncryptionType = array("DO2"=>"clear","DO3"=>"clear","DO1"=>"clear"); |
$wgLDAPEncryptionType = array("DO2"=>"clear","DO3"=>"clear","DO1"=>"clear"); |
||
$wgLDAPUseSSL = false; |
$wgLDAPUseSSL = false; |
||
$wgLDAPEncryptionType = array( "DO2"=>"false", "DO1"=>"false", "DO3"=>"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"); |
$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"; |
$wgLDAPProxyAgent = "CN=iNNL NIS robot,OU=Services,OU=Accounts,OU=Dev research,OU=Resources,DC=do2,DC=corp,DC=company,DC=com"; |
||
$wgLDAPProxyAgentPassword = "proxypass"; |
$wgLDAPProxyAgentPassword = "proxypass"; |
||
$wgLDAPSearchAttributes = array("DO2"=>"sAMAccountName","DO1"=>"sAMAccountName","DO3"=>"sAMAccountName"); |
$wgLDAPSearchAttributes = array("DO2"=>"sAMAccountName","DO1"=>"sAMAccountName","DO3"=>"sAMAccountName"); |
||
</code> |
</code> |
||
Revision as of 09:26, 18 January 2013
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.