/home/limesurvey.shnoulle.net/www/application/core/plugins/AuthLDAP/AuthLDAP.php(297)
285 $oEvent->set('errorMessageTitle', gT("Failed to add user")); 286 $oEvent->set('errorMessageBody', gT("The email address is not valid.")); 287 return null; 288 } 289 $new_pass = createPassword(); 290 // If user is being auto created we set parent ID to 1 (admin user) 291 if (isset(Yii::app()->session['loginID'])) { 292 $parentID = Yii::app()->session['loginID']; 293 } else { 294 $parentID = 1; 295 } 296 $status = true; 297 $preCollectedUserArray = $oEvent->get('preCollectedUserArray', []); 298 if (!empty($preCollectedUserArray)) { 299 if (!empty($preCollectedUserArray['status'])) { 300 $status = $preCollectedUserArray['status']; 301 } 302 } 303 $iNewUID = User::insertUser($new_user, $new_pass, $new_full_name, $parentID, $new_email, null, $status); 304 if (!$iNewUID) { 305 $oEvent->set('errorCode', self::ERROR_ALREADY_EXISTING_USER); 306 $oEvent->set('errorMessageTitle', ''); 307 $oEvent->set('errorMessageBody', gT("Failed to add user")); 308 return null; 309 }
#0 |
+
–
/home/limesurvey.shnoulle.net/www/application/core/plugins/AuthLDAP/AuthLDAP.php(579): AuthLDAP->_createNewUser() 574 } 575 public function __toString() { 576 return json_encode($this->warnings); 577 } 578 }; 579 if (($iNewUID = $this->_createNewUser($dummyEvent, $username, $password)) && $this->get('automaticsurveycreation', null, null, false)) { 580 Permission::model()->setGlobalPermission($iNewUID, 'surveys', array('create_p')); 581 } 582 $user = $this->api->getUserByName($username); 583 if ($user === null) { 584 $this->setAuthFailure(self::ERROR_USERNAME_INVALID, gT('Credentials are valid but we failed to create a user')); |
#1 |
unknown(0): AuthLDAP->newUserSession()
|
#2 |
+
–
/home/limesurvey.shnoulle.net/www/application/libraries/PluginManager/PluginManager.php(269): call_user_func() 264 if ( 265 !$event->isStopped() 266 && (empty($target) || in_array(get_class($subscription[0]), $target)) 267 ) { 268 $subscription[0]->setEvent($event); 269 call_user_func($subscription); 270 } 271 } 272 } 273 274 return $event; |
#3 |
+
–
/home/limesurvey.shnoulle.net/www/application/core/LSUserIdentity.php(78): LimeSurvey\PluginManager\PluginManager->dispatchEvent() 73 throw new CHttpException(403, gT("You do not have permission to access this page.")); 74 } 75 // Delegate actual authentication to plugin 76 $authEvent = new PluginEvent('newUserSession', $this); // TODO: rename the plugin function authenticate() 77 $authEvent->set('identity', $this); 78 App()->getPluginManager()->dispatchEvent($authEvent); 79 $pluginResult = $authEvent->get('result'); 80 if ($pluginResult instanceof LSAuthResult) { 81 $result = $pluginResult; 82 } else { 83 $result->setError(self::ERROR_UNKNOWN_IDENTITY); |
#4 |
+
–
/home/limesurvey.shnoulle.net/www/application/controllers/admin/Authentication.php(167): LSUserIdentity->authenticate() 162 163 // Now authenticate 164 // This call LSUserIdentity::authenticate() (application/core/LSUserIdentity.php)) 165 // which will call the plugin function newUserSession() (eg: Authdb::newUserSession() ) 166 // TODO: for sake of clarity, the plugin function should be renamed to authenticate(). 167 if ($identity->authenticate()) { 168 FailedLoginAttempt::model()->deleteAttempts(FailedLoginAttempt::TYPE_LOGIN); 169 App()->user->setState('plugin', $authMethod); 170 171 Yii::app()->session['just_logged_in'] = true; 172 Yii::app()->session['loginsummary'] = self::getSummary(); |
#5 |
+
–
/home/limesurvey.shnoulle.net/www/application/controllers/admin/Authentication.php(51): Authentication::prepareLogin() 46 } 47 // The page should be shown only for non logged in users 48 $this->redirectIfLoggedIn(); 49 50 // Result can be success, fail or data for template 51 $result = self::prepareLogin(); 52 53 $isAjax = isset($_GET['ajax']) && $_GET['ajax'] == 1; 54 $succeeded = isset($result[0]) && $result[0] == 'success'; 55 $failed = isset($result[0]) && $result[0] == 'failed'; 56 |
#6 |
unknown(0): Authentication->index()
|
#7 |
+
–
/home/limesurvey.shnoulle.net/www/vendor/yiisoft/yii/framework/web/actions/CAction.php(115): ReflectionMethod->invokeArgs() 110 elseif($param->isDefaultValueAvailable()) 111 $ps[]=$param->getDefaultValue(); 112 else 113 return false; 114 } 115 $method->invokeArgs($object,$ps); 116 return true; 117 } 118 } |
#8 |
+
–
/home/limesurvey.shnoulle.net/www/application/core/SurveyCommonAction.php(83): CAction->runWithParamsInternal() 78 $oMethod = new ReflectionMethod($this, $sDefault); 79 } 80 81 // We're all good to go, let's execute it 82 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 83 return parent::runWithParamsInternal($this, $oMethod, $params); 84 } 85 86 /** 87 * Some functions have different parameters, which are just an alias of the 88 * usual parameters we're getting in the url. This function just populates |
#9 |
+
–
/home/limesurvey.shnoulle.net/www/vendor/yiisoft/yii/framework/web/CController.php(308): SurveyCommonAction->runWithParams() 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#10 |
+
–
/home/limesurvey.shnoulle.net/www/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction() 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#11 |
+
–
/home/limesurvey.shnoulle.net/www/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters() 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#12 |
+
–
/home/limesurvey.shnoulle.net/www/application/controllers/AdminController.php(202): CController->run() 197 } 198 199 $this->runModuleController($action); 200 201 202 return parent::run($action); 203 } 204 205 /** 206 * Starting with LS4, 3rd party developer can extends any of the LimeSurve controllers. 207 * |
#13 |
+
–
/home/limesurvey.shnoulle.net/www/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): AdminController->run() 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#14 |
+
–
/home/limesurvey.shnoulle.net/www/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController() 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#15 |
+
–
/home/limesurvey.shnoulle.net/www/vendor/yiisoft/yii/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#16 |
+
–
/home/limesurvey.shnoulle.net/www/index.php(161): CApplication->run() 156 require_once APPPATH . 'core/LSYii_Application' . EXT; 157 158 $config = require_once(APPPATH . 'config/internal' . EXT); 159 160 Yii::$enableIncludePath = false; 161 Yii::createApplication('LSYii_Application', $config)->run(); 162 163 /* End of file index.php */ 164 /* Location: ./index.php */ |