source: n4d-samba/trunk/fuentes/example_init_education.py @ 186

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

adding project files

  • Property svn:executable set to *
File size: 814 bytes
Line 
1#!/usr/bin/python
2import xmlrpclib
3
4ip_server = '10.0.0.246'
5c = xmlrpclib.ServerProxy("https://"+ip_server+":9779")
6#c = xmlrpclib.ServerProxy("https://192.168.1.2:9779")
7user = ("lliurex","lliurex")
8
9#print c.get_methods('SambaManager')
10
11#restore : adm admins
12#print c.load_schema(user,'SambaManager')
13#print c.load_index(user,'SambaManager')
14#print c.load_basic_structure(user,'SambaManager')
15#print c.load_all_system_groups(user,'SambaManager')
16print c.load_net_admin_user(user,'SambaManager','lliurex')
17#print c.load_admin_system_user(user,'SambaManager')
18#print c.load_education(user,'SambaManager')
19#print c.configure_smb(user,'SambaManager')
20#print c.load_acl_samba_education(user,'SambaManager')
21#print c.update_root_password_samba(user,'SambaManager','lliurex')
22#test : * anonymous
23#backup : adm admins
Note: See TracBrowser for help on using the repository browser.