| /dokuwiki/lib/plugins/authpdo/_test/ |
| H A D | mysql.test.php | 113 * @param auth_plugin_authpdo $auth 116 protected function runGeneralTests(auth_plugin_authpdo $auth, $users) { argument 118 $info = 'DSN: ' . $auth->getConf('dsn'); 119 $this->assertTrue($auth->success, $info); 121 if($auth->canDo('getUsers')) { 122 $list = $auth->retrieveUsers(); 126 if($auth->canDo('getGroups')) { 127 $list = $auth->retrieveGroups(); 131 if($auth->canDo('getUserCount')) { 132 $count = $auth->getUserCount(); [all …]
|
| H A D | sqlite.test.php | 97 $auth = new testable_auth_plugin_authpdo(); 99 $groups = $auth->selectGroups(); 105 $ok = $auth->addGroup('test'); 107 $groups = $auth->selectGroups(); 117 $auth = new auth_plugin_authpdo(); 120 $this->assertFalse($auth->checkPass('nobody', 'nope')); 121 $this->assertFalse($auth->checkPass('admin', 'nope')); 122 $this->assertTrue($auth->checkPass('admin', 'password')); 126 $this->assertFalse($auth->checkPass('admin', 'password')); 127 $this->assertFalse($auth->checkPass('user', md5('password'))); [all …]
|
| /dokuwiki/lib/plugins/usermanager/_test/ |
| H A D | RemoteApiTest.php | 41 global $auth; 42 $auth = new AuthPlugin(); 60 $this->assertArrayHasKey('user1', $auth->users); 70 global $auth; 71 $auth = new AuthPlugin(); 94 global $auth; 95 $auth = new AuthPlugin(); 118 global $auth; 119 $auth = new AuthPlugin(); 142 global $auth; [all …]
|
| H A D | csv_import.test.php | 50 global $auth; 51 $before_users = $auth->retrieveUsers(); 56 $after_users = $auth->retrieveUsers(); 77 global $auth; 78 $oldauth = $auth; 80 $auth = new auth_mock_authplain(); 81 $auth->setCanDo('addUser', false); 89 $auth = $oldauth;
|
| /dokuwiki/lib/plugins/authplain/_test/ |
| H A D | escaping.test.php | 20 protected $auth; variable in helper_plugin_authplain_escaping_test 23 /* auth caches data loaded from file, but recreated object forces reload */ 24 $this->auth = new auth_plugin_authplain(); 45 $this->auth->createUser("mwuser", "12345", "Mediawiki User", "me@example.com"); 47 $this->assertTrue($this->auth->checkPass("mwuser", "12345")); 48 $mwuser = $this->auth->getUserData("mwuser"); 55 $this->auth->createUser("colonuser", "password", $name, "me@example.com"); 57 $user = $this->auth->getUserData("colonuser"); 63 $this->auth->createUser("slashuser", "password", $name, "me@example.com"); 65 $user = $this->auth->getUserData("slashuser"); [all …]
|
| H A D | userdata.test.php | 13 protected $auth; variable in userdata_test 16 * Load auth with test conf 23 $config_cascade['plainauth.users']['default'] = __DIR__ . '/conf/auth.users.php'; 24 $this->auth = new auth_plugin_authplain(); 33 $actual = $this->auth->retrieveGroups(); 43 $actual = $this->auth->retrieveGroups(0, 2); 47 $actual = $this->auth->retrieveGroups(0, 20); 57 $actual = $this->auth->retrieveGroups(3,10); 61 $actual = $this->auth->retrieveGroups(10,3);
|
| /dokuwiki/lib/plugins/usermanager/ |
| H A D | remote.php | 20 * by the auth backend a return value of `false` is returned. You need to check this return 34 * @todo handle error messages from auth backend 42 /** @var AuthPlugin $auth */ 43 global $auth; 45 if (!$auth->canDo('addUser')) { 47 sprintf('Authentication backend %s can\'t do addUser', $auth->getPluginName()), 52 $user = trim($auth->cleanUser($user)); 72 $ok = (bool)$auth->triggerUserMod('create', [$user, $password, $name, $mail, $groups]); 90 * @todo handle error messages from auth backend 98 global $auth; [all …]
|
| H A D | cli.php | 31 $options->registerCommand('add', 'Add an user to auth backend'); 40 $options->registerCommand('delete', 'Deletes user(s) from auth backend'); 59 /** @var AuthPlugin $auth */ 60 global $auth; 62 if (!$auth instanceof AuthPlugin) { 98 /** @var AuthPlugin $auth */ 99 global $auth; 101 if (!$auth->canDo('getUsers')) { 118 /** @var AuthPlugin $auth */ 119 global $auth; [all …]
|
| H A D | admin.php | 14 * objectified version of auth system 28 protected $auth; // auth object variable in admin_plugin_usermanager 45 /** @var AuthPlugin $auth */ 46 global $auth; 50 if (!$auth instanceof AuthPlugin) { 52 } elseif (!$auth->canDo('getUsers')) { 56 $this->auth = &$auth; 74 if (!is_null($this->auth)) 122 if (is_null($this->auth)) return false; 169 …$this->users_total = $this->auth->canDo('getUserCount') ? $this->auth->getUserCount($this->filter)… [all …]
|
| /dokuwiki/lib/plugins/authad/ |
| H A D | action.php | 38 /** @var auth_plugin_authad $auth */ 39 global $auth; 40 if (!is_a($auth, 'auth_plugin_authad')) return; // AD not even used 43 $usr = $auth->cleanUser($event->data['user']); 44 $dom = $auth->getUserDomain($usr); 62 /** @var auth_plugin_authad $auth */ 63 global $auth; 64 if (!is_a($auth, 'auth_plugin_authad')) return; // AD not even used 65 $domains = $auth->getConfiguredDomains(); 77 $usr = $auth->cleanUser($INPUT->str('u')); [all …]
|
| /dokuwiki/_test/tests/inc/ |
| H A D | auth_deleteprofile.test.php | 13 * 3,4. Auth plugin can prevent & wiki config can prevent 20 global $ACT, $INPUT, $conf, $auth; 37 $auth = new AuthDeletePlugin(); 40 $this->assertTrue($auth->loggedOff); 45 global $ACT, $INPUT, $conf, $auth; 63 $auth = new AuthDeletePlugin(); 76 global $ACT, $INPUT, $conf, $auth; 93 $auth = new AuthDeletePlugin(false); 100 global $ACT, $INPUT, $conf, $auth; 117 $auth = new AuthDeletePlugin(); [all …]
|
| H A D | auth_admincheck.test.php | 14 global $auth; 15 $this->oldauth = $auth; 20 global $auth; 21 $auth = new AuthPlugin(); 26 global $auth; 27 $auth = new AuthCaseInsensitivePlugin(); 36 global $auth; 37 $auth = new \auth_plugin_authplain(); 46 global $auth; 47 $auth = new \auth_plugin_authplain(); [all …]
|
| /dokuwiki/inc/ |
| H A D | auth.php | 27 * Initialize the auth system. 31 * This used to be the main() of the auth.php 41 /* @var AuthPlugin $auth */ 42 global $auth; 58 // try to load auth backend from plugins 59 foreach ($plugin_controller->getList('auth') as $plugin) { 61 $auth = $plugin_controller->load('auth', $plugin); 66 if (!$auth instanceof AuthPlugin) { 71 if ($auth->success == false) { 73 $auth = null; [all …]
|
| H A D | media.php | 64 * @param int $auth permission level 68 function media_metasave($id, $auth, $data) argument 70 if ($auth < AUTH_UPLOAD) return false; 149 * @param int $auth permission level 152 function media_metaform($id, $auth) argument 156 if ($auth < AUTH_UPLOAD) { 251 * @param int $auth no longer used 258 function media_delete($id, $auth) argument 261 $auth = auth_quickaclcheck(ltrim(getNS($id) . ':*', ':')); 262 if ($auth < AUTH_DELETE) return DOKU_MEDIA_NOT_AUTH; [all …]
|
| /dokuwiki/lib/plugins/config/core/Setting/ |
| H A D | SettingAuthtype.php | 16 // retrieve auth types provided by plugins 17 foreach ($plugin_controller->getList('auth') as $plugin) { 36 $auth_plugin = $plugin_controller->load('auth', $input); 41 msg('Cannot load Auth Plugin "' . $input . '"', -1); 48 msg('Cannot create Auth Plugin "' . $input . '"', -1); 52 // did we change the auth type? logout
|
| /dokuwiki/inc/Action/ |
| H A D | Resendpwd.php | 31 /** @var AuthPlugin $auth */ 32 global $auth; 36 if (!$auth->canDo('modPass')) throw new ActionDisabledException(); 59 * - validating the password reset auth token 71 /* @var AuthPlugin $auth */ 72 global $auth; 100 $userinfo = $auth->getUserData($user, $requireGroups = false); 117 if (!$auth->triggerUserMod('modify', [$user, ['pass' => $pass]])) { 123 if (!$auth->triggerUserMod('modify', [$user, ['pass' => $pass]])) { 146 $user = trim($auth->cleanUser($INPUT->post->str('login'))); [all …]
|
| H A D | Register.php | 31 /** @var AuthPlugin $auth */ 32 global $auth; 35 if (!$auth->canDo('addUser')) throw new ActionDisabledException(); 41 if (register()) { // FIXME could be moved from auth to here
|
| H A D | ProfileDelete.php | 29 /** @var AuthPlugin $auth */ 30 global $auth; 31 if (!$auth->canDo('delUser')) throw new ActionDisabledException();
|
| H A D | Profile.php | 31 /** @var AuthPlugin $auth */ 32 global $auth; 33 if (!$auth->canDo('Profile')) throw new ActionDisabledException();
|
| H A D | Logout.php | 29 /** @var AuthPlugin $auth */ 30 global $auth; 31 if (!$auth->canDo('logout')) throw new ActionDisabledException();
|
| H A D | AbstractAclAction.php | 22 global $auth; 24 if (!$auth instanceof AuthPlugin) throw new ActionAclRequiredException();
|
| /dokuwiki/_test/tests/Remote/ |
| H A D | ApiCoreAclCheckTest.php | 20 global $auth; 22 /* auth caches data loaded from file, but recreated object forces reload */ 23 $auth = new \auth_plugin_authplain(); 66 /** @var auth_plugin_authplain $auth */ 67 global $auth; 82 $auth->createUser("user1", "54321", "a User", "you@example.com"); 83 $auth->createUser("user2", "543210", "You", "he@example.com"); 84 …$auth->createUser("mwuser", "12345", "Wiki User", "me@example.com", ['more']); //not in default gr…
|
| /dokuwiki/lib/exe/ |
| H A D | detail.php | 9 global $INPUT, $INFO, $IMG, $ID, $REV, $SRC, $ERROR, $AUTH; 29 $AUTH = auth_quickaclcheck($IMG); variable 30 if ($AUTH >= AUTH_READ) { 39 // no auth
|
| H A D | mediamanager.php | 41 $AUTH = $INFO['perm']; // shortcut for historical reasons variable 52 if ($AUTH < AUTH_READ && !$fullscreen) { 60 $JUMPTO = media_upload($NS, $AUTH); 83 $JUMPTO = media_upload($NS, $AUTH); 89 $JUMPTO = media_metasave($IMG, $AUTH, $INPUT->arr('meta')); 93 $JUMPTO = media_metasave($IMG, $AUTH, $INPUT->arr('meta')); 99 $JUMPTO = media_restore($INPUT->str('image'), $REV, $AUTH); 106 $res = media_delete($DEL, $AUTH);
|
| /dokuwiki/conf/ |
| H A D | acl.auth.php.dist | 1 # acl.auth.php 10 # If your auth backend allows special char like spaces in groups
|