View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0001098 | v3.0 Release | [All Projects] General | public | 2012-03-19 02:24 | 2013-08-28 11:18 | ||||
Reporter | pcamps1 | ||||||||
Assigned To | caseydk | ||||||||
Priority | normal | Severity | block | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Product Version | |||||||||
Target Version | Fixed in Version | 3.0.0 | |||||||
Summary | 0001098: No new user creation after LDAP authentication | ||||||||
Description | After LDAP authentication, a new user is not created in the database. | ||||||||
Additional Information | The problem comes from lines 155 to 161 (function createsqluser) in LDAP.class.php (classes/w2p/Authenticators) : $u = new CUser(); $u->user_username = $username; $u->user_password = $hash_pass; $u->user_type = 0; // Changed from 1 (administrator) to 0 (Default user) $u->user_contact = (int) $contact_id; $u->store($AppUI); $user_id = $u->user_id; Just need to replace these lines by lines 98 to 109 coming from PostNuke.class.php (classes/w2p/Authenticators) : $q = new w2p_Database_Query; $q->addTable('users'); $q->addInsert('user_username', $username); $q->addInsert('user_password', $password); $q->addInsert('user_type', '7'); // 7 = employé $q->addInsert('user_contact', $c->contact_id); if (!$q->exec()) { die($AppUI->_('Failed to create user credentials')); } $user_id = $db->Insert_ID(); $this->user_id = $user_id; $q->clear(); | ||||||||
Tags | No tags attached. | ||||||||
Attached Files |
|
![]() |
|
caseydk (administrator) 2012-10-28 20:27 |
Resolved: https://github.com/caseysoftware/web2project/pull/151 |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2012-03-19 02:24 | pcamps1 | New Issue | |
2012-04-21 19:07 | caseydk | Project | v2.4 Release (Closed) => v3.0 Release |
2012-10-28 20:27 | caseydk | Note Added: 0002676 | |
2012-10-28 20:27 | caseydk | Status | new => resolved |
2012-10-28 20:27 | caseydk | Resolution | open => fixed |
2012-10-28 20:27 | caseydk | Assigned To | => caseydk |
2013-08-28 11:14 | caseydk | Fixed in Version | => 3.0.0 |
2013-08-28 11:18 | caseydk | Status | resolved => closed |