mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-04 20:37:48 +02:00
initialize ppolicy module
This commit is contained in:
parent
ac7661731c
commit
c302198e6e
3 changed files with 34 additions and 0 deletions
17
ldapcherry/ppolicy/__init.py
Normal file
17
ldapcherry/ppolicy/__init.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim:set expandtab tabstop=4 shiftwidth=4:
|
||||
#
|
||||
# The MIT License (MIT)
|
||||
# LdapCherry
|
||||
# Copyright (c) 2014 Carpentier Pierre-Francois
|
||||
|
||||
class Ppolicy:
|
||||
|
||||
def __init__(self, config, logger):
|
||||
pass
|
||||
|
||||
def check(self, password):
|
||||
ret = {'match': True, 'reason': 'no password policy'}
|
||||
|
||||
def info(self):
|
||||
ret = "There is no password policy configured"
|
7
ldapcherry/ppolicy/simple.py
Normal file
7
ldapcherry/ppolicy/simple.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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue