mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
15 lines
362 B
Python
15 lines
362 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
import yaml
|
|
|
|
def tools_init(args, connections):
|
|
yldap = connections['ldap']
|
|
|
|
with open('ldap_scheme.yml') as f:
|
|
ldap_map = yaml.load(f)
|
|
|
|
for rdn, attr_dict in ldap_map['parents'].items():
|
|
yldap.add(rdn, attr_dict)
|
|
|
|
for rdn, attr_dict in ldap_map['childs'].items():
|
|
yldap.add(rdn, attr_dict)
|