1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-31 20:22:15 +03:00

s4: Better way to call "dom_sid_to_rid" from ldap.py

This commit is contained in:
Matthias Dieter Wallnöfer
2009-08-13 11:37:38 +02:00
parent e2b12c6f6a
commit 44dfb2902e
2 changed files with 12 additions and 4 deletions

View File

@ -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