Topic on Extension talk:LdapAuth

No domain found for "Admin"

3
85.22.153.10 (talkcontribs)

It is only a small problem.

When I set $wgLdapAuthUseLocal = true; and try to login with a local admin account I get the internal error No domain found for "Admin"

The admin is logged on and I can work with the Mediawiki.


How can I suppress the "No domain" error message?


TrixTri (talkcontribs)

Do you really need the local account? I would suggest to use it only to make your domain account a wiki admin and to stop using it. There is nothing in the code as far as I can see anyway to stop that message.

However if it really bothers you and dont mind performing a dodgy hack, I guess you could go into the LdapAuth extension directory and modify the file found at src/Groups/LdapGroupSync.php and find the function populateGroups and remove the lines after the if statement that says if (null === $domain) all the way past final brace under throw new MappingException, Would not recommend doing this however.

85.22.153.10 (talkcontribs)

Thank you for the info. I have given an LDAP account admin rights. My problem was that I had not found the user name on the special page for user rights because it must be uppercase. The hack is not neccessary.

Reply to "No domain found for "Admin""