[fix] ldap_scheme path + route fix for DAT FACKING BOTTLE

This commit is contained in:
Kload 2014-05-16 21:38:44 +02:00
parent 46735ff231
commit 46fe5d78a1
2 changed files with 36 additions and 28 deletions

View file

@ -91,7 +91,7 @@ user:
### user_create() ### user_create()
create: create:
action_help: Create user action_help: Create user
api: POST /users api: POST /user
configuration: configuration:
authenticate: all authenticate: all
arguments: arguments:
@ -127,7 +127,7 @@ user:
### user_delete() ### user_delete()
delete: delete:
action_help: Delete user action_help: Delete user
api: 'DELETE /users/<users>' api: DELETE /user/delete/<users>
configuration: configuration:
authenticate: all authenticate: all
arguments: arguments:
@ -146,7 +146,7 @@ user:
### user_update() ### user_update()
update: update:
action_help: Update user informations action_help: Update user informations
api: 'PUT /users/<username>' api: PUT /user/update/<username>
configuration: configuration:
authenticate: all authenticate: all
arguments: arguments:
@ -182,7 +182,7 @@ user:
### user_info() ### user_info()
info: info:
action_help: Get user informations action_help: Get user informations
api: 'GET /users/<username>' api: GET /user/<username>
configuration: configuration:
authenticate: all authenticate: all
authenticator: ldap-anonymous authenticator: ldap-anonymous
@ -221,7 +221,7 @@ domain:
### domain_add() ### domain_add()
add: add:
action_help: Create a custom domain action_help: Create a custom domain
api: POST /domains api: POST /domain/create
configuration: configuration:
authenticate: all authenticate: all
arguments: arguments:
@ -244,7 +244,7 @@ domain:
### domain_remove() ### domain_remove()
remove: remove:
action_help: Delete domains action_help: Delete domains
api: 'DELETE /domains/{domains}' api: DELETE /domain/delete/{domains}
configuration: configuration:
authenticate: all authenticate: all
arguments: arguments:
@ -259,7 +259,7 @@ domain:
### domain_info() ### domain_info()
# info: # info:
# action_help: Get domain informations # action_help: Get domain informations
# api: 'GET /domains/<domain>' # api: GET /domains/<domain>
# arguments: # arguments:
# domain: # domain:
# help: "" # help: ""
@ -279,7 +279,7 @@ app:
### app_fetchlist() ### app_fetchlist()
fetchlist: fetchlist:
action_help: Fetch application list from app server action_help: Fetch application list from app server
api: PUT /app/lists api: PUT /applist/refresh
arguments: arguments:
-u: -u:
full: --url full: --url
@ -291,12 +291,12 @@ app:
### app_listlists() ### app_listlists()
listlists: listlists:
action_help: List fetched lists action_help: List fetched lists
api: GET /app/lists api: GET /applist/lists
### app_removelist() ### app_removelist()
removelist: removelist:
action_help: Remove list from the repositories action_help: Remove list from the repositories
api: DELETE /app/lists api: DELETE /applist/delete
arguments: arguments:
-n: -n:
full: --name full: --name
@ -362,9 +362,9 @@ app:
### app_install() TODO: Write help ### app_install() TODO: Write help
install: install:
action_help: Install apps action_help: Install apps
api: POST /app api: POST /app/install
configuration: configuration:
authenticate: all authenticate: false
authenticator: ldap-anonymous authenticator: ldap-anonymous
lock: false lock: false
arguments: arguments:
@ -380,7 +380,7 @@ app:
### app_remove() TODO: Write help ### app_remove() TODO: Write help
remove: remove:
action_help: Remove app action_help: Remove app
api: DELETE /app api: DELETE /app/delete
configuration: configuration:
authenticate: all authenticate: all
authenticator: ldap-anonymous authenticator: ldap-anonymous
@ -391,7 +391,7 @@ app:
### app_upgrade() ### app_upgrade()
upgrade: upgrade:
action_help: Upgrade app action_help: Upgrade app
api: PUT /app api: PUT /app/upgrade
configuration: configuration:
authenticate: all authenticate: all
authenticator: ldap-anonymous authenticator: ldap-anonymous
@ -512,7 +512,7 @@ app:
### app_addaccess() TODO: Write help ### app_addaccess() TODO: Write help
addaccess: addaccess:
action_help: Grant access right to users (everyone by default) action_help: Grant access right to users (everyone by default)
api: PUT /app/access api: PUT /app/access/grant
configuration: configuration:
authenticate: all authenticate: all
authenticator: ldap-anonymous authenticator: ldap-anonymous
@ -526,7 +526,7 @@ app:
### app_removeaccess() TODO: Write help ### app_removeaccess() TODO: Write help
removeaccess: removeaccess:
action_help: Revoke access right to users (everyone by default) action_help: Revoke access right to users (everyone by default)
api: DELETE /app/access api: DELETE /app/access/delete
configuration: configuration:
authenticate: all authenticate: all
authenticator: ldap-anonymous authenticator: ldap-anonymous
@ -540,7 +540,7 @@ app:
### app_clearaccess() ### app_clearaccess()
clearaccess: clearaccess:
action_help: Reset access rights for the app action_help: Reset access rights for the app
api: POST /app/access api: POST /app/access/clear
configuration: configuration:
authenticate: all authenticate: all
authenticator: ldap-anonymous authenticator: ldap-anonymous
@ -687,6 +687,7 @@ monitor:
### monitor_enable() ### monitor_enable()
enable: enable:
action_help: Enable server monitoring action_help: Enable server monitoring
api: PUT /monitor/enable
arguments: arguments:
-n: -n:
full: --no-stats full: --no-stats
@ -695,6 +696,7 @@ monitor:
### monitor_disable() ### monitor_disable()
disable: disable:
api: DELETE /monitor/disable
action_help: Disable server monitoring action_help: Disable server monitoring
@ -708,6 +710,7 @@ service:
### service_start() ### service_start()
start: start:
action_help: Start one or more services action_help: Start one or more services
api: PUT /service/start
arguments: arguments:
names: names:
help: Service name to start help: Service name to start
@ -717,6 +720,7 @@ service:
### service_stop() ### service_stop()
stop: stop:
action_help: Stop one or more services action_help: Stop one or more services
api: DELETE /service/stop
arguments: arguments:
names: names:
help: Service name to stop help: Service name to stop
@ -726,6 +730,7 @@ service:
### service_enable() ### service_enable()
enable: enable:
action_help: Enable one or more services action_help: Enable one or more services
api: PUT /service/enable
arguments: arguments:
names: names:
help: Service name to enable help: Service name to enable
@ -735,6 +740,7 @@ service:
### service_disable() ### service_disable()
disable: disable:
action_help: Disable one or more services action_help: Disable one or more services
api: DELETE /service/disable
arguments: arguments:
names: names:
help: Service name to disable help: Service name to disable
@ -744,6 +750,7 @@ service:
### service_status() ### service_status()
status: status:
action_help: Show status information about one or more services (all by default) action_help: Show status information about one or more services (all by default)
api: GET /service/status
arguments: arguments:
names: names:
help: Service name to show help: Service name to show
@ -753,6 +760,7 @@ service:
### service_log() ### service_log()
log: log:
action_help: Log every log files of a service action_help: Log every log files of a service
api: GET /service/log
arguments: arguments:
name: name:
help: Service name to log help: Service name to log
@ -786,12 +794,12 @@ firewall:
### firewall_reload() ### firewall_reload()
reload: reload:
action_help: Reload all firewall rules action_help: Reload all firewall rules
api: PUT /firewall/list api: PUT /firewall/reload
### firewall_allow() ### firewall_allow()
allow: allow:
action_help: Allow connection port/protocol action_help: Allow connection port/protocol
api: POST /firewall/port api: POST /firewall/allow
arguments: arguments:
port: port:
help: Port to open help: Port to open
@ -817,7 +825,7 @@ firewall:
### firewall_disallow() ### firewall_disallow()
disallow: disallow:
action_help: Disallow connection action_help: Disallow connection
api: DELETE /firewall/port api: DELETE /firewall/disallow
arguments: arguments:
port: port:
help: Port to close help: Port to close
@ -854,7 +862,7 @@ firewall:
### firewall_stop() ### firewall_stop()
stop: stop:
action_help: Stop iptables and ip6tables action_help: Stop iptables and ip6tables
api: DELETE /firewall api: DELETE /firewall/stop
@ -868,7 +876,7 @@ dyndns:
### dyndns_subscribe() ### dyndns_subscribe()
subscribe: subscribe:
action_help: Subscribe to a DynDNS service action_help: Subscribe to a DynDNS service
api: POST /dyndns api: POST /dyndns/subscribe
arguments: arguments:
--subscribe-host: --subscribe-host:
help: Dynette HTTP API to subscribe to help: Dynette HTTP API to subscribe to
@ -883,7 +891,7 @@ dyndns:
### dyndns_update() ### dyndns_update()
update: update:
action_help: Update IP on DynDNS platform action_help: Update IP on DynDNS platform
api: PUT /dyndns api: PUT /dyndns/update
arguments: arguments:
--dyn-host: --dyn-host:
help: Dynette DNS server to inform help: Dynette DNS server to inform
@ -901,12 +909,12 @@ dyndns:
### dyndns_installcron() ### dyndns_installcron()
installcron: installcron:
action_help: Install IP update cron action_help: Install IP update cron
api: POST /dyndns/cron api: POST /dyndns/cron/install
### dyndns_removecron() ### dyndns_removecron()
removecron: removecron:
action_help: Remove IP update cron action_help: Remove IP update cron
api: DELETE /dyndns/cron api: DELETE /dyndns/cron/remove
############################# #############################
@ -1018,7 +1026,7 @@ hook:
### hook_add() ### hook_add()
add: add:
action_help: Store hook script to filesystem action_help: Store hook script to filesystem
api: PUT /hook api: PUT /hook/store
arguments: arguments:
app: app:
help: App to link with help: App to link with
@ -1028,7 +1036,7 @@ hook:
### hook_remove() ### hook_remove()
remove: remove:
action_help: Remove hook scripts from filesystem action_help: Remove hook scripts from filesystem
api: DELETE /hook api: DELETE /hook/delete
arguments: arguments:
app: app:
help: Scripts related to app will be removed help: Scripts related to app will be removed

View file

@ -44,7 +44,7 @@ def tools_ldapinit(auth):
""" """
with open('ldap_scheme.yml') as f: with open('/usr/share/yunohost/yunohost-config/moulinette/ldap_scheme.yml') as f:
ldap_map = yaml.load(f) ldap_map = yaml.load(f)
for rdn, attr_dict in ldap_map['parents'].items(): for rdn, attr_dict in ldap_map['parents'].items():