Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TOTP server for technical site
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
edugain
eduGAIN OT
TOTP server for technical site
Commits
9f2ec7de
Commit
9f2ec7de
authored
1 year ago
by
Tomasz Wolniewicz
Browse files
Options
Downloads
Patches
Plain Diff
text updates
parent
b5133a59
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+11
-8
11 additions, 8 deletions
README.md
with
11 additions
and
8 deletions
README.md
+
11
−
8
View file @
9f2ec7de
...
...
@@ -27,8 +27,8 @@ code is required.
## Installation
The server works with the
**
otp
**
database which is shared with the technical site installation.
You must define user
**
otp
**
or whatever you decide to call it (and set in the otp_config.php).
The server works with the
`
otp
`
database which is shared with the technical site installation.
You must define user
`
otp
`
or whatever you decide to call it (and set in the otp_config.php).
### Without Docker
...
...
@@ -52,12 +52,12 @@ We suggest that you use **--network host** Docker run option which will allow ad
resolution based on the host machine and standard port 80 for connections.
-
You need docker instaled on your host machine
-
If you do not want to use
**
--network host
**
option then decide which port will be mapped to your Docker image (say 8080)
-
If you do not want to use
`
--network host
`
option then decide which port will be mapped to your Docker image (say 8080)
-
Download the code from git
-
In the
**
config
**
directory, copy
**
config-template.php
**
to
**
config.php
**
; do not modify the settings
-
In the
**
otp_server_config
**
directory copy
**
otp_config-template.php
**
to
**
otp_confi.php
**
and modify the settings as needed
-
As root run
**
docker build -t otp_server:latest .
**
-
As root run
**
docker run -d --name otp_server --network host --rm otp_server:latest
**
-
In the
`
config
`
directory, copy
`
config-template.php
`
to
`
config.php
`
; do not modify the settings
-
In the
`
otp_server_config
`
directory copy
`
otp_config-template.php
`
to
`
otp_confi.php
`
and modify the settings as needed
-
As root run
`
docker build -t otp_server:latest .
`
-
As root run
`
docker run -d --name otp_server --network host --rm otp_server:latest
`
### Running the dosker image at boot
For systems using systemctl we suggest to install the new service called
...
...
@@ -84,12 +84,15 @@ WantedBy=multi-user.target
From the main technical site run:
```
wget -O otp.out http://otp_server_address/otp_server.php?user=xxx@example.com
```
or
```
curl -o otp.out http://otp_server_address/otp_server.php?user=xxx@example.com
```
Your otp.out should contain value "-1" which means - the user not found.
If this works then you are ready to go.
...
...
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