Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker-dbp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dbis-public
docker-dbp
Commits
2d937cd0
Commit
2d937cd0
authored
5 years ago
by
Mario Wenzel
Browse files
Options
Downloads
Patches
Plain Diff
nolock plugin
parent
54c779a3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docker-compose.yml
+5
-0
5 additions, 0 deletions
docker-compose.yml
src/Dockerfile
+4
-0
4 additions, 0 deletions
src/Dockerfile
src/account-nolock-plugin.php
+17
-0
17 additions, 0 deletions
src/account-nolock-plugin.php
with
26 additions
and
0 deletions
docker-compose.yml
+
5
−
0
View file @
2d937cd0
...
...
@@ -17,6 +17,11 @@ services:
adminer
:
image
:
adminer:4.7.6
build
:
context
:
./src
dockerfile
:
Dockerfile
environment
:
-
ADMINER_PLUGINS=account-nolock-plugin
restart
:
always
ports
:
-
8085:8080
This diff is collapsed.
Click to expand it.
src/Dockerfile
0 → 100644
+
4
−
0
View file @
2d937cd0
from
adminer:4.7.3
USER
root:root
COPY
account-nolock-plugin.php /var/www/html/plugins/
USER
adminer:adminer
This diff is collapsed.
Click to expand it.
src/account-nolock-plugin.php
0 → 100644
+
17
−
0
View file @
2d937cd0
<?php
/** Disable account locking
*/
class
AdminerNolock
{
function
bruteForceKey
()
{
// Return high resolution time
// to get for each call a different key.
// This effectively disables the locking mechanism
// that forces a wait time of 30 min after 30 failed
// login attempts. This could is needed in class room situations
// with all clients accessing adminer through the same IP
// to prevent locking adminer by single students.
// convert time to string by prefixing "t"
// as the caller expects a string.
return
"t"
.
hrtime
(
true
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment