1 # This file was automatically generated by SWIG (http://www.swig.org).
4 # Don't modify this file, modify the SWIG interface instead.
8 new_instancemethod
= new
.instancemethod
10 _swig_property
= property
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
)
16 if type(value
).__name
__ == 'PySwigObject':
17 self
.__dict
__[name
] = value
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
24 raise AttributeError("You cannot add attributes to %s" % self
)
26 def _swig_setattr(self
,class_type
,name
,value
):
27 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
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
36 try: strthis
= "proxy of " + self
.this
.__repr
__()
38 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
42 _object
= types
.ObjectType
44 except AttributeError:
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"):
56 raise AttributeError("You cannot add attributes to %s" % self
)
60 class Credentials(object):
61 thisown
= _swig_property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
63 def __init__(self
, *args
, **kwargs
):
64 _dcerpc
.Credentials_swiginit(self
,_dcerpc
.new_Credentials(*args
, **kwargs
))
65 __swig_destroy__
= _dcerpc
.delete_Credentials
66 Credentials
.get_username
= new_instancemethod(_dcerpc
.Credentials_get_username
,None,Credentials
)
67 Credentials
.set_username
= new_instancemethod(_dcerpc
.Credentials_set_username
,None,Credentials
)
68 Credentials
.get_password
= new_instancemethod(_dcerpc
.Credentials_get_password
,None,Credentials
)
69 Credentials
.set_password
= new_instancemethod(_dcerpc
.Credentials_set_password
,None,Credentials
)
70 Credentials
.get_domain
= new_instancemethod(_dcerpc
.Credentials_get_domain
,None,Credentials
)
71 Credentials
.set_domain
= new_instancemethod(_dcerpc
.Credentials_set_domain
,None,Credentials
)
72 Credentials
.get_realm
= new_instancemethod(_dcerpc
.Credentials_get_realm
,None,Credentials
)
73 Credentials
.set_realm
= new_instancemethod(_dcerpc
.Credentials_set_realm
,None,Credentials
)
74 Credentials
.parse_string
= new_instancemethod(_dcerpc
.Credentials_parse_string
,None,Credentials
)
75 Credentials
.get_bind_dn
= new_instancemethod(_dcerpc
.Credentials_get_bind_dn
,None,Credentials
)
76 Credentials
.set_bind_dn
= new_instancemethod(_dcerpc
.Credentials_set_bind_dn
,None,Credentials
)
77 Credentials
.get_workstation
= new_instancemethod(_dcerpc
.Credentials_get_workstation
,None,Credentials
)
78 Credentials
.set_workstation
= new_instancemethod(_dcerpc
.Credentials_set_workstation
,None,Credentials
)
79 Credentials
.guess
= new_instancemethod(_dcerpc
.Credentials_guess
,None,Credentials
)
80 Credentials
.is_anonymous
= new_instancemethod(_dcerpc
.Credentials_is_anonymous
,None,Credentials
)
81 Credentials
.get_nt_hash
= new_instancemethod(_dcerpc
.Credentials_get_nt_hash
,None,Credentials
)
82 Credentials
.authentication_requested
= new_instancemethod(_dcerpc
.Credentials_authentication_requested
,None,Credentials
)
83 Credentials
.wrong_password
= new_instancemethod(_dcerpc
.Credentials_wrong_password
,None,Credentials
)
84 Credentials_swigregister
= _dcerpc
.Credentials_swigregister
85 Credentials_swigregister(Credentials
)
87 pipe_connect
= _dcerpc
.pipe_connect
88 dcerpc_server_name
= _dcerpc
.dcerpc_server_name