2022-11-24 19:52:36 +01:00
|
|
|
debug = true
|
|
|
|
[behaviors]
|
|
|
|
# Ignore all capabilities restrictions, for instance allowing every user to perform a search
|
|
|
|
IgnoreCapabilities = true
|
|
|
|
[ldap]
|
|
|
|
enabled = true
|
|
|
|
listen = "0.0.0.0:389"
|
|
|
|
[ldaps]
|
|
|
|
enabled = false
|
|
|
|
listen = "0.0.0.0:636"
|
|
|
|
[api]
|
|
|
|
enabled = true
|
|
|
|
internals = true
|
|
|
|
tls = false
|
|
|
|
listen = "0.0.0.0:5555"
|
|
|
|
[backend]
|
|
|
|
datastore = "config"
|
|
|
|
baseDN = "dc=localssl,dc=dev"
|
2023-02-14 20:28:47 +01:00
|
|
|
|
2022-11-24 19:52:36 +01:00
|
|
|
[[users]]
|
|
|
|
name = "user"
|
2023-01-24 06:05:31 +01:00
|
|
|
givenname = "John"
|
|
|
|
objectClass = "user"
|
|
|
|
displayName = "John Doe"
|
|
|
|
sn = "Doe"
|
2023-02-14 20:28:47 +01:00
|
|
|
uidnumber = 5003
|
|
|
|
primarygroup = 5501
|
|
|
|
loginShell = "/bin/sh"
|
2023-02-20 13:01:49 +01:00
|
|
|
otherGroups = [5505,5506,5507,5508]
|
2023-01-24 06:05:31 +01:00
|
|
|
userPrincipalName = "jdoe@example.com"
|
2022-11-24 19:52:36 +01:00
|
|
|
mail = "jdoe@example.com"
|
|
|
|
passsha256 = "4314c1fe282face45336b1422a3285c5ff31a39c8e24425615fa53a43b718493" # photoprism
|
|
|
|
[[users.customattributes]]
|
|
|
|
photoprismRole = ["user"]
|
2022-11-25 10:02:28 +01:00
|
|
|
photoprismNoLogin = ["false"]
|
2022-11-24 19:52:36 +01:00
|
|
|
photoprismWebdav = ["true"]
|
|
|
|
[[users.capabilities]]
|
|
|
|
action = "search"
|
|
|
|
object = "*"
|
2023-02-14 20:28:47 +01:00
|
|
|
|
2023-01-24 06:05:31 +01:00
|
|
|
[[users]]
|
|
|
|
name = "bob"
|
|
|
|
givenname = "Bob"
|
|
|
|
objectClass = "user"
|
|
|
|
displayName = "Robert Jones"
|
|
|
|
sn = "Jones"
|
|
|
|
userPrincipalName = "bob@example.com"
|
|
|
|
mail = "bob@example.com"
|
2023-02-14 20:28:47 +01:00
|
|
|
uidnumber = 5005
|
|
|
|
primarygroup = 5502
|
|
|
|
loginShell = "/bin/bash"
|
|
|
|
otherGroups = [5505,5506]
|
2023-01-24 06:05:31 +01:00
|
|
|
passsha256 = "4314c1fe282face45336b1422a3285c5ff31a39c8e24425615fa53a43b718493" # photoprism
|
|
|
|
[[users.customattributes]]
|
|
|
|
photoprismRoleUser = ["true"]
|
|
|
|
photoprismNoLogin = ["false"]
|
|
|
|
photoprismWebdav = ["true"]
|
|
|
|
photoprismUploadPath = ["bob"]
|
|
|
|
[[users.capabilities]]
|
|
|
|
action = "search"
|
|
|
|
object = "*"
|
2023-02-14 20:28:47 +01:00
|
|
|
|
2022-11-24 19:52:36 +01:00
|
|
|
[[users]]
|
|
|
|
name = "guest"
|
2023-01-24 06:05:31 +01:00
|
|
|
objectClass = "user"
|
|
|
|
givenname = "Guest"
|
|
|
|
displayName = "Guest User"
|
|
|
|
userPrincipalName = "guest@example.com"
|
2022-11-24 19:52:36 +01:00
|
|
|
mail = "guest@example.com"
|
2023-02-14 20:28:47 +01:00
|
|
|
uidnumber = 5006
|
|
|
|
primarygroup = 5503
|
|
|
|
loginShell = "/bin/sh"
|
|
|
|
otherGroups = [5505,5507]
|
2022-11-24 19:52:36 +01:00
|
|
|
passsha256 = "4314c1fe282face45336b1422a3285c5ff31a39c8e24425615fa53a43b718493" # photoprism
|
|
|
|
[[users.customattributes]]
|
|
|
|
photoprismRole = ["guest"]
|
|
|
|
[[users.capabilities]]
|
|
|
|
action = "search"
|
|
|
|
object = "*"
|
2023-02-14 20:28:47 +01:00
|
|
|
|
2023-02-20 13:01:49 +01:00
|
|
|
[[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 = "*"
|
|
|
|
|
2023-02-16 10:39:18 +01:00
|
|
|
[[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 = "*"
|
|
|
|
|
2023-02-14 20:28:47 +01:00
|
|
|
[[groups]]
|
|
|
|
name = "PhotoPrism-admin"
|
|
|
|
gidnumber = 5501
|
|
|
|
|
|
|
|
[[groups]]
|
|
|
|
name = "PhotoPrism-user"
|
|
|
|
gidnumber = 5502
|
|
|
|
|
|
|
|
[[groups]]
|
|
|
|
name = "PhotoPrism-guest"
|
|
|
|
gidnumber = 5503
|
|
|
|
|
|
|
|
[[groups]]
|
2023-02-20 13:01:49 +01:00
|
|
|
name = "PhotoPrism-uploader"
|
2023-02-14 20:28:47 +01:00
|
|
|
gidnumber = 5504
|
|
|
|
|
|
|
|
[[groups]]
|
|
|
|
name = "gmail"
|
|
|
|
gidnumber = 5505
|
|
|
|
|
|
|
|
[[groups]]
|
|
|
|
name = "email"
|
|
|
|
gidnumber = 5506
|
|
|
|
|
|
|
|
[[groups]]
|
|
|
|
name = "ssh"
|
|
|
|
gidnumber = 5507
|
2023-02-20 13:01:49 +01:00
|
|
|
|
|
|
|
[[groups]]
|
|
|
|
name = "PhotoPrism-webdav"
|
|
|
|
gidnumber = 5508
|