Auth: Update LDAP test configuration

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2023-02-16 10:39:18 +01:00
parent 3fa867eea3
commit 148b90960a
2 changed files with 18 additions and 1 deletions

View file

@ -78,6 +78,22 @@ debug = true
action = "search"
object = "*"
[[users]]
name = "mail"
objectClass = "user"
givenname = "Mail"
displayName = "Mail User"
userPrincipalName = "mail@example.com"
mail = "mail@example.com"
uidnumber = 5507
primarygroup = 5506
loginShell = "/bin/nologin"
otherGroups = [5505]
passsha256 = "4314c1fe282face45336b1422a3285c5ff31a39c8e24425615fa53a43b718493" # photoprism
[[users.capabilities]]
action = "search"
object = "*"
[[groups]]
name = "PhotoPrism-admin"
gidnumber = 5501

View file

@ -48,11 +48,12 @@ services:
## LDAP Authentication (pre-configured for local tests):
PHOTOPRISM_LDAP_URI: "ldap://dummy-ldap:389"
PHOTOPRISM_LDAP_INSECURE: "true"
PHOTOPRISM_LDAP_SYNC: "true"
PHOTOPRISM_LDAP_BIND: "simple"
PHOTOPRISM_LDAP_BIND_DN: "cn"
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_SYNC: "true"
## OpenID Connect (pre-configured for local tests):
PHOTOPRISM_OIDC_URI: "https://keycloak.localssl.dev/auth/realms/master"
PHOTOPRISM_OIDC_INSECURE: "true"