source: n4d-ldap/trunk/fuentes/example_init_simple_server.py @ 149

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

adding project files

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