Thank you for your reaction, cool, I figured this would be the direction to go. I now do: $wgAuth = new LdapAuthenticationPlugin(); // as I am using that extension to AuthPlugin $wgAuth->validDomain('MYDOMAIN'); $wgAuth->setDomain('MYDOMAIN'); $wgAuth->getCanonicalName($decryptedusername); $wgAuth->authenticate($decryptedusername,$decryptedpwd); $wgAuth->initUser($decryptedusernamer,$decryptedpwd); which gives an error as I am 'Calling to a member function saveSettings() on a non-object'. This non-object has to be a User but I cannot find where to instantantiate it. Other simular attempts result in different function giving errors as they are trying to process a non-User object. First guess is that this is where the LoginForm class has to be called? Maybe a final push ...? By the way, validation seems to work, it is just about updating or adding the user and redirecting now.
By the way please correct me if I am out of line sending these questions here. Especially as they probably only reflect my ignorance. Anyway thanks for your reply! -- Jac
The LDAP plugin wasn't meant to be used as a library. It is a standalone plugin that is configured via LocalSettings.php. Please see:
http://www.mediawiki.org/wiki/Extension:LDAP_Authentication
V/r,
Ryan Lane