LDAP database loging code snippet
Page: 1, 2
How do I get my activecollab to use user data (login and password) from an ldap database instead of activecollab's own database?
Normally one can find a little snippet of code in a library of stuff relating to the product, - anyone able to help on this one?
Normally one can find a little snippet of code in a library of stuff relating to the product, - anyone able to help on this one?
I'd love to see some example code of someone who has integrated ActiveCollab login with ExpressionEngine. Could someone post example code if already done? Thanks.
digitalmark
on Nov 23. 2007. 11:31 am
rquigley:I'd love to see some example code of someone who has integrated ActiveCollab login with ExpressionEngine. Could someone post example code if already done? Thanks.
Me too! Very interested.
Yeah, we have a working AD integration.. We'll see if we can release it once it's a bit more polished.
Okay, polished it a bit. This is for Active Directory using the great adLDAP library by Scott Barnett. Please be sure that your Apache has mod_ldap working and installed. You can use the example.php in the adLDAP distribution to test the connection to your AD.
http://fatty.dk/acadauthprovider.zip
^ That would be the authentication provider. Be sure to read the README and INSTALL - it's pretty basic stuff really. You still log on with your e-mail address - but remember, the e-mail username (username@bla.com) HAS to be the same as the AD username (username@bla.local). Beware of this, since it's not always the same. For instance, if your user uses an e-mail alias or different e-mail, than for logon.
*** Automatic user creation is not working (when as user is not created in aC, but authenticates in AD). I seem to be able to create the object fine, but it won't save it to the database using $this->new_user->save(). Any ideas or help would be appreciated. But for now, it does what it's supposed to, log people on. *** UPDATE: It's working now, just grab the zip again.
Beware that it falls back to the standard basic authentication, so passwords set in aC still work! (this may change when I can update the password using the API).
Enjoy.
http://fatty.dk/acadauthprovider.zip
^ That would be the authentication provider. Be sure to read the README and INSTALL - it's pretty basic stuff really. You still log on with your e-mail address - but remember, the e-mail username (username@bla.com) HAS to be the same as the AD username (username@bla.local). Beware of this, since it's not always the same. For instance, if your user uses an e-mail alias or different e-mail, than for logon.
*** Automatic user creation is not working (when as user is not created in aC, but authenticates in AD). I seem to be able to create the object fine, but it won't save it to the database using $this->new_user->save(). Any ideas or help would be appreciated. But for now, it does what it's supposed to, log people on. *** UPDATE: It's working now, just grab the zip again.
Beware that it falls back to the standard basic authentication, so passwords set in aC still work! (this may change when I can update the password using the API).
Enjoy.
Casper Valdemar



