title: Python code to convert from objectSid to SID representation
body: <p>I want to retrieve base64 encoded objectSid from an LDAP query to an Active Directory database and convert them to the standard SID representation. Can you please give me a Python snippet that does that?</p>