$result = $ldap->search ( base => "dc=chocolates,dc=com", filter => "appflag=HR", attrs => ['dn']);