Make ldap server key permissions task conditional