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
________________________________
From: wikitech-l-bounces@lists.wikimedia.org on behalf of Simetrical Sent: Mon 1/14/2008 11:38 PM To: Wikimedia developers Subject: Re: [Wikitech-l] Using the authentication functions
You probably want to use AuthPlugin:
http://www.mediawiki.org/wiki/AuthPlugin
It may be helpful to look at existing extensions that use it, such as LDAP, OpenID, and the provided sample code (I think there is some).
_______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l