2014-03-17 00:47:33 +01:00
|
|
|
|
|
|
|
#############################
|
|
|
|
# Global parameters #
|
|
|
|
#############################
|
|
|
|
_global:
|
|
|
|
configuration:
|
|
|
|
authenticate:
|
|
|
|
- api
|
|
|
|
authenticator:
|
|
|
|
default:
|
2014-03-20 21:19:30 +01:00
|
|
|
vendor: ldap
|
2014-03-17 00:47:33 +01:00
|
|
|
help: Admin Password
|
|
|
|
parameters:
|
|
|
|
uri: ldap://localhost:389
|
2014-03-20 21:19:30 +01:00
|
|
|
base_dn: dc=yunohost,dc=org
|
2018-11-27 13:04:17 +01:00
|
|
|
user_rdn: cn=admin,dc=yunohost,dc=org
|
2014-03-17 00:47:33 +01:00
|
|
|
ldap-anonymous:
|
2014-03-20 21:19:30 +01:00
|
|
|
vendor: ldap
|
2014-03-17 00:47:33 +01:00
|
|
|
parameters:
|
|
|
|
uri: ldap://localhost:389
|
2014-03-20 21:19:30 +01:00
|
|
|
base_dn: dc=yunohost,dc=org
|
2014-03-22 17:01:30 +01:00
|
|
|
test-profile:
|
|
|
|
vendor: ldap
|
|
|
|
help: Admin Password (profile)
|
|
|
|
parameters:
|
|
|
|
uri: ldap://localhost:389
|
|
|
|
base_dn: dc=yunohost,dc=org
|
2018-11-27 13:04:17 +01:00
|
|
|
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
|
2014-03-17 00:47:33 +01:00
|
|
|
argument_auth: true
|
2014-12-29 18:27:13 +01:00
|
|
|
lock: false
|
2014-03-17 00:47:33 +01:00
|
|
|
|
|
|
|
#############################
|
|
|
|
# Test Actions #
|
|
|
|
#############################
|
|
|
|
test:
|
|
|
|
actions:
|
|
|
|
non-auth:
|
|
|
|
api: GET /test/non-auth
|
|
|
|
configuration:
|
|
|
|
authenticate: false
|
|
|
|
auth:
|
|
|
|
api: GET /test/auth
|
|
|
|
configuration:
|
|
|
|
authenticate: all
|
2014-03-22 17:01:30 +01:00
|
|
|
auth-profile:
|
|
|
|
api: GET /test/auth-profile
|
|
|
|
configuration:
|
|
|
|
authenticate: all
|
|
|
|
authenticator: test-profile
|
2014-03-17 00:47:33 +01:00
|
|
|
auth-cli:
|
|
|
|
api: GET /test/auth-cli
|
|
|
|
configuration:
|
|
|
|
authenticate:
|
|
|
|
- cli
|
2018-11-27 13:04:17 +01:00
|
|
|
root-auth:
|
|
|
|
api: GET /test/root-auth
|
|
|
|
configuration:
|
|
|
|
authenticate: all
|
|
|
|
authenticator: as-root
|
2014-03-17 00:47:33 +01:00
|
|
|
anonymous:
|
|
|
|
api: GET /test/anon
|
|
|
|
configuration:
|
|
|
|
authenticate: all
|
|
|
|
authenticator: ldap-anonymous
|
|
|
|
argument_auth: false
|