Added a disting get-keys authorization for kadmind.
This commit is contained in:

committed by
Nicolas Williams

parent
3d0019d3ce
commit
45294a93a7
@@ -44,6 +44,7 @@ static struct units acl_units[] = {
|
||||
{ "modify", KADM5_PRIV_MODIFY },
|
||||
{ "add", KADM5_PRIV_ADD },
|
||||
{ "get", KADM5_PRIV_GET },
|
||||
{ "get-keys", KADM5_PRIV_GET_KEYS },
|
||||
{ NULL, 0 }
|
||||
};
|
||||
|
||||
@@ -177,6 +178,8 @@ check_flags (unsigned op,
|
||||
|
||||
if(res & KADM5_PRIV_GET)
|
||||
return KADM5_AUTH_GET;
|
||||
if(res & KADM5_PRIV_GET_KEYS)
|
||||
return KADM5_AUTH_GET;
|
||||
if(res & KADM5_PRIV_ADD)
|
||||
return KADM5_AUTH_ADD;
|
||||
if(res & KADM5_PRIV_MODIFY)
|
||||
|
Reference in New Issue
Block a user