summaryrefslogtreecommitdiff
path: root/README.md
blob: 76d72f908c54832ba86b2e28ccea8a03e4af9785 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

## Installing

```
docker build --no-cache=true -t ndn-pwman .
```

Make a `secret.txt` file and add a random 50 character secret in a data dir.

```
6dxjpk*+-ywfxxi#_wmpzon@-p6hwwh9z)7q0t)h7zy*tdz20x
```

Migrate db if necessary.

```
docker run --rm -ti -v $(pwd)/data:/opt/pwman ndn-pwman migrate
```

Then run a collect static:

```
docker run --rm --ti ndn-pwman -v $(pwd)/data:/opt/pwman collectstatic
```

You need a useradmin keytab file, and the admin password for our ldap.

## Running pwman

```
	docker run --rm -ti --name pwman -e LDAP_PASSWORD="1234secrets" -v useradmin.keytab:/etc/useradmin.keytab ndn-pwman server
```


## Debugging

You can run the image with the argument shell.

```
docker run --rm -ti ndn-pwman shell
```

## Environement variables

- LDAP_URL
- LDAP_USER
- LDAP_PASSWORD
- KERBEROS_SCRIPT
- DEBUG_MODE
- SECRET_KEY_FILE
- SECRET_KEY
- DATA_DIR - defaults to `/opt/pwman`