Topic on Extension talk:PluggableAuth

Replace standard login button

6
Summary by Cindy.cicalese

set $wgPluggableAuth_EnableLocalLogin to false

2A00:8A60:C010:1:0:0:1:125B (talkcontribs)

I use this with LDAPAuthentication2. But on the login page there are now to login buttons, the standard one and the one by PluggableAuth. Login works perfetcly, but only with the second button. But I don't want the first button. How do I hide it? The Login via PluggableAuth is supposed to be the only way to log in.

Cindy.cicalese (talkcontribs)

Please include what your MediaWiki and extension versions are as well as any configuration settings. Are you seeing only two login buttons or also other fields such as a username and password field? What other extensions do you have enabled?

2A00:8A60:C010:1:0:0:1:1062 (talkcontribs)

MediaWiki 1.34 and the latest Versions of the plugins (just downloaded them). About what Plugins are active and their config:

wfLoadExtension( 'LDAPProvider' );

$LDAPProviderDomainConfigs = "/var/www/mediawiki-1.34.0/ldapprovider.json";

wfLoadExtension( 'PluggableAuth' ); 

$wgPluggableAuth_EnableLocalLogin = true;

wfLoadExtension( 'LDAPAuthentication2' );

$LDAPAuthentication2UsernameNormalizer = 'strtolower';


And obviously I don't only have the two buttons but also fields for username and password, otherwise "Login works perfetcly" wouldn't make a lot of sense

Cindy.cicalese (talkcontribs)

@Osnard Can local login and LDAP login both be enabled simultaneously? I seem to remember discuss this at one point.


If you set $wgPluggableAuth_EnableLocalLogin to false or remove that line, the other button should disappear, but IIRC you will not be able to login locally.

2A00:8A60:C010:1:0:0:1:1011 (talkcontribs)

@Cindy.cicalese thanks, that did the trick. I thought that would remove the login fields entirely. But setting it to false and using $wgPluggableAuth_ButtonLabel I was able to simply replace the standard login button so nobody get's confused. Sure, now local login shouldn't be possible but if that would ever be necessary I can still revert it

Cindy.cicalese (talkcontribs)

Great. I'm glad that worked.