diff options
Diffstat (limited to 'src/providers/proxy/proxy_id.c')
-rw-r--r-- | src/providers/proxy/proxy_id.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/providers/proxy/proxy_id.c b/src/providers/proxy/proxy_id.c index 3fe58f3a..ead6ce08 100644 --- a/src/providers/proxy/proxy_id.c +++ b/src/providers/proxy/proxy_id.c @@ -1138,6 +1138,20 @@ void proxy_get_account_info(struct be_req *breq) ret = get_initgr(breq, ctx, sysdb, domain, ar->filter_value); break; + case BE_REQ_NETGROUP: + if (ar->filter_type != BE_FILTER_NAME) { + return proxy_reply(breq, DP_ERR_FATAL, + EINVAL, "Invalid filter type"); + } + if (ctx->ops.setnetgrent == NULL || ctx->ops.getnetgrent_r == NULL || + ctx->ops.endnetgrent == NULL) { + return proxy_reply(breq, DP_ERR_FATAL, + ENODEV, "Netgroups are not supported"); + } + + return proxy_reply(breq, DP_ERR_FATAL, + ENOSYS, "Netgroups not implemented"); + default: /*fail*/ return proxy_reply(breq, DP_ERR_FATAL, EINVAL, "Invalid request type"); |