|
@ -10,7 +10,7 @@ from functools import wraps |
|
|
|
|
|
|
|
|
app = Flask(__name__) |
|
|
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( |
|
|
logrotate = RotatingFileHandler( |
|
|
'/var/log/login/server', |
|
|
'/var/log/login/server', |
|
@ -26,7 +26,8 @@ app.logger.addHandler(logrotate) |
|
|
lilik_ldap = lilikusers.LILiK_LDAP() |
|
|
lilik_ldap = lilikusers.LILiK_LDAP() |
|
|
|
|
|
|
|
|
def check_auth(user_name, password): |
|
|
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. |
|
|
password combination is valid. |
|
|
""" |
|
|
""" |
|
|
if lilik_ldap.login(user_name, password): |
|
|
if lilik_ldap.login(user_name, password): |
|
|