#!/usr/bin/python import xmlrpclib ip_server = '10.0.0.251' c = xmlrpclib.ServerProxy("https://"+ip_server+":9779") user = ("lliurex","lliurex") print c.generate_ssl_certificates(user,"SlapdManager") print c.load_lliurex_schema(user,"SlapdManager") print c.enable_tls_communication(user,"SlapdManager",'/etc/ldap/ssl/slapd.cert','/etc/ldap/ssl/slapd.key') print c.configure_simple_slapd(user,"SlapdManager") print c.open_ports_slapd(user,"SlapdManager",ip_server) print c.reboot_slapd(user,"SlapdManager") print c.load_basic_struture(user,"SlapdManager") print c.change_admin_passwd(user,"SlapdManager","lliurex")