Commit 7e80de9e authored by Mortier Benoit's avatar Mortier Benoit
Browse files

Added clear error message in case base is not found for some reason

only hand picked the test for acl=0 and no base
Signed-off-by: default avatarMortier Benoit <>
parent 63ae6490
......@@ -688,6 +688,7 @@ sub add_ldap_admin {
attrs => ['objectClass', 'gosaAclEntry']
$acls->code && die "\n! failed to search acls in '$base' - ".$acls->error_name.": ".$acls->error_text;
($acls->count == 0) && die "\n! failed to search acls in '$base' - base not found";
my $oclass = ($acls->entries)[0]->get_value("objectClass", asref => 1);
# Add admin acl
my $newacl = ["0:subtree:$role:".encode_base64($dn, '')];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment