| #
9c952d3b |
| 01-Aug-2025 |
Andreas Gohr <andi@splitbrain.org> |
run passcrypt when user does not exist #4491
This will automatically use the configured password hashing method, thus matching what existing users most likely have for their hash as well.
|
| #
b346670e |
| 09-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
correctly escape comments in user names. fixes #4099
|
| #
90fb952c |
| 31-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
code style: operator spacing
|
| #
177d6836 |
| 31-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
coding style: control flow whitespaces
|
| #
8553d24d |
| 30-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
Apply rector renames
|
| #
ab9790ca |
| 29-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
Apply rector fixes to auth plugins
|
| #
93497020 |
| 13-Feb-2023 |
Andreas Gohr <andi@splitbrain.org> |
AuthPlain user parsing fix. #3833
This removes workarounds we had for old PCRE versions. All modern PHP releases should be workable with the Regex we have.
If splitting the user line results in les
AuthPlain user parsing fix. #3833
This removes workarounds we had for old PCRE versions. All modern PHP releases should be workable with the Regex we have.
If splitting the user line results in less than 5 results, we log an error and pad the result for further use.
show more ...
|
| #
5f18fdf3 |
| 14-Dec-2021 |
Andreas Gohr <andi@splitbrain.org> |
authplain: properly clean user names
The authplain module uses cleanID to clean usernames to make them valid pagenames. However namespaces should not be used in usernames.
For that cleanUser and cl
authplain: properly clean user names
The authplain module uses cleanID to clean usernames to make them valid pagenames. However namespaces should not be used in usernames.
For that cleanUser and cleanGroup replaced columns in given names. But depending on the wiki configuration useslash, semicolons and slashes may also be used as namespace separators. cleanID would replace those with colons, reintroducing colons into the names.
The problem was reported in a forum post where spammers tried to register http addresses as user names:
https://forum.dokuwiki.org/d/19796-spammers-with-in-their-name
Users with colons were correctly saved (the colon is escaped in the user file) but could probably not login (unless using a slash or semicolon instead of the colon). Since usernames are cleaned in many places in DokuWiki, such a logged in user was probably not recognized correctly.
Because of the proper colon escaping when saving the user file, I don't see any security issue arising from this. Eg. it was not possible to trip up the user loading mechanism.
Note: Previously created users containing colons can not be deleted via the user manager, because displayed usernames are cleaned again, which will remove the colons.
show more ...
|
| #
59440086 |
| 08-Oct-2020 |
Andreas Gohr <andi@splitbrain.org> |
refresh user cache in plain auth on user modifying
When a user login was renamed, the user appeared twice. Once as the old user and once as the new user.
|
| #
0489c64b |
| 16-Aug-2020 |
Moisés Braga Ribeiro <moisesbr@gmail.com> |
Changes according to revisions in https://github.com/moisesbr-dw/dokuwiki/pull/2
Many minor details and use of Sort::xyz() instead of intl_xyz() in files outside the "inc" folder.
|
| #
8371b182 |
| 20-May-2020 |
Moisés Braga Ribeiro <moisesbr@gmail.com> |
Authorization plugins
[enhancement] group sorting in authplain
|
| #
42c62e55 |
| 14-Jul-2019 |
Andreas Gohr <andi@splitbrain.org> |
fixed merge error
|
| #
2b9c4a05 |
| 14-Jul-2019 |
Andreas Gohr <andi@splitbrain.org> |
Merge branch 'master' into psr2
* master: (34 commits) fix color for noninstalled extensions show disabled extensions in gray warn about inaccessible repo api bugfix: access check was never
Merge branch 'master' into psr2
* master: (34 commits) fix color for noninstalled extensions show disabled extensions in gray warn about inaccessible repo api bugfix: access check was never cached First go on a CLI component for the extension manager use strict type comparison translation update translation update fix #dokuwiki__sitetools current item not in highlight due to Greebo change authplain: Add tests for group retrieval authplain: Add a simple method for retrieving user groups translation update Negative string offsets are allowed in PHP 7.1+ only improve memory check output fix and test php_to_byte() related to #2756 #2556 translation update translation update translation update translation update translation update ...
show more ...
|
| #
b2fcc742 |
| 30-Apr-2019 |
Anna Dabrowska <dabrowska@cosmocode.de> |
authplain: Add a simple method for retrieving user groups
|
| #
5aa905e9 |
| 11-May-2018 |
Andreas Gohr <andi@splitbrain.org> |
PSR-2 for authplain plugin
|
| #
64159a61 |
| 27-Apr-2018 |
Andreas Gohr <andi@splitbrain.org> |
line lengths shortened
This makes sure all files use line lenghts shorter than 120 characters.
This is a quick fix. It might not always be the nicest change.
|
| #
b4f2363a |
| 27-Apr-2018 |
Andreas Gohr <andi@splitbrain.org> |
remove DOKU_INC checks
There is no need for this check, since these files should not have any main code that is executed on direct call.
Fixes PSR1.Files.SideEffects.FoundWithSymbols
|
| #
80cf2ac2 |
| 22-Jun-2016 |
Andreas Gohr <gohr@cosmocode.de> |
removed wrong comment - str_getcsv isn't powerful enough
See https://github.com/splitbrain/dokuwiki/issues/1535#issuecomment-227039700
|
| #
42cbd322 |
| 19-Apr-2016 |
Andreas Gohr <gohr@cosmocode.de> |
Add a protected file to the authplain config cascade
This adds the possibility to define file with protected users in the config cascade to be used with the plain auth mechanism.
This makes it poss
Add a protected file to the authplain config cascade
This adds the possibility to define file with protected users in the config cascade to be used with the plain auth mechanism.
This makes it possible for farms to have way to inherit Farmer users in animals.
show more ...
|
| #
d0d224a8 |
| 08-May-2015 |
Patrick Brown <ptbrown@whoopdedo.org> |
Merge branch 'master' into ioreplaceinfile
|
| #
699e3c49 |
| 07-May-2015 |
Patrick Brown <ptbrown@whoopdedo.org> |
Use io_replaceInFile for updating auth
|
| #
db9faf02 |
| 06-May-2015 |
Patrick Brown <ptbrown@whoopdedo.org> |
Report more meaningful errors when an auth backend fails. closes #1093
|
| #
79e79377 |
| 07-Jan-2015 |
Andreas Gohr <gohr@cosmocode.de> |
Remove error supression for file_exists()
In an older version of PHP a file_exists() call would issue a warning when the file did not exist. This was fixed in later PHP releases. Since we require PH
Remove error supression for file_exists()
In an older version of PHP a file_exists() call would issue a warning when the file did not exist. This was fixed in later PHP releases. Since we require PHP 5.3 now, there's no need to supress any error here anymore. This might even give a minor performance boost.
show more ...
|
| #
8702de7f |
| 09-Dec-2014 |
Gerrit Uitslag <klapinklapin@gmail.com> |
Merge remote-tracking branch 'origin/master' into scrutinizerissues
Conflicts: inc/media.php inc/plugin.php inc/template.php lib/plugins/authplain/_test/escaping.test.php lib/plugins/syntax.php
|
| #
9d846ff4 |
| 04-Oct-2014 |
Christopher Smith <chris@jalakai.co.uk> |
escaping backslash should be included in split items
|