cmd_getval(g_ceph_context, cmdmap, "prefix", prefix);
if (prefix == "auth add" ||
prefix == "auth del" ||
+ prefix == "auth rm" ||
prefix == "auth get-or-create" ||
prefix == "auth get-or-create-key" ||
prefix == "auth import" ||
wait_for_finished_proposal(op, new Monitor::C_Command(mon, op, 0, rs,
get_last_committed() + 1));
return true;
- } else if (prefix == "auth del" && !entity_name.empty()) {
+ } else if ((prefix == "auth del" || prefix == "auto rm") &&
+ !entity_name.empty()) {
KeyServerData::Incremental auth_inc;
auth_inc.name = entity;
if (!mon->key_server.contains(auth_inc.name)) {
"name=entity,type=CephString", \
"delete all caps for <name>", \
"auth", "rwx", "cli,rest")
+COMMAND("auth rm " \
+ "name=entity,type=CephString", \
+ "remove all caps for <name>", \
+ "auth", "rwx", "cli,rest")
/*
* Monitor commands (Monitor.cc)