1 # This file was automatically generated by SWIG (http://www.swig.org).
4 # Don't modify this file, modify the SWIG interface instead.
7 Python bindings for miscellaneous Samba functions.
12 new_instancemethod = new.instancemethod
14 _swig_property = property
16 pass # Python < 2.2 doesn't have 'property'.
17 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
18 if (name == "thisown"): return self.this.own(value)
20 if type(value).__name__ == 'PySwigObject':
21 self.__dict__[name] = value
23 method = class_type.__swig_setmethods__.get(name,None)
24 if method: return method(self,value)
25 if (not static) or hasattr(self,name):
26 self.__dict__[name] = value
28 raise AttributeError("You cannot add attributes to %s" % self)
30 def _swig_setattr(self,class_type,name,value):
31 return _swig_setattr_nondynamic(self,class_type,name,value,0)
33 def _swig_getattr(self,class_type,name):
34 if (name == "thisown"): return self.this.own()
35 method = class_type.__swig_getmethods__.get(name,None)
36 if method: return method(self)
37 raise AttributeError,name
40 try: strthis = "proxy of " + self.this.__repr__()
42 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
46 _object = types.ObjectType
48 except AttributeError:
54 def _swig_setattr_nondynamic_method(set):
55 def set_attr(self,name,value):
56 if (name == "thisown"): return self.this.own(value)
57 if hasattr(self,name) or (name == "this"):
60 raise AttributeError("You cannot add attributes to %s" % self)
69 def random_password(*args, **kwargs):
71 S.random_password(len) -> string
72 Generate random password with specified length.
74 return _misc.random_password(*args, **kwargs)
76 def ldb_set_credentials(*args, **kwargs):
78 S.set_credentials(credentials)
79 Set credentials to use when connecting.
81 return _misc.ldb_set_credentials(*args, **kwargs)
83 def ldb_set_session_info(*args, **kwargs):
85 S.set_session_info(session_info)
86 Set session info to use when connecting.
88 return _misc.ldb_set_session_info(*args, **kwargs)
90 def ldb_set_loadparm(*args, **kwargs):
92 S.set_loadparm(session_info)
93 Set loadparm context to use when connecting.
95 return _misc.ldb_set_loadparm(*args, **kwargs)
97 def samdb_set_domain_sid(*args, **kwargs):
100 Set SID of domain to use.
102 return _misc.samdb_set_domain_sid(*args, **kwargs)
103 dsdb_attach_schema_from_ldif_file = _misc.dsdb_attach_schema_from_ldif_file
108 Obtain the Samba version.
110 return _misc.version(*args)
111 dsdb_set_global_schema = _misc.dsdb_set_global_schema
113 def ldb_register_samba_handlers(*args, **kwargs):
115 register_samba_handlers()
116 Register Samba-specific LDB modules and schemas.
118 return _misc.ldb_register_samba_handlers(*args, **kwargs)
119 dsdb_set_ntds_invocation_id = _misc.dsdb_set_ntds_invocation_id
120 private_path = _misc.private_path