|
|
@ -1,5 +1,7 @@ |
|
|
|
#!/usr/bin/env python3 |
|
|
|
import lilikusers |
|
|
|
|
|
|
|
import logging |
|
|
|
import json |
|
|
|
from flask import Flask, jsonify |
|
|
|
from flask import request, Response, redirect, url_for |
|
|
@ -7,6 +9,13 @@ from functools import wraps |
|
|
|
|
|
|
|
app = Flask(__name__) |
|
|
|
|
|
|
|
logrotate = logging.handlers.RotatingFileHandlers( |
|
|
|
'/var/log/login/server', |
|
|
|
backupCount=10, |
|
|
|
) |
|
|
|
|
|
|
|
app.logger.add_handler(logrotate) |
|
|
|
|
|
|
|
lilik_ldap = lilikusers.LILiK_LDAP() |
|
|
|
|
|
|
|
def check_auth(user_name, password): |
|
|
|