Hi,
We upgraded to MediaWiki 1.27.1 yesterday. We are using LDAPAuthentication. It works for users that already had an account in MediaWiki (i.e. those who had logged in before). However, new LDAP users can't log in. The logs show that LDAP authentication works, but I believe the local mediawiki account creation does not work.
Here is our LDAP configuration:
# LDAP authentication require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" ); #$wgAuth = new LdapAuthenticationPlugin(); $wgAuthManagerAutoConfig['primaryauth'] += [ LdapPrimaryAuthenticationProvider::class => [ 'class' => LdapPrimaryAuthenticationProvider::class, 'args' => [ [ 'authoritative' => true, // don't allow local non-LDAP accounts ] ], 'sort' => 50, // must be smaller than local pw provider ], ]; $wgLDAPDomainNames = array( "computecanada"); $wgLDAPServerNames = array( "computecanada" => <SERVER-HOST-REMOVED>); $wgLDAPEncryptionType = array("computecanada" => "ssl"); $wgLDAPUseLocal = true; $wgLDAPBaseDNs = array( "computecanada" => "dc=computecanada,dc=ca" ); $wgLDAPSearchAttributes = array("computecanada" => "uid" ); $wgLDAPAuthAttribute = array("computecanada" => "objectclass=ccPerson"); # Using LDAP groups $wgLDAPUseLDAPGroups = array( "computecanada"=>true ); $wgLDAPGroupObjectclass = array("computecanada"=>"posixGroup"); $wgLDAPGroupAttribute = array("computecanada"=>"memberUid"); $wgLDAPGroupNameAttribute = array("computecanada"=>"cn"); # Getting LDAP preferences $wgLDAPPreferences = array( "computecanada"=>array( "email"=>"ccPrimaryEmail","realname"=>"cn","nickname"=>"cn","language"=>"preferredLanguage") );
We initially tried with
$wgLDAPUseLocal = false;
The user was getting an error "Auto-creation of a local account failed:
Automatic account creation is not allowed."
With
$wgLDAPUseLocal = true;
which was our former setting, the user now got the error message "There are problems with some of your input."
We are running https://extdist.wmflabs.org/dist/extensions/LdapAuthentication-REL1_27-b0dba33.tar.gz