Fix and test python scripts and kerberos
[samba.git] / source4 / auth / credentials / credentials.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 1.3.33
3 #
4 # Don't modify this file, modify the SWIG interface instead.
5
6 import _credentials
7 import new
8 new_instancemethod = new.instancemethod
9 try:
10     _swig_property = property
11 except NameError:
12     pass # Python < 2.2 doesn't have 'property'.
13 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
14     if (name == "thisown"): return self.this.own(value)
15     if (name == "this"):
16         if type(value).__name__ == 'PySwigObject':
17             self.__dict__[name] = value
18             return
19     method = class_type.__swig_setmethods__.get(name,None)
20     if method: return method(self,value)
21     if (not static) or hasattr(self,name):
22         self.__dict__[name] = value
23     else:
24         raise AttributeError("You cannot add attributes to %s" % self)
25
26 def _swig_setattr(self,class_type,name,value):
27     return _swig_setattr_nondynamic(self,class_type,name,value,0)
28
29 def _swig_getattr(self,class_type,name):
30     if (name == "thisown"): return self.this.own()
31     method = class_type.__swig_getmethods__.get(name,None)
32     if method: return method(self)
33     raise AttributeError,name
34
35 def _swig_repr(self):
36     try: strthis = "proxy of " + self.this.__repr__()
37     except: strthis = ""
38     return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
39
40 import types
41 try:
42     _object = types.ObjectType
43     _newclass = 1
44 except AttributeError:
45     class _object : pass
46     _newclass = 0
47 del types
48
49
50 def _swig_setattr_nondynamic_method(set):
51     def set_attr(self,name,value):
52         if (name == "thisown"): return self.this.own(value)
53         if hasattr(self,name) or (name == "this"):
54             set(self,name,value)
55         else:
56             raise AttributeError("You cannot add attributes to %s" % self)
57     return set_attr
58
59
60 import param
61 AUTO_USE_KERBEROS = _credentials.AUTO_USE_KERBEROS
62 DONT_USE_KERBEROS = _credentials.DONT_USE_KERBEROS
63 MUST_USE_KERBEROS = _credentials.MUST_USE_KERBEROS
64 class Credentials(object):
65     thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
66     __repr__ = _swig_repr
67     def __init__(self, *args, **kwargs): 
68         _credentials.Credentials_swiginit(self,_credentials.new_Credentials(*args, **kwargs))
69     __swig_destroy__ = _credentials.delete_Credentials
70 Credentials.get_username = new_instancemethod(_credentials.Credentials_get_username,None,Credentials)
71 Credentials.set_username = new_instancemethod(_credentials.Credentials_set_username,None,Credentials)
72 Credentials.get_password = new_instancemethod(_credentials.Credentials_get_password,None,Credentials)
73 Credentials.set_password = new_instancemethod(_credentials.Credentials_set_password,None,Credentials)
74 Credentials.get_domain = new_instancemethod(_credentials.Credentials_get_domain,None,Credentials)
75 Credentials.set_domain = new_instancemethod(_credentials.Credentials_set_domain,None,Credentials)
76 Credentials.get_realm = new_instancemethod(_credentials.Credentials_get_realm,None,Credentials)
77 Credentials.set_realm = new_instancemethod(_credentials.Credentials_set_realm,None,Credentials)
78 Credentials.set_kerberos_state = new_instancemethod(_credentials.Credentials_set_kerberos_state,None,Credentials)
79 Credentials.parse_string = new_instancemethod(_credentials.Credentials_parse_string,None,Credentials)
80 Credentials.get_bind_dn = new_instancemethod(_credentials.Credentials_get_bind_dn,None,Credentials)
81 Credentials.set_bind_dn = new_instancemethod(_credentials.Credentials_set_bind_dn,None,Credentials)
82 Credentials.set_anonymous = new_instancemethod(_credentials.Credentials_set_anonymous,None,Credentials)
83 Credentials.get_workstation = new_instancemethod(_credentials.Credentials_get_workstation,None,Credentials)
84 Credentials.set_workstation = new_instancemethod(_credentials.Credentials_set_workstation,None,Credentials)
85 Credentials.guess = new_instancemethod(_credentials.Credentials_guess,None,Credentials)
86 Credentials.is_anonymous = new_instancemethod(_credentials.Credentials_is_anonymous,None,Credentials)
87 Credentials.get_nt_hash = new_instancemethod(_credentials.Credentials_get_nt_hash,None,Credentials)
88 Credentials.authentication_requested = new_instancemethod(_credentials.Credentials_authentication_requested,None,Credentials)
89 Credentials.wrong_password = new_instancemethod(_credentials.Credentials_wrong_password,None,Credentials)
90 Credentials.set_cmdline_callbacks = new_instancemethod(_credentials.Credentials_set_cmdline_callbacks,None,Credentials)
91 Credentials_swigregister = _credentials.Credentials_swigregister
92 Credentials_swigregister(Credentials)
93
94
95