Fixed the objectSid calculation for Active Directory LDAP