mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
72 lines
2.3 KiB
YAML
72 lines
2.3 KiB
YAML
|
|
#############################
|
|
# Global parameters #
|
|
#############################
|
|
_global:
|
|
configuration:
|
|
authenticate:
|
|
- api
|
|
authenticator:
|
|
default:
|
|
vendor: ldap
|
|
help: Admin Password
|
|
parameters:
|
|
uri: ldap://localhost:389
|
|
base_dn: dc=yunohost,dc=org
|
|
user_rdn: cn=admin,dc=yunohost,dc=org
|
|
ldap-anonymous:
|
|
vendor: ldap
|
|
parameters:
|
|
uri: ldap://localhost:389
|
|
base_dn: dc=yunohost,dc=org
|
|
test-profile:
|
|
vendor: ldap
|
|
help: Admin Password (profile)
|
|
parameters:
|
|
uri: ldap://localhost:389
|
|
base_dn: dc=yunohost,dc=org
|
|
user_rdn: cn=admin,dc=yunohost,dc=org
|
|
as-root:
|
|
vendor: ldap
|
|
parameters:
|
|
# We can get this uri by (urllib.quote_plus('/var/run/slapd/ldapi')
|
|
uri: ldapi://%2Fvar%2Frun%2Fslapd%2Fldapi
|
|
base_dn: dc=yunohost,dc=org
|
|
user_rdn: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
|
|
argument_auth: true
|
|
lock: false
|
|
|
|
#############################
|
|
# Test Actions #
|
|
#############################
|
|
test:
|
|
actions:
|
|
non-auth:
|
|
api: GET /test/non-auth
|
|
configuration:
|
|
authenticate: false
|
|
auth:
|
|
api: GET /test/auth
|
|
configuration:
|
|
authenticate: all
|
|
auth-profile:
|
|
api: GET /test/auth-profile
|
|
configuration:
|
|
authenticate: all
|
|
authenticator: test-profile
|
|
auth-cli:
|
|
api: GET /test/auth-cli
|
|
configuration:
|
|
authenticate:
|
|
- cli
|
|
root-auth:
|
|
api: GET /test/root-auth
|
|
configuration:
|
|
authenticate: all
|
|
authenticator: as-root
|
|
anonymous:
|
|
api: GET /test/anon
|
|
configuration:
|
|
authenticate: all
|
|
authenticator: ldap-anonymous
|
|
argument_auth: false
|