Updated Samba's AD and OpenLDAP to use perl API to query rootDse instead of a plain LDAP search