kadm5_s_get_principals() is a read only operation, so open the HDB in r/o mode.
This commit is contained in:
@@ -87,7 +87,7 @@ kadm5_s_get_principals(void *server_handle,
|
|||||||
kadm5_ret_t ret;
|
kadm5_ret_t ret;
|
||||||
|
|
||||||
if (!context->keep_open) {
|
if (!context->keep_open) {
|
||||||
ret = context->db->hdb_open(context->context, context->db, O_RDWR, 0);
|
ret = context->db->hdb_open(context->context, context->db, O_RDONLY, 0);
|
||||||
if(ret) {
|
if(ret) {
|
||||||
krb5_warn(context->context, ret, "opening database");
|
krb5_warn(context->context, ret, "opening database");
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user