summaryrefslogtreecommitdiff
path: root/src/responder/nss/nsssrv_cmd.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-01-21 16:16:41 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-01-27 09:02:01 -0500
commit8c3a4809b3420657289b42f028a1c9019b112991 (patch)
tree89b11a12d0c6df6e61eb950baddecf5790b39771 /src/responder/nss/nsssrv_cmd.c
parent91034cafa31fcd8a625e7c8ad35029132ac40970 (diff)
downloadsssd-8c3a4809b3420657289b42f028a1c9019b112991.tar.gz
sssd-8c3a4809b3420657289b42f028a1c9019b112991.tar.bz2
sssd-8c3a4809b3420657289b42f028a1c9019b112991.zip
NSS: Add getservbyname and getservbyport support to the NSS Responder
Diffstat (limited to 'src/responder/nss/nsssrv_cmd.c')
-rw-r--r--src/responder/nss/nsssrv_cmd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c
index 4b5f6784..579c7602 100644
--- a/src/responder/nss/nsssrv_cmd.c
+++ b/src/responder/nss/nsssrv_cmd.c
@@ -23,6 +23,7 @@
#include "responder/nss/nsssrv.h"
#include "responder/nss/nsssrv_private.h"
#include "responder/nss/nsssrv_netgroup.h"
+#include "responder/nss/nsssrv_services.h"
#include "responder/common/negcache.h"
#include "confdb/confdb.h"
#include "db/sysdb.h"
@@ -3371,6 +3372,11 @@ static struct sss_cmd_table nss_cmds[] = {
{SSS_NSS_SETNETGRENT, nss_cmd_setnetgrent},
{SSS_NSS_GETNETGRENT, nss_cmd_getnetgrent},
{SSS_NSS_ENDNETGRENT, nss_cmd_endnetgrent},
+ {SSS_NSS_GETSERVBYNAME, nss_cmd_getservbyname},
+ {SSS_NSS_GETSERVBYPORT, nss_cmd_getservbyport},
+ {SSS_NSS_SETSERVENT, nss_cmd_setservent},
+ {SSS_NSS_GETSERVENT, nss_cmd_getservent},
+ {SSS_NSS_ENDSERVENT, nss_cmd_endservent},
{SSS_CLI_NULL, NULL}
};