I'm converting from the old LdapAuthentication extension to the PluggableAuth/LDAPProvider/LDAPAuthentication2 stack. Using the login page directly, I'm able to log in successfully with my LDAP credentials. When I use the MW REST API to log in via the clientlogin
action, however, I get this error message:
{"clientlogin":{"status":"FAIL","message":"The supplied credentials could not be authenticated.","messagecode":"authmanager-authn-no-primary"}}
This happens after I've successfully called api.php?action=query&meta=tokens&type=login&format=json
to get a login token, which I'm sending back as part of the login request. I've also checked that I'm returning the wikidb_session
cookie in the clientlogin
request headers. The login
action I used to use is now deprecated for "main-account login", and main account login is what I need here since the cookies sent back after login are supposed to be handed back to my site's SSO system.
What am I doing wrong here?