Auth: Update LDAP test config
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
52b4db2427
commit
1942f93bf1
2 changed files with 26 additions and 2 deletions
27
.ldap.cfg
27
.ldap.cfg
|
@ -26,7 +26,7 @@ debug = true
|
|||
uidnumber = 5003
|
||||
primarygroup = 5501
|
||||
loginShell = "/bin/sh"
|
||||
otherGroups = [5505,5506,5507]
|
||||
otherGroups = [5505,5506,5507,5508]
|
||||
userPrincipalName = "jdoe@example.com"
|
||||
mail = "jdoe@example.com"
|
||||
passsha256 = "4314c1fe282face45336b1422a3285c5ff31a39c8e24425615fa53a43b718493" # photoprism
|
||||
|
@ -78,6 +78,25 @@ debug = true
|
|||
action = "search"
|
||||
object = "*"
|
||||
|
||||
[[users]]
|
||||
name = "uploader"
|
||||
givenname = "Uploader"
|
||||
objectClass = "user"
|
||||
displayName = "Uploader"
|
||||
sn = "Uploader"
|
||||
userPrincipalName = "uploader@example.com"
|
||||
mail = "uploader@example.com"
|
||||
uidnumber = 5007
|
||||
primarygroup = 5504
|
||||
loginShell = "/bin/bash"
|
||||
otherGroups = [5508]
|
||||
passsha256 = "4314c1fe282face45336b1422a3285c5ff31a39c8e24425615fa53a43b718493" # photoprism
|
||||
[[users.customattributes]]
|
||||
photoprismUploadPath = ["bob"]
|
||||
[[users.capabilities]]
|
||||
action = "search"
|
||||
object = "*"
|
||||
|
||||
[[users]]
|
||||
name = "mail"
|
||||
objectClass = "user"
|
||||
|
@ -107,7 +126,7 @@ debug = true
|
|||
gidnumber = 5503
|
||||
|
||||
[[groups]]
|
||||
name = "PhotoPrism-visitor"
|
||||
name = "PhotoPrism-uploader"
|
||||
gidnumber = 5504
|
||||
|
||||
[[groups]]
|
||||
|
@ -121,3 +140,7 @@ debug = true
|
|||
[[groups]]
|
||||
name = "ssh"
|
||||
gidnumber = 5507
|
||||
|
||||
[[groups]]
|
||||
name = "PhotoPrism-webdav"
|
||||
gidnumber = 5508
|
|
@ -54,6 +54,7 @@ services:
|
|||
PHOTOPRISM_LDAP_BASE_DN: "dc=localssl,dc=dev"
|
||||
PHOTOPRISM_LDAP_ROLE: ""
|
||||
PHOTOPRISM_LDAP_ROLE_DN: "ou=photoprism-*,ou=groups,dc=localssl,dc=dev"
|
||||
PHOTOPRISM_LDAP_WEBDAV_DN: "ou=photoprism-webdav,ou=groups,dc=localssl,dc=dev"
|
||||
## OpenID Connect (pre-configured for local tests):
|
||||
PHOTOPRISM_OIDC_URI: "https://keycloak.localssl.dev/auth/realms/master"
|
||||
PHOTOPRISM_OIDC_INSECURE: "true"
|
||||
|
|
Loading…
Reference in a new issue