summaryrefslogtreecommitdiff
path: root/source4/libcli/security/security.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-09-30 16:02:09 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-30 16:02:09 +0200
commita36b6c5a42212e175ece8e9f5aa74f2741ec8868 (patch)
tree357389821abfe97f10a8f7026b5a9222342a30b3 /source4/libcli/security/security.py
parent7f1c02cd7a8f4238041406acab061f34c587c69a (diff)
downloadsamba-a36b6c5a42212e175ece8e9f5aa74f2741ec8868.tar.gz
samba-a36b6c5a42212e175ece8e9f5aa74f2741ec8868.tar.bz2
samba-a36b6c5a42212e175ece8e9f5aa74f2741ec8868.zip
Make Sid member variables accessible from Python.
Diffstat (limited to 'source4/libcli/security/security.py')
-rw-r--r--source4/libcli/security/security.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/libcli/security/security.py b/source4/libcli/security/security.py
index c310dde56b..8afb3eda61 100644
--- a/source4/libcli/security/security.py
+++ b/source4/libcli/security/security.py
@@ -147,6 +147,10 @@ security_descriptor_swigregister(security_descriptor)
class Sid(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
+ sid_rev_num = _swig_property(_security.Sid_sid_rev_num_get)
+ num_auths = _swig_property(_security.Sid_num_auths_get)
+ id_auth = _swig_property(_security.Sid_id_auth_get)
+ sub_auths = _swig_property(_security.Sid_sub_auths_get)
def __init__(self, *args, **kwargs):
_security.Sid_swiginit(self,_security.new_Sid(*args, **kwargs))
def __repr__(self):