def get_domain_sid(self):
        """
        Return the current domain SID by issuing a LDAP request.

        @return the domain sid or None if a problem occurred.
        """
        results = list(self.query(self.DOMAIN_INFO_FILTER(), ["ObjectSid"]))

        if results:
            return results[0]["objectSid"]

        return None

        Return the current domain SID by issuing a LDAP request.

        @return the domain sid or None if a problem occurred.
        
ldeep/views/ldap_activedirectory.py