Skip to content

Commit

Permalink
When updating a user, the objectClasses may be updated. Maybe move th…
Browse files Browse the repository at this point in the history
…is function to the reviewUser view and only modify the object class when the objectClass retrieved are differents than the objectClass defined at the config file
  • Loading branch information
pitbulk committed Nov 5, 2013
1 parent e776d24 commit e313391
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Storage/LdapMod.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ public function updateUser($userId, $userInfo) {
$this->adminBindLdap();
if($this->searchfordn($this->searchBase, $this->userIdAttr, $userId, TRUE) ){
// User found in the catalog
$userInfo['objectClass'] = $this->objectClass;
$this->replaceAttribute($dn, $userInfo);
}else{
// User not found
Expand Down Expand Up @@ -289,7 +290,7 @@ private function replaceAttribute($dn, $entry){
throw new sspmod_userregistration_Error_UserException('id_violation');
}
else {
throw new Exception($error_msg);
throw new Exception($error_msg.var_export($entry, TRUE).var_export($dn, TRUE));
}
}
}
Expand Down

0 comments on commit e313391

Please sign in to comment.