config.py 452 Bytes
Newer Older
jens.kleineheismann's avatar
jens.kleineheismann committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from .exceptions import MissingConfigError

CONFIG = {
	'GROUP_PK_ATTRIB': 'name',
	'OE_PK_ATTRIB': 'kurz',
	'USER_PK_ATTRIB': 'samaccount',
	'URL_SCHEMA': 'https://',
	'SERVER': 'kit-idm-03.scc.kit.edu',
	'BASE_URI': '/itbportal-rest-war/rest',
	'USERNAME': MissingConfigError('No username set'),
	'PASSWORD': MissingConfigError('No password set'),
}

def basicConfig(username, password):
	CONFIG['USERNAME'] = username
	CONFIG['PASSWORD'] = password