37 $shib_user =
new self();
40 $ext_id = $shib_user->shibServerData->
getLogin();
41 $shib_user->setExternalAccount($ext_id);
43 if ($existing_usr_id !==
null) {
44 $shib_user->setId($existing_usr_id);
47 $shib_user->setAuthMode(
'shibboleth');
55 if ($shibConfig->getUpdateFirstname()) {
58 if ($shibConfig->getUpdateLastname()) {
61 if ($shibConfig->getUpdateGender()) {
64 if ($shibConfig->getUpdateTitle()) {
67 if ($shibConfig->getUpdateInstitution()) {
70 if ($shibConfig->getUpdateDepartment()) {
73 if ($shibConfig->getUpdateStreet()) {
76 if ($shibConfig->getUpdateZipcode()) {
79 if ($shibConfig->getUpdateCountry()) {
82 if ($shibConfig->getUpdatePhoneOffice()) {
85 if ($shibConfig->getUpdatePhoneHome()) {
88 if ($shibConfig->getUpdatePhoneMobile()) {
91 if ($shibConfig->getUpdateFax()) {
94 if ($shibConfig->getUpdateMatriculation()) {
97 if ($shibConfig->getUpdateEmail()) {
100 if ($shibConfig->getUpdateHobby()) {
103 if ($shibConfig->getUpdateLanguage()) {
148 $recipients = array_filter($registration_settings->getApproveRecipients(),
static fn($v):
bool => is_int($v));
149 if ($recipients !== [] &&
$c->isActivateNew()) {
153 $mail->setRecipients($registration_settings->getApproveRecipients());
154 $mail->setAdditionalInformation([
'usr' => $this]);
159 return parent::create();
169 $login = preg_replace(
'/\s+/',
'', $login);
173 $login = $login_tmp . $appendix;
182 return $this->
getId() === 0;
188 'ä' =>
'ae',
'ö' =>
'oe',
'ü' =>
'ue',
189 'Ä' =>
'Ae',
'Ö' =>
'Oe',
'Ü' =>
'Ue',
192 $name = strtr($name, $umlaut_map);
195 $name = $form_d->formD()->transform($name);
196 $name = iconv(
'UTF-8',
'ASCII//TRANSLIT//IGNORE', (
string) $name);
198 return strtolower((
string) preg_replace(
'/[^a-zA-Z0-9\s]/',
'', $name));
207 $query =
'SELECT usr_id FROM usr_data WHERE login = ' .
$db->
quote($login,
'text');
208 $query .=
' AND usr_id != ' .
$db->
quote($usr_id,
'integer');
219 $query =
'SELECT usr_id FROM usr_data WHERE ext_account = ' .
$db->
quote($ext_id,
'text');
227 return ($usr !==
null && isset($usr->usr_id)) ? (
int) $usr->usr_id :
null;
setGender(string $gender_string)
setPhoneMobile(string $phone)
setLanguage(string $language)
setStreet(string $street)
setTimeLimitUntil(?int $a_until)
setTimeLimitFrom(?int $a_from)
setPhoneHome(string $phone)
getFullname(int $max_strlen=0)
setMatriculation(string $matriculation)
setPasswd(string $a_str, string $a_type=ilObjUser::PASSWD_PLAIN)
setActive(bool $active, int $owner=0)
set user active state and updates system fields appropriately
setZipcode(string $zipcode)
setLastname(string $lastname)
setCountry(string $country)
setDepartment(string $department)
setPhoneOffice(string $phone)
setExternalAccount(string $a_str)
setTimeLimitUnlimited(bool $unlimited)
setLastPasswordChangeToNow()
setInstitution(string $instituion)
setFirstname(string $firstname)
setUTitle(string $user_title)
This sets the USER's title NOT the OBJECT's title!
setDescription(string $description)
const TYPE_NOTIFICATION_CONFIRMATION
Class ilObjAuthSettingsGUI.
static generatePasswords(int $a_number)
Generate a number of passwords.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getUsrIdByExtId(string $ext_id)
loginExists(string $login, int $usr_id)
shibServerData $shibServerData
static buildInstance(shibServerData $shibServerData)
fetchObject(ilDBStatement $query_result)
numRows(ilDBStatement $statement)
quote($value, string $type)
query(string $query)
Run a (read-only) Query on the database.