mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 09:24:21 +01:00
adding skeleton for most files
This commit is contained in:
parent
d6b595bc7d
commit
7ec0cb4e74
20
ldapcherry/backend/__init__.py
Normal file
20
ldapcherry/backend/__init__.py
Normal file
@ -0,0 +1,20 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim:set expandtab tabstop=4 shiftwidth=4:
|
||||
#
|
||||
# The MIT License (MIT)
|
||||
# LdapCherry
|
||||
# Copyright (c) 2014 Carpentier Pierre-Francois
|
||||
|
||||
class Backend:
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def add_group(self):
|
||||
pass
|
||||
|
||||
def set_attr(self):
|
||||
pass
|
||||
|
||||
def rm_group(self):
|
||||
pass
|
11
ldapcherry/backend/ldap.py
Normal file
11
ldapcherry/backend/ldap.py
Normal file
@ -0,0 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim:set expandtab tabstop=4 shiftwidth=4:
|
||||
#
|
||||
# The MIT License (MIT)
|
||||
# LdapCherry
|
||||
# Copyright (c) 2014 Carpentier Pierre-Francois
|
||||
|
||||
class Backend(ldapcherry.backend.Backend):
|
||||
|
||||
def __init__(self, config, logger):
|
||||
pass
|
7
ldapcherry/backend/samba4.py
Normal file
7
ldapcherry/backend/samba4.py
Normal file
@ -0,0 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim:set expandtab tabstop=4 shiftwidth=4:
|
||||
#
|
||||
# License GPLv3
|
||||
# LdapCherry
|
||||
# Copyright (c) 2014 Carpentier Pierre-Francois
|
||||
|
7
ldapcherry/exceptions.py
Normal file
7
ldapcherry/exceptions.py
Normal file
@ -0,0 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim:set expandtab tabstop=4 shiftwidth=4:
|
||||
#
|
||||
# The MIT License (MIT)
|
||||
# LdapCherry
|
||||
# Copyright (c) 2014 Carpentier Pierre-Francois
|
||||
|
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…
Reference in New Issue
Block a user