|
| __construct () |
| Constructor. More...
|
|
| initClient () |
| Init soap client. More...
|
|
| fetchData ($a_username, $a_password, $isChallengeResponse=false) |
| Call is isValidSession of soap server. More...
|
|
| loginObserver ($a_username, $a_auth) |
| Called after login and successful call of fetch data. More...
|
|
| Auth_Container () |
| Constructor. More...
|
|
| fetchData ($username, $password, $isChallengeResponse=false) |
| Fetch data from storage container. More...
|
|
| verifyPassword ($password1, $password2, $cryptType="md5") |
| Crypt and verfiy the entered password. More...
|
|
| supportsChallengeResponse () |
| Returns true if the container supports Challenge Response password authentication. More...
|
|
| getCryptType () |
| Returns the crypt current crypt type of the container. More...
|
|
| listUsers () |
| List all users that are available from the storage container. More...
|
|
| getUser ($username) |
| Returns a user assoc array. More...
|
|
| addUser ($username, $password, $additional=null) |
| Add a new user to the storage container. More...
|
|
| removeUser ($username) |
| Remove user from the storage container. More...
|
|
| changePassword ($username, $password) |
| Change password for user in the storage container. More...
|
|
| log ($message, $level=AUTH_LOG_DEBUG) |
| Log a message to the Auth log. More...
|
|
| loginObserver ($a_username, $a_auth) |
| Called after successful login. More...
|
|
| failedLoginObserver ($a_username, $a_auth) |
| Called after failed login. More...
|
|
| checkAuthObserver ($a_username, $a_auth) |
| Called after check auth requests. More...
|
|
| logoutObserver ($a_username, $a_auth) |
| Called after logout. More...
|
|
| supportsCaptchaVerification () |
| Returns whether or not the auth container supports the verification of captchas This should be true for those auth methods, which are available in the default login form. More...
|
|
Authentication against external SOAP server
- Todo:
- This class should inherit either from Auth_Container_SOAP or Auth_Container_SOAP5
- Author
- Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
- Version
- $id$
Definition at line 35 of file class.ilAuthContainerSOAP.php.
ilAuthContainerSOAP::loginObserver |
( |
|
$a_username, |
|
|
|
$a_auth |
|
) |
| |
Called after login and successful call of fetch data.
- Returns
- bool
- Parameters
-
string | $a_username | |
\ilAuthWeb | $a_auth | |
Definition at line 142 of file class.ilAuthContainerSOAP.php.
References $GLOBALS, $ilSetting, $lng, ilAuthUtils\_generateLogin(), ilObjUserFolder\_lookupNewAccountMail(), AUTH_SOAP_NO_ILIAS_USER, ilUtil\generatePasswords(), IL_PASSWD_CRYPTED, and IL_PASSWD_PLAIN.
146 $GLOBALS[
'ilLog']->write(__METHOD__.
': SOAP login observer called');
148 $local_user = $this->response[
"local_user"];
149 if ($local_user !=
"")
152 $a_auth->setAuth($local_user);
155 if(!$ilSetting->get(
"soap_auth_create_users"))
165 $newUser[
"firstname"] = $this->response[
"firstname"];
166 $newUser[
"lastname"] = $this->response[
"lastname"];
167 $newUser[
"email"] = $this->response[
"email"];
169 $newUser[
"login"] = $local_user;
172 $newUser[
"passwd"] =
"";
179 if ($ilSetting->get(
"soap_auth_allow_local") &&
180 $ilSetting->get(
"soap_auth_account_mail"))
184 $newUser[
"passwd"] = $pw;
189 $newUser[
"auth_mode"] =
"soap";
190 $newUser[
"ext_account"] = $a_username;
191 $newUser[
"profile_incomplete"] = 1;
194 $userObj->assignData($newUser);
195 $userObj->setTitle($userObj->getFullname());
196 $userObj->setDescription($userObj->getEmail());
199 $userObj->setLanguage($lng->lang_default);
202 $userObj->setTimeLimitOwner(7);
203 $userObj->setTimeLimitUnlimited(1);
204 $userObj->setTimeLimitFrom(time());
205 $userObj->setTimeLimitUntil(time());
208 $userObj->setOwner(0);
210 $userObj->setActive(1);
212 $userObj->updateOwner();
215 $userObj->saveAsNew(
false);
218 $userObj->writePrefs();
221 $rbacadmin->assignUser($ilSetting->get(
'soap_auth_user_default_role'), $userObj->getId(),
true);
224 if ($ilSetting->get(
"soap_auth_account_mail"))
226 include_once(
'./Services/User/classes/class.ilObjUserFolder.php');
228 if (trim($amail[
"body"]) !=
"" && trim($amail[
"subject"]) !=
"")
230 include_once(
"Services/Mail/classes/class.ilAccountMail.php");
235 $acc_mail->setUserPassword($pw);
237 $acc_mail->setUser($userObj);
243 $a_auth->setAuth($local_user);
static generatePasswords($a_number)
Generate a number of passwords.
_lookupNewAccountMail($a_lang)
const AUTH_SOAP_NO_ILIAS_USER
_generateLogin($a_login)
generate free login by starting with a default string and adding postfix numbers
$GLOBALS['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.