Skip to content
Snippets Groups Projects
Commit 66aeba24 authored by Jarek Polok's avatar Jarek Polok :speech_balloon:
Browse files

dont die on empty result

parent 4d752593
No related branches found
No related tags found
No related merge requests found
PACKAGE=aims2
EMAIL=Linux.Support@cern.ch
VERSION=2.22
VERSION=2.23
RELEASE=1
......@@ -72,10 +72,6 @@ sub ldap_search
# search the tree.
my $result = $ldap->search( base => "$base", scope => "sub", filter => "$filter" ); # todo: fix for 7 !, attrs =>$attrs );
unless($result->count > 0){
die "Error: LDAP failed to return user information (while searching for: $filter) \n";
# # die "Error: LDAP failed to return user information.\n"
}
# 'pointer' to entry
return $result;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment