We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Question concerning Login Controller Hooks > login_authenticate_start and accessing via a third party extension

Development and Programming

UMstratcomm's avatar
UMstratcomm
44 posts
12 years ago
UMstratcomm's avatar UMstratcomm

Greetings,

I am looking for a bit more information on the Login Controller Extension hooks; namely, login_authenticate_start.

I have been using an integrated LDAP login with our install of ExpressionEngine (both in 1.7X and also in 2.6.1); as of now, it involves hacking both the login.php and auth.php core files. I introduced a LDAP-based function that runs an LDAP query on the user’s login credentials. If successful, I then grab the locally stored EE account’s password and pass it on to the authenticate function on login.php. An extra function on auth.php keeps the extracted local password from getting double-hashed. This works for our needs, but obviously hacking the core files is not the best approach. As such, I want to build this into an EE extension. I have downloaded the excellent nce_ldap extension…But it does not work for our needs, as it automatically updates the local EE user’s password with the LDAP account’s password–and I don’t want to synchronize these due to security restrictions in our environment.

That being said, here is my question: is it possible to at least send an extracted password to login_authenticate_start via a third party extension? From what I have gathered via http://ellislab.com/expressionengine/user-guide/development/extension_hooks/cp/login/index.html - login_authenticate_start can “perform additional actions prior to/take over the control panel login routine.” If so, is there a particular syntax that must be used via the third party extension in order to pass another password to login_authenticate_start?

Thanks in advance!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.