| /dokuwiki/lib/plugins/authplain/ |
| H A D | auth.php | 13 * @author Jan Schumann <js@schumann-it.com> 18 protected $users; variable in auth_plugin_authplain 39 if (!@is_readable($config_cascade['plainauth.users']['default'])) { 40 $this->success = false; 42 if (@is_writable($config_cascade['plainauth.users']['default'])) { 43 $this->cando['addUser'] = true; 44 $this->cando['delUser'] = true; 45 $this->cando['modLogin'] = true; 46 $this->cando['modPass'] = true; 47 $this->cando['modName'] = true; [all …]
|
| /dokuwiki/lib/plugins/authpdo/_test/ |
| H A D | sqlite.test.php | 34 … $this->markTestSkipped('skipping all authpdo tests for sqlite. Need PDO_sqlite extension'); 36 $this->assertTrue(true); // avoid being marked as risky for having no assertion 41 $this->dbfile = tempnam('/tmp/', 'pluginpdo_test_'); 42 copy(__DIR__ . '/test.sqlite3', $this->dbfile); 47 $conf['plugin']['authpdo']['dsn'] = 'sqlite:' . $this->dbfile; 51 …$conf['plugin']['authpdo']['select-user'] = 'SELECT id AS uid, login AS user, name, pass AS clear,… 52 …$conf['plugin']['authpdo']['select-user-groups'] = 'SELECT * FROM member AS m, "group" AS g WHERE… 53 $conf['plugin']['authpdo']['select-groups'] = 'SELECT id AS gid, "group" FROM "group"'; 55 …$conf['plugin']['authpdo']['insert-user'] = 'INSERT INTO user (login, pass, name, mail) VALUES (:u… 56 $conf['plugin']['authpdo']['delete-user'] = 'DELETE FROM user WHERE id = :uid'; [all …]
|
| H A D | mysql.test.php | 20 $configuration = DOKU_UNITTEST . "{$this->driver}.conf.php"; 26 $this->host = $conf['host']; 27 $this->user = $conf['user']; 28 $this->pass = $conf['pass']; 29 $this->port = $conf['port']; 39 $this->dropDatabase(); 46 if(!$this->host || !$this->user) { 47 $this->markTestSkipped("Skipped {$this->driver} tests. Missing configuration"); 50 $this->markTestSkipped("Skipped {$this->driver} tests. Missing PDO extension"); 52 if(!in_array($this->driver, pdo_drivers())) { [all …]
|
| /dokuwiki/lib/plugins/usermanager/_test/ |
| H A D | csv_import.test.php | 15 * At present, users imported in individual tests remain in the user list for subsequent tests 25 $this->importfile = tempnam(TMP_DIR, 'csv'); 27 $this->old_files = $_FILES; 31 'tmp_name' => $this->importfile, 38 $this->usermanager = new admin_mock_usermanager(); 44 $_FILES = $this->old_files; 51 $before_users = $auth->retrieveUsers(); 53 io_saveFile($this->importfile, $importCsv); 54 $result = $this->usermanager->tryImport(); 56 $after_users = $auth->retrieveUsers(); [all …]
|
| /dokuwiki/lib/plugins/authpdo/_test/mysql/ |
| H A D | fluxbb.php | 10 'select-user' => ' 19 'select-user-groups' => ' 25 'select-groups' => ' 29 'insert-user' => ' 34 'delete-user' => ' 38 'list-users' => ' 50 'count-users' => ' 51 SELECT COUNT(DISTINCT username) AS `count` 59 'update-user-info' => '', // we can't do this because username = displayname 60 'update-user-login' => ' [all …]
|
| H A D | wordpress.php | 12 'select-user' => ' 21 'select-user-groups' => ' 27 'select-groups' => '', 28 'insert-user' => '', 29 'delete-user' => '', 30 'list-users' => ' 43 'count-users' => ' 44 SELECT COUNT(DISTINCT user_login) as `count` 53 'update-user-info' => ' 59 'update-user-login' => ' [all …]
|
| H A D | mybb.php | 13 'select-user' => ' 21 'check-pass' => ' 27 'select-user-groups' => ' 35 'select-groups' => ' 39 'insert-user' => ' 45 'delete-user' => ' 49 'list-users' => ' 62 'count-users' => ' 63 SELECT COUNT(U.username) AS `count` 72 'update-user-info' => ' [all …]
|
| /dokuwiki/lib/plugins/usermanager/ |
| H A D | cli.php | 22 $options->setHelp( 23 "Manage users for this DokuWiki instance\n" 27 $options->registerCommand('list', 'List users'); 28 $options->registerOption('verbose', 'Show detailed user information', 'v', false, 'list'); 31 $options->registerCommand('add', 'Add an user to auth backend'); 32 $options->registerArgument('login', 'Username', true, 'add'); 33 $options->registerArgument('mail', 'Email address', true, 'add'); 34 $options->registerArgument('name', 'Full name', false, 'add'); 35 $options->registerArgument('groups', 'Groups to be added, comma-seperated', false, 'add'); 36 $options->registerArgument('password', 'Password to set', false, 'add'); [all …]
|
| H A D | admin.php | 29 protected $users_total = 0; // number of registered users 33 protected $pagesize = 20; // number of users to list on one page 48 $this->setupLocale(); 51 $this->disabled = $this->lang['noauth']; 52 } elseif (!$auth->canDo('getUsers')) { 53 $this->disabled = $this->lang['nosupport']; 56 $this->auth = &$auth; 61 $this->import_failures = $_SESSION['import_failures']; 74 if (!is_null($this->auth)) 77 return $this->getLang('menu') . ' ' . $this->disabled; [all …]
|
| /dokuwiki/lib/plugins/authpdo/_test/pgsql/ |
| H A D | django.php | 10 'select-user' => ' 19 'select-user-groups' => ' 25 'select-groups' => ' 29 'insert-user' => ' 34 'delete-user' => ' 41 'list-users' => ' 54 'count-users' => ' 55 SELECT COUNT(DISTINCT U.username) AS count 64 'update-user-info' => ' 71 'update-user-login' => ' [all …]
|
| /dokuwiki/lib/plugins/authpdo/ |
| H A D | auth.php | 10 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html 33 $this->debugMsg('PDO extension for PHP not found.', -1, __LINE__); 34 $this->success = false; 38 if (!$this->getConf('dsn')) { 39 $this->debugMsg('No DSN specified', -1, __LINE__); 40 $this->success = false; 45 $this->pdo = new PDO( 46 $this->getConf('dsn'), 47 $this->getConf('user'), 48 conf_decodeString($this->getConf('pass')), [all …]
|
| /dokuwiki/lib/plugins/authpdo/conf/ |
| H A D | default.php | 20 $conf['select-user'] = ''; 28 $conf['check-pass'] = ''; 36 $conf['select-user-groups'] = ''; 43 $conf['select-groups'] = ''; 50 $conf['insert-user'] = ''; 57 $conf['delete-user'] = ''; 67 $conf['list-users'] = ''; 70 * count user names matching the given criteria 75 * out: count 77 $conf['count-users'] = ''; [all …]
|
| H A D | metadata.php | 13 $meta['select-user'] = array('', '_caution' => 'danger'); 14 $meta['check-pass'] = array('', '_caution' => 'danger'); 15 $meta['select-user-groups'] = array('', '_caution' => 'danger'); 16 $meta['select-groups'] = array('', '_caution' => 'danger'); 17 $meta['insert-user'] = array('', '_caution' => 'danger'); 18 $meta['delete-user'] = array('', '_caution' => 'danger'); 19 $meta['list-users'] = array('', '_caution' => 'danger'); 20 $meta['count-users'] = array('', '_caution' => 'danger'); 21 $meta['update-user-info'] = array('', '_caution' => 'danger'); 22 $meta['update-user-login'] = array('', '_caution' => 'danger'); [all …]
|
| /dokuwiki/lib/plugins/authad/ |
| H A D | auth.php | 42 * @link http://www.nosq.com/blog/2005/08/ldap-activedirectory-and-dokuwiki/ 44 * @author Jan Schumann <js@schumann-it.com> 66 protected $users = []; variable in auth_plugin_authad 69 * @var array filter patterns for listing users 87 $this->loadConfig(); 90 if (isset($this->conf['additional'])) { 91 $this->conf['additional'] = str_replace(' ', '', $this->conf['additional']); 92 $this->conf['additional'] = explode(',', $this->conf['additional']); 93 } else $this->conf['additional'] = []; 97 if ($this->conf['debug']) [all …]
|
| /dokuwiki/lib/plugins/authad/adLDAP/classes/ |
| H A D | adLDAPGroups.php | 12 * Copyright (c) 2006-2012 Scott Barnett, Richard Hyland 31 * @copyright (c) 2006-2012 Scott Barnett, Richard Hyland 32 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html LGPLv2.1 54 $this->adldap = $adldap; 67 $parentGroup = $this->ginfo($parent, array("cn")); 74 $childGroup = $this->info($child, array("cn")); 83 $result = @ldap_mod_add($this->adldap->getLdapConnection(), $parentDn, $add); 104 $userDn = $this->adldap->user()->dn($user, $isGUID); 110 $groupInfo = $this->info($group, array("cn")); 119 $result = @ldap_mod_add($this->adldap->getLdapConnection(), $groupDn, $add); [all …]
|
| H A D | adLDAPUsers.php | 12 * Copyright (c) 2006-2012 Scott Barnett, Richard Hyland 31 * @copyright (c) 2006-2012 Scott Barnett, Richard Hyland 32 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html LGPLv2.1 54 $this->adldap = $adldap; 66 return $this->adldap->authenticate($username, $password, $preventRebind); 87 …if (array_key_exists("password",$attributes) && (!$this->adldap->getUseSSL() && !$this->adldap->ge… 96 $add = $this->adldap->adldap_schema($attributes); 112 $add["userAccountControl"][0] = $this->accountControl($control_options); 119 …$result = @ldap_add($this->adldap->getLdapConnection(), "CN=" . $add["cn"][0] . ", " . $container … 173 $userinfo = $this->info($username, array("*"), $isGUID); [all …]
|
| H A D | adLDAPContacts.php | 12 * Copyright (c) 2006-2012 Scott Barnett, Richard Hyland 31 * @copyright (c) 2006-2012 Scott Barnett, Richard Hyland 32 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html LGPLv2.1 52 $this->adldap = $adldap; 74 $add = $this->adldap->adldap_schema($attributes); 91 …($this->adldap->getLdapConnection(), "CN=" . $this->adldap->utilities()->escapeCharacters($add["cn… 109 …if ($recursive === NULL) { $recursive = $this->adldap->getRecursiveGroups(); } //use the default o… 110 if (!$this->adldap->getLdapBind()){ return false; } 113 $info = @$this->info($distinguishedName, array("memberof", "primarygroupid")); 114 …$groups = $this->adldap->utilities()->niceNames($info[0]["memberof"]); //presuming the entry retur… [all …]
|
| /dokuwiki/inc/Subscriptions/ |
| H A D | BulkSubscriptionSender.php | 27 if (!$subscriberManager->isenabled()) { 37 $count = 0; 39 $subscriptions = $subscriberManager->subscribers($page, null, ['digest', 'list']); 43 $olduser = $INPUT->server->str('REMOTE_USER'); 45 foreach ($subscriptions as $target => $users) { 46 if (!$this->lock($target)) { 50 foreach ($users as $user => $info) { 61 $USERINFO = $auth->getUserData($user); 62 $INPUT->server->set('REMOTE_USER', $user); 89 ($INPUT->server->str('REMOTE_USER') === $rev['user'] || [all …]
|
| /dokuwiki/lib/plugins/authldap/ |
| H A D | auth.php | 13 * @author Jan Schumann <js@schumann-it.com> 23 /* @var array $users User data cache */ 24 protected $users; variable in auth_plugin_authldap 38 $this->debug("LDAP err: PHP LDAP extension not found.", -1, __LINE__, __FILE__); 39 $this->success = false; 44 $this->cando['modPass'] = $this->getConf('modPass'); 63 if (!$this->openLDAP()) return false; 66 if ($this->getConf('binddn') && $this->getConf('bindpw')) { 68 …if (!@ldap_bind($this->con, $this->getConf('binddn'), conf_decodeString($this->getConf('bindpw')))… 69 … $this->debug('LDAP bind as superuser: ' . hsc(ldap_error($this->con)), 0, __LINE__, __FILE__); [all …]
|
| /dokuwiki/inc/Extension/ |
| H A D | AuthPlugin.php | 8 * allows to authenticate users in a plugin 12 * @author Jan Schumann <js@jschumann-it.com> 24 'addUser' => false, // can Users be created? 25 'delUser' => false, // can Users be deleted? 31 'getUsers' => false, // can a (filtered) list of users be retrieved? 32 'getUserCount' => false, // can the number of users be retrieved? 42 * able to operate. Set capabilities in $this->cando 48 * Set $this->success to false if checks fail 68 return array_keys($this->cando); 74 * Checks the capabilities set in the $this->cando array and [all …]
|
| /dokuwiki/inc/ |
| H A D | farm.php | 75 for ($i = count($uri) - 1; $i > 0; $i--) { 76 for ($j = count($server); $j > 0; $j--) { 77 $dir = implode('.', array_slice($server, -$j)) . implode('.', array_slice($uri, 0, $i)); 140 'plainauth.users' => [ 141 'default' => DOKU_CONF . 'users.auth.php'
|
| H A D | infoutils.php | 43 if ($lm < time() - (60 * 60 * 24) || $lm < @filemtime(DOKU_INC . DOKU_SCRIPT)) { 53 $http->timeout = 12; 54 $resp = $http->get(DOKU_MESSAGEURL . $updateVersion); 60 Logger::debug("checkUpdateMessages(): unexpected HTTP response received", $http->error); 94 $commitInfo = shell_exec("git log -1 --pretty=format:'%h %cd' --date=short"); 102 // we cannot use git on the shell -- let's do it manually! 112 $packedRefs = file_get_contents(DOKU_INC . '.git/packed-refs'); 133 if ($ts && $date = date('Y-m-d', $ts)) { 151 * last commit. SHA is the short SHA of the last commit - this is only added on 157 * @return string The version string e.g. "Release 2023-04-04a" [all …]
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/ |
| H A D | Random.php | 19 * @license http://www.opensource.org/licenses/mit-license.html MIT License 26 * Pure-PHP Random Number Generator 61 // at this point we have no choice but to use a pure-PHP CSPRNG 73 … // by the user and (2) this isn't just looking at the data sent by the current user - it's based 74 … // on the data sent by all users. one user requests the page and a hash of their info is saved. 107 if (!isset($_SESSION['count'])) { 108 $_SESSION['count'] = 0; 110 $_SESSION['count']++; 134 // http://tools.ietf.org/html/rfc4253#section-7.2 166 $crypto->setKey(substr($key, 0, $crypto->getKeyLength() >> 3)); [all …]
|
| /dokuwiki/inc/Ui/ |
| H A D | Recent.php | 28 $this->first = $first; 29 $this->show_changes = $show_changes; 36 * @author Matthias Grimm <matthiasgrimm@users.sourceforge.net> 49 $first = $this->first; 51 $recents = $this->getRecents($first, $hasNext); 64 $form->addTagOpen('div')->addClass('no'); 65 $form->setHiddenField('sectok', null); 66 $form->setHiddenField('do', 'recent'); 67 $form->setHiddenField('id', $ID); 71 $this->addRecentItemSelector($form); [all …]
|
| /dokuwiki/lib/plugins/acl/ |
| H A D | admin.php | 41 return $this->getLang('admin_acl'); 71 if ($INPUT->str('ns') == '*') { 72 $this->ns = '*'; 74 $this->ns = cleanID($INPUT->str('ns')); 77 if ($INPUT->str('current_ns')) { 78 $this->current_item = ['id' => cleanID($INPUT->str('current_ns')), 'type' => 'd']; 79 } elseif ($INPUT->str('current_id')) { 80 $this->current_item = ['id' => cleanID($INPUT->str('current_id')), 'type' => 'f']; 81 } elseif ($this->ns) { 82 $this->current_item = ['id' => $this->ns, 'type' => 'd']; [all …]
|