Ah, so I should somehow post the variables to the Special:Userpage? Meaning the instantiation of a FauxWebRequest? Or should I take a different approach? Sorry for dragging on but I spend quite some time on this and got pretty much lost in the class structure of mediawiki, promise to pay back by documenting my scenario and solution on the mediawiki wiki somewhere -- Jac PS: I will remove my similar question from the discussion tab of the LDAP extension wiki article, considering I am dealing with the master directly now ;-)
-----Original Message----- From: wikitech-l-bounces@lists.wikimedia.org on behalf of Lane, Ryan Sent: Tue 1/15/2008 9:18 PM To: Wikimedia developers Subject: Re: [Wikitech-l] Using the authentication functions
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
_______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l