65 static $provis_instance;
66 if (!isset($provis_instance)) {
70 return $provis_instance;
121 if ($this->ldap_provisioning) {
124 $this->auth_instance->setErrors(0, sprintf(
130 if ($this->ldap_provisioning && $this->ldap_provisioning_upd) {
148 $tab_mapping = explode(
'|', $this->ldap_field_mapping);
149 foreach ($tab_mapping as $mapping) {
150 $fields = explode(
'=', trim($mapping));
151 if (isset($fields[0]) and ($field0 = trim($fields[0]))) {
153 if (isset($fields[1]) and ($field1 = trim($fields[1]))) {
154 if (!empty($data[$field1][0])) {
155 $str = $data[$field1][0];
158 $object->setVar($field0, $str);
179 $newuser->setVar(
'uname',
$uname);
180 $newuser->setVar(
'pass', password_hash(stripslashes($pwd), PASSWORD_DEFAULT));
181 $newuser->setVar(
'rank', 0);
182 $newuser->setVar(
'level', 1);
183 $newuser->setVar(
'timezone_offset',
$xoops->getConfig(
'default_TZ'));
184 $newuser->setVar(
'theme',
$xoops->getConfig(
'theme_set'));
187 $newuser->setVar(
'user_regdate', time());
191 foreach ($this->ldap_provisioning_group as $groupid) {
194 $newuser->unsetNew();
219 $xoopsUser->
setVar(
'pass', password_hash(stripslashes($pwd), PASSWORD_DEFAULT));
236 public function delete()
if($uname== ''||$pass== '') $member_handler
change(\XoopsUser $xoopsUser, $data, $uname, $pwd=null)
const EF_CORRESPONDING_USER_NOT_FOUND_IN_DATABASE
add($data, $uname, $pwd=null)
setVarsMapping($object, $data)
static getInstance(AuthAbstract $auth_instance)
setVar($key, $value, $not_gpc=false)
__construct(AuthAbstract $auth_instance)
sync($data, $uname, $pwd=null)