Line | |
---|
1 | #!/usr/bin/python |
---|
2 | import xmlrpclib |
---|
3 | |
---|
4 | ip_server = '10.0.0.251' |
---|
5 | c = xmlrpclib.ServerProxy("https://"+ip_server+":9779") |
---|
6 | user = ("lliurex","lliurex") |
---|
7 | print c.generate_ssl_certificates(user,"SlapdManager") |
---|
8 | print c.load_lliurex_schema(user,"SlapdManager") |
---|
9 | print c.enable_tls_communication(user,"SlapdManager",'/etc/ldap/ssl/slapd.cert','/etc/ldap/ssl/slapd.key') |
---|
10 | print c.configure_simple_slapd(user,"SlapdManager") |
---|
11 | print c.open_ports_slapd(user,"SlapdManager",ip_server) |
---|
12 | print c.reboot_slapd(user,"SlapdManager") |
---|
13 | print c.load_basic_struture(user,"SlapdManager") |
---|
14 | print c.change_admin_passwd(user,"SlapdManager","lliurex") |
---|
Note: See
TracBrowser
for help on using the repository browser.