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:
@ -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
|
||||
|
Reference in New Issue
Block a user