|
| __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
- Parameters
-
object | $a_username | |
object | $a_auth | |
Definition at line 149 of file class.ilAuthContainerSOAP.php.
References $_GET, $_POST, $GLOBALS, $ilSetting, $lng, ilObjUser\_checkPassword(), ilAuthUtils\_generateLogin(), ilObjUser\_getLocalAccountsForEmail(), ilObjUser\_lookupLogin(), ilObjUserFolder\_lookupNewAccountMail(), ilObjUser\_writeAuthMode(), ilObjUser\_writeExternalAccount(), AUTH_SOAP_NO_ILIAS_USER, AUTH_SOAP_NO_ILIAS_USER_BUT_EMAIL, AUTH_WRONG_LOGIN, ilUtil\generatePasswords(), and IL_PASSWD_MD5.
153 $GLOBALS[
'ilLog']->write(__METHOD__.
': SOAP login observer called');
176 $local_user = $this->response[
"local_user"];
177 if ($local_user !=
"")
180 $a_auth->setAuth($local_user);
183 if(!$ilSetting->get(
"soap_auth_create_users"))
191 if ($this->response[
"email"] !=
"")
200 if (
$_POST[
"LoginMappedUser"] !=
"")
202 if (count($email_user) > 0)
212 $a_auth->status =
'';
213 $a_auth->setAuth($local_user);
228 if (count($email_user) > 0 &&
$_POST[
"CreateUser"] ==
"")
230 $_GET[
"email"] = $this->response[
"email"];
240 $newUser[
"firstname"] = $this->response[
"firstname"];
241 $newUser[
"lastname"] = $this->response[
"lastname"];
242 $newUser[
"email"] = $this->response[
"email"];
244 $newUser[
"login"] = $local_user;
247 $newUser[
"passwd"] =
"";
254 if ($ilSetting->get(
"soap_auth_allow_local") &&
255 $ilSetting->get(
"soap_auth_account_mail"))
259 $newUser[
"passwd"] = md5($pw);
264 $newUser[
"auth_mode"] =
"soap";
265 $newUser[
"ext_account"] = $a_username;
266 $newUser[
"profile_incomplete"] = 1;
269 $userObj->assignData($newUser);
270 $userObj->setTitle($userObj->getFullname());
271 $userObj->setDescription($userObj->getEmail());
274 $userObj->setLanguage($lng->lang_default);
277 $userObj->setTimeLimitOwner(7);
278 $userObj->setTimeLimitUnlimited(1);
279 $userObj->setTimeLimitFrom(time());
280 $userObj->setTimeLimitUntil(time());
283 $userObj->setOwner(0);
285 $userObj->setActive(1);
287 $userObj->updateOwner();
290 $userObj->saveAsNew(
false);
293 $userObj->writePrefs();
296 $rbacadmin->assignUser($ilSetting->get(
'soap_auth_user_default_role'), $userObj->getId(),
true);
299 if ($ilSetting->get(
"soap_auth_account_mail"))
301 include_once(
'./Services/User/classes/class.ilObjUserFolder.php');
303 if (trim($amail[
"body"]) !=
"" && trim($amail[
"subject"]) !=
"")
305 include_once(
"Services/Mail/classes/class.ilAccountMail.php");
310 $acc_mail->setUserPassword($pw);
312 $acc_mail->setUser($userObj);
318 $a_auth->setAuth($local_user);
_getLocalAccountsForEmail($a_email)
check whether external account and authentication method matches with a user
static generatePasswords($a_number)
Generate a number of passwords.
_lookupNewAccountMail($a_lang)
_checkPassword($a_usr_id, $a_pw)
const AUTH_SOAP_NO_ILIAS_USER
_generateLogin($a_login)
generate free login by starting with a default string and adding postfix numbers
_lookupLogin($a_user_id)
lookup login
const AUTH_SOAP_NO_ILIAS_USER_BUT_EMAIL
_writeExternalAccount($a_usr_id, $a_ext_id)
_writeAuthMode($a_usr_id, $a_auth_mode)
const AUTH_WRONG_LOGIN
Returned if container is unable to authenticate user/password pair.