diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-08-13 11:37:38 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-08-14 00:14:15 +0200 |
commit | 44dfb2902e338924736447236989c6ed231f411b (patch) | |
tree | b9ba6bc3f016aaa84ebb4d6a20d019d1805931a4 /source4/scripting/python | |
parent | e2b12c6f6acf9ed833bf584cd2556a83d59b01eb (diff) | |
download | samba-44dfb2902e338924736447236989c6ed231f411b.tar.gz samba-44dfb2902e338924736447236989c6ed231f411b.tar.bz2 samba-44dfb2902e338924736447236989c6ed231f411b.zip |
s4: Better way to call "dom_sid_to_rid" from ldap.py
Diffstat (limited to 'source4/scripting/python')
-rw-r--r-- | source4/scripting/python/samba/__init__.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/__init__.py b/source4/scripting/python/samba/__init__.py index 164803bb65..e6875b3f02 100644 --- a/source4/scripting/python/samba/__init__.py +++ b/source4/scripting/python/samba/__init__.py @@ -242,6 +242,16 @@ def valid_netbios_name(name): return False return True + +def dom_sid_to_rid(sid_str): + """Converts a domain SID to the relative RID. + + :param sid_str: The domain SID formatted as string + """ + + return glue.dom_sid_to_rid(sid_str) + + version = glue.version DS_BEHAVIOR_WIN2000 = glue.DS_BEHAVIOR_WIN2000 |