Thread:Extension talk:LDAP Authentication/LDAP group settings working with error?


 * Using wiki 1.19.3 LDAP estenssion is about 2month old cannot find number I do know it does not include ldap.sql file like the latest version. LDAP directory (opendj - 2.4.5)


 * My set up works well and with no errors or problems without group settings.
 * When I include group settings It works, I am able to log in with the users in the group/s I include in the required array.
 * But When I test all other groups that are in the directory (even thought I includ them in the excluded list) I get an error instead of user not allowed!
 * It seems to be working but not referring to the write message back?

grouperror1.png]] ( ! ) Notice: Undefined offset: 1 in C:\wamp2132\www\TestWonderland1\extensions\LdapAuthentication\LdapAuthentication.php    on line 1665 Call Stack Time	Memory	Function	Location 1	0.0004	376512	{main}	..\index.php:0 2	0.0852	11058424	MediaWiki->run	..\index.php:58 3	0.0852	11058424	MediaWiki->main	..\Wiki.php:503 4	0.0861	11184704	MediaWiki->performRequest	..\Wiki.php:593 5	0.0896	11372600	SpecialPageFactory::executePath	..\Wiki.php:263 6	0.0938	12320888	LoginForm->execute	..\SpecialPageFactory.php:476 7	0.1557	18532656	LoginForm->processLogin	..\SpecialUserlogin.php:170 8	0.1557	18532656	LoginForm->authenticateUserData	..\SpecialUserlogin.php:722 9	0.1825	18589312	User->checkPassword	..\SpecialUserlogin.php:562 10	0.1826	18589344	LdapAuthenticationPlugin->authenticate	..\User.php:3118 11	0.3382	18600528	LdapAuthenticationPlugin->getGroups	..\LdapAuthentication.php:693 12	0.3739	18600992	LdapAuthenticationPlugin->searchGroups	..\LdapAuthentication.php:1530
 * Error snap Shot
 * Error Log

require_once("$IP/extensions/LdapAuthentication/LdapAuthentication.php"); $wgAuth = new LdapAuthenticationPlugin; $wgLDAPDomainNames = array("SOpenDJ"); $wgLDAPServerNames = array("SOpenDJ" => "localhost"); $wgLDAPPort = array("SOpenDJ" => 389); $wgLDAPEncryptionType = array( "SOpenDJ" => "clear"); ### Group lookup ### $wgLDAPExcludedGroups = array( "SOpenDJ"=> array( 'cn=group2,ou=people,dc=example,dc=org' ) ); $wgLDAPUseLDAPGroups = array('SOpenDJ'=>true); $wgDebugLogGroups["ldap"] = ("$IP/extensions/LdapAuthentication/debug.log") ; $wgLDAPRequiredGroups = array('SOpenDJ'=>array( 'cn=group1,ou=people,dc=example,dc=org' )); $wgLDAPGroupUseFullDN = array('SOpenDJ'=>true); $wgLDAPGroupObjectclass = array('SOpenDJ'=>'groupofuniquenames'); $wgLDAPGroupAttribute = array('SOpenDJ'=>'uniquemember'); $wgLDAPGroupSearchNestedGroups = array('SOpenDJ'=>false); $wgLDAPGroupNameAttribute = array('SOpenDJ'=>'cn'); $wgLDAPBaseDNs = array( 'SOpenDJ' => 'dc=example,dc=org' ); $wgLDAPUserBaseDNs = array( "SOpenDJ"=>"ou=people,dc=example,dc=org"); $wgLDAPSearchStrings = array("SOpenDJ" => "uid=USER-NAME,ou=people,dc=example,dc=org"); $wgLDAPLowerCaseUsername = array( "SOpenDJ"=>true); $wgMinimalPasswordLength = 1; $wgLDAPDisableAutoCreate = array("SOpenDJ"=>false); $wgLDAPDebug = 3; $wgShowExceptionDetails = false;
 * My Config