mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-04 12:27:47 +02:00
adding skeleton for most files
This commit is contained in:
parent
d6b595bc7d
commit
7ec0cb4e74
5 changed files with 80 additions and 0 deletions
35
ldapcherry/roles.py
Normal file
35
ldapcherry/roles.py
Normal file
|
@ -0,0 +1,35 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim:set expandtab tabstop=4 shiftwidth=4:
|
||||
#
|
||||
# The MIT License (MIT)
|
||||
# LdapCherry
|
||||
# Copyright (c) 2014 Carpentier Pierre-Francois
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
try:
|
||||
from yaml import CLoader as Loader, CDumper as Dumper
|
||||
except ImportError:
|
||||
from yaml import Loader, Dumper
|
||||
|
||||
class Roles:
|
||||
|
||||
def __init__(self, role_file):
|
||||
pass
|
||||
|
||||
def _nest(self, role_file):
|
||||
"""nests the roles (creates roles hierarchy)"""
|
||||
pass
|
||||
|
||||
def write(self, out_file):
|
||||
"""write the nested role hierarchy to a file"""
|
||||
pass
|
||||
|
||||
def get_roles(self, groups):
|
||||
"""get list of roles and list of standalone groups"""
|
||||
pass
|
||||
|
||||
def get_groups(self, roles):
|
||||
"""get the list of groups from roles"""
|
||||
pass
|
Loading…
Add table
Add a link
Reference in a new issue