designbyfront / LDAP-Authentication-for-ExpressionEngine

An ExpressionEngine Extension that allows the authentication of users via LDAP. LDAP details are copied to the EE database before standard MySQL authentication is performed. If user is not found on LDAP, MySQL authentication will still be performed (useful for EE users not in LDAP)
http://www.designbyfront.com
30 stars 16 forks source link

LDAP User Account Creation in Template Login Form #3

Closed swatkins closed 14 years ago

swatkins commented 14 years ago

I have an issue with the extension not creating new ee user accounts from LDAP when authenticating through a login form in a template or the /member/login template. It works great when using the control panel login. Is there a setting that I'm missing?

swatkins commented 14 years ago

Got It! The EE Member Model was being called, but not loaded. I've added this to the extension at line 286:

$this->EE->load->model('member_model');

Then, there were duplicitous database calls, so I commented out these two lines (293 & 294):

//$this->EE->db->query('INSERT INTO exp_member_data SET member_id = '.$this->EE->db->escape_str($member_id)); //$this->EE->db->query('INSERT INTO exp_member_homepage SET member_id = '.$this->EE->db->escape_str($member_id));