Jan Ulrich Hasecke
2019-11-14 d80dd3dd28e2960b877f2157d20fc7d8cfe7ac46
commit | author | age
d80dd3 1 from hs.admin.api import API
JUH 2
3 api = API(cas=dict(
4     uri='https://login.hostsharing.net/cas/v1/tickets',
5     service='https://config.hostsharing.net:443/hsar/backend'),
6     credentials=dict(username='xyz00', password='sehr-geheim'),
7     backends=[
8         'https://config.hostsharing.net:443/hsar/xmlrpc/hsadmin',
9         'https://config2.hostsharing.net:443/hsar/xmlrpc/hsadmin'])
10
11 api.user.add(set={'name': 'xyz00-domain.de', 'password': 'geheim', 'shell': '/bin/bash'})
12 api.domain.add(set={'name': 'domain.de', 'user': 'xyz00-domain.de'})