Topic on Extension talk:LDAPAuthentication2

Populate the ldap_domains database

8
GregANICO (talkcontribs)
GregANICO (talkcontribs)

I am running MediaWiki 1.39 with LDAPAuthentication2: REL1_39 and PluggableAuth: REL1_39. For some reason it seems my database table is empty for ldap_domains:

MariaDB [redacted_wikidb]> SELECT * FROM `ldap_domains`;

Empty set (0.000 sec)


I have ran the maintance/update.php and it doesn't populate that table. Any way I can populate it by hand to get this to work?

Thanks,

Greg

Osnard (talkcontribs)

It will populate itself, when the users log in.

GregANICO (talkcontribs)

That must not be the issue then. When I go to login to the site with my domain credentials I get the following error message: Please choose a valid domain

GregANICO (talkcontribs)

This is what I see

Error that I get
Osnard (talkcontribs)

Can you please share the $wgPluggableAuth_Config setting?

GregANICO (talkcontribs)

Sure, here it is I placed DOMAIN and subdomain.domain just on here for security purpose but left them case sensitive as they are in the configuration:

$wgPluggableAuth_Config['Log In (DOMAIN)'] = [

    'plugin' => 'LDAPAuthentication2',

    'data' => [

        'domain' => 'subdomain.domain.com'

    ]

];

Osnard (talkcontribs)

And subdomain.domain.com is configured in Extension:LDAPProviders "domain config"?

Do CLI tools like extensions/LDAPProvider/maintenance/CheckLogin.php work?

Reply to "Populate the ldap_domains database"