source: n4d-pamnss/trunk/fuentes/example_init_simple_server.py @ 192

Last change on this file since 192 was 192, checked in by hectorgh, 4 years ago

adding project files

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/usr/bin/python
2import xmlrpclib
3
4server_ip = "10.0.0.241"
5
6c = xmlrpclib.ServerProxy("https://"+server_ip+":9779")
7#c = xmlrpclib.ServerProxy("https://192.168.1.2:9779")
8user = ("lliurex","lliurex")
9#print c.get_methods("SlapdManager")
10
11print c.configure_ldap_environment_client(user,"PamnssPlugin")
12print c.configure_ldap(user,"PamnssPlugin")
13print c.configure_nsswitch(user,"PamnssPlugin")
14'''
15print c.generate_ssl_certificates(user,"SlapdManager")
16print c.load_lliurex_schema(user,"SlapdManager")
17print c.enable_tls_communication(user,"SlapdManager",'/etc/ldap/slapd.cert','/etc/ldap/slapd.key')
18#c.restore(user,"SlapdManager")
19#c.configure_client_slapd(user,"SlapdManager")
20#c.configure_master_slapd(user,"SlapdManager")
21print c.configure_simple_slapd(user,"SlapdManager")
22print c.load_acl(user,"SlapdManager")
23print c.open_ports_slapd(user,"SlapdManager",'192.168.1.2')
24print c.reboot_slapd(user,"SlapdManager")
25print c.load_basic_struture(user,"SlapdManager")
26print c.change_admin_passwd(user,"SlapdManager","lliurex")
27#c.update_index(user,"SlapdManager")
28#c.test(user,"SlapdManager")
29#c.backup(user,"SlapdManager")
30#c.load_schema(user,"SlapdManager")
31'''
Note: See TracBrowser for help on using the repository browser.