Jump to content

Topic on Extension talk:LdapAuth

LdapAuth: After login, browser displays blank page

2
Evops (talkcontribs)

Hello everyone.

I set up the LdapAth extension by following the following link:

Extension:LdapAuth

However after executing the login, the page presented is blank.

I added the following lines to LocalSettings.conf

wfLoadExtension( 'LdapAuth' );

$wgGroupPermissions['*'] ['autocreateaccount'] = true;

$wgLdapAuthDomainNames = ['EVOPS.LAN'];

$wgLdapAuthIsActiveDirectory = ['EVOPS.LAN' => true];

$wgSecureLogin = ['EVOPS.LAN' => true];

$wgLdapAuthUseLocal = ['EVOPS.LAN' => true];

$wgLdapAuthRequireDomain = ['EVOPS.LAN' => true];

#$wgLdapAuthDisplayName  = ['EVOPS.LAN' => ['evops']];

$wgLdapAuthEncryptionType = ['EVOPS.LAN' => 'none'];

$wgLdapAuthSearchTree = ['EVOPS.LAN' => true];

$wgLdapAuthServers = ['EVOPS.LAN' => ['localhost']];

$wgLdapAuthBindDN = ['EVOPS.LAN' => ['cn=mediawiki,ou=System Users,ou=Enterprise,dc=evops,dc=lan']];

$wgLdapAuthBindPass = ['EVOPS.LAN' => '123456'];

$wgLdapAuthBaseDN = ['EVOPS.LAN' => ['cn=Wiki Users,ou=Wiki,ou=Services,ou=Enterprise,dc=evops,dc=lan']];

$wgLdapAuthUsernameField = ['EVOPS.LAN' => ['uid']];

$wgLdapAuthMapGroups = ['EVOPS.LAN' => []];


MediaWiki version used is 1.31.1, my web server is NGINX, PHP 7.2, LDAP is SAMBA4, CentOS 7.7


Has anyone ever seen this happen? Have an idea how to solve?


Best regards,


TrixTri (talkcontribs)

You probably have an error your not seeing, try putting the lines

error_reporting( E_ALL );

ini_set( 'display_errors', 1 );

after the <?php in LocalSettings.php

one tip, if you get a forbidden message change $wgLdapAuthBaseDN to point to a OU

also try reading https://mediawiki.org/wiki/Manual:How_to_debug for more debugging tips

Reply to "LdapAuth: After login, browser displays blank page"