Commit 1b840d2e authored by Lorenz Steinert's avatar Lorenz Steinert

made nessesary changes to generate_fallback

parent 476d5cfa
......@@ -9,7 +9,7 @@ Created on Fri Nov 24 15:35:04 2017
import os
import codecs
import argparse
from module.esme import FsrLdap, get_config, get_share
from module.esme import FsrLdap, get_config, get_share, get_ldap_server, get_ldap_base
if __name__ == "__main__":
RUNDIR = os.path.dirname(os.path.realpath(__file__))
......@@ -18,13 +18,18 @@ if __name__ == "__main__":
for the protokollskript.")
PARSER.add_argument('-s', '--sharedir', help='set the share directory')
PARSER.add_argument('-c', '--config', help='set the config file')
PARSER.add_argument('-S', '--Server', help='set the ldap server uri')
PARSER.add_argument('-b', '--base', help='set the ldap server base')
OPT = PARSER.parse_args()
CONFIG = get_config(RUNDIR, OPT.config)
SHARE_DIR = get_share(RUNDIR, CONFIG, OPT.sharedir)
ESME = FsrLdap(debug=True, timeout=30)
LDAP_SERVER = get_ldap_server(CONFIG, OPT.server)
LDAP_SERVER_BASE = get_ldap_base(CONFIG, OPT.base)
ESME = FsrLdap(LDAP_SERVER, LDAP_SERVER_BASE, debug=True, timeout=30)
FSR = ESME.get_fsr_ldap([])
FSR_EXTERN = ESME.get_fsr_extern_ldap([])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment