|
|
@ -10,7 +10,7 @@ from functools import wraps |
|
|
|
|
|
|
|
app = Flask(__name__) |
|
|
|
|
|
|
|
logfmt = 'time=%(asctime)s level=%(levelname)s app=%(name) msg=%(message)s' |
|
|
|
logfmt = logging.Formatter('time=%(asctime)s level=%(levelname)s app=%(name) msg=%(message)s') |
|
|
|
|
|
|
|
logrotate = RotatingFileHandler( |
|
|
|
'/var/log/login/server', |
|
|
@ -26,7 +26,8 @@ app.logger.addHandler(logrotate) |
|
|
|
lilik_ldap = lilikusers.LILiK_LDAP() |
|
|
|
|
|
|
|
def check_auth(user_name, password): |
|
|
|
"""This function is called to check if a username / |
|
|
|
""" |
|
|
|
This function is called to check if a username / |
|
|
|
password combination is valid. |
|
|
|
""" |
|
|
|
if lilik_ldap.login(user_name, password): |
|
|
|