Commit 44d42461 authored by Lorenz Steinert's avatar Lorenz Steinert

added option for server timeout

parent 25c379e1
......@@ -3,3 +3,6 @@ num_cols = 4
num_cols_ext = 2
sprecher = SPRECHER
protokollant = PROTOKOLLANT
[SERVER]
connect_timeout = 10
......@@ -36,7 +36,7 @@ class Protokollskript:
self.config = configparser.ConfigParser()
self.config.read('./proto.ini')
self.server = ldap.Server("rincewind.fs.physik.uni-kl.de")
self.server = ldap.Server("rincewind.fs.physik.uni-kl.de", self.config['SERVER'].getint('connect_timeout'))
self.base = "dc=fs,dc=physik,dc=uni-kl,dc=de"
year = str(time.localtime()[0])
......
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