Topic on Extension talk:LDAPAuthentication2

[0d90a23077d2a1fa5d12fbea] 2020-01-28 02:02:03: Fatal exception of type "Error"

3
2601:588:C000:CC8:D49F:4C05:5318:13D (talkcontribs)

When I try to log in as any LDAP user I get the above titled error message. Can someone please help me? I don't know what to do next.


wfLoadExtension( 'PluggableAuth' );                                                                         
wfLoadExtension( 'LDAPProvider' );                                                                                    
wfLoadExtension( 'LDAPAuthentication2' );                                                                             
wfLoadExtension( 'LDAPUserInfo' );                                                                                    
                                                                                                                      
$LDAPAuthentication2AllowLocalLogin = true;                                                                           
                                                                                                                      
$LDAPProviderDomainConfigProvider = function() {                                                      
        $config = [                                                                                                   
                'LDAP' => [                                                                                           
                        'connection' => [                                                                             
                                "server" => "REDACTED",                                           
                                "user" => "CN=Administrator,CN=Users,DC=it,DC=networkservice,DC=associates",
                                "pass" => 'REDACTED',                                                         
                                "options" => [                                                                        
                                        "LDAP_OPT_DEREF" => 1                                                         
                                ],                                                                    
                                "basedn" => "DC=it,DC=networkservice,DC=associates",                                  
                                "groupbasedn" => "OU=Groups,DC=it,DC=networkservice,DC=associates",                   
                                "userbasedn" => "OU=Associates,DC=it,DC=networkservice,DC=associates",                
                                "searchattribute" => "uid",                                
                                "searchstring" => "uid=USER-NAME,OU=Associates,DC=it,DC=networkservice,DC=associates",
                                "usernameattribute" => "uid",                                       
                                "realnameattribute" => "cn",                                        
                                "emailattribute" => "mail"                          
                        ]                                                                           
                ]                                                                                     
        ];                                                                                          
                                                                                                                      
        return new \MediaWiki\Extension\LDAPProvider\DomainConfigProvider\InlinePHPArray( $config );
};                                                                              
Osnard (talkcontribs)
91.135.176.46 (talkcontribs)

The error is due to lack of php package :


yum install rh-php72-php-ldap

Reply to "[0d90a23077d2a1fa5d12fbea] 2020-01-28 02:02:03: Fatal exception of type "Error""