Topic on Talk:LDAP hub/Migration from extension LDAPAuthentication

Example 1 - User Name is empty

2
Igor-the-insane (talkcontribs)

I am trying example 1

This function os returning nothing :


$wgAuthRemoteuserUserName = function() {

   $user = '';

   if( isset( $_SERVER[ 'REMOTE_USER' ] ) ) {

       $user = strtolower( $_SERVER[ 'REMOTE_USER' ] );

   }

   return $user;

};


Suggestions ?


Osnard (talkcontribs)

So is $_SERVER[ 'REMOTE_USER' ] even set? If not, you might need to configure your webserver e.g. to use the Kerberos protocol (Apache: "mod_auth_kerb") for authentication.

Reply to "Example 1 - User Name is empty"