LDAP: Fixed handling of invalid group values Updated LDAP group handling to properly handle empty group values by checking the explode’s count property instead of performing a general array count. Also updated logic with DN validation/filtering before LDAP calls are made. For #6088