summaryrefslogtreecommitdiff
path: root/server/responder/nss
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-08-31 10:10:59 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-08-31 15:09:53 -0400
commit2cfd9562a4e7fae31c226c12a467d0225d42a89f (patch)
tree5798ee4f237bf88a3a7709b2fd5280615ca13420 /server/responder/nss
parent83763b67a8e7fa6533a6389cace47ec83ef32d0b (diff)
downloadsssd-2cfd9562a4e7fae31c226c12a467d0225d42a89f.tar.gz
sssd-2cfd9562a4e7fae31c226c12a467d0225d42a89f.tar.bz2
sssd-2cfd9562a4e7fae31c226c12a467d0225d42a89f.zip
Turn enumeration into a boolean value
Diffstat (limited to 'server/responder/nss')
-rw-r--r--server/responder/nss/nsssrv.h4
-rw-r--r--server/responder/nss/nsssrv_cmd.c8
2 files changed, 4 insertions, 8 deletions
diff --git a/server/responder/nss/nsssrv.h b/server/responder/nss/nsssrv.h
index e9bae0f9..c5a7bb30 100644
--- a/server/responder/nss/nsssrv.h
+++ b/server/responder/nss/nsssrv.h
@@ -39,10 +39,6 @@
#define NSS_PACKET_MAX_RECV_SIZE 1024
-#define NSS_ENUM_USERS 0x01
-#define NSS_ENUM_GROUPS 0x02
-#define NSS_ENUM_ALL 0x03
-
#define NSS_SRV_CONFIG "config/services/nss"
struct getent_ctx;
diff --git a/server/responder/nss/nsssrv_cmd.c b/server/responder/nss/nsssrv_cmd.c
index 30fbc15a..88749e9e 100644
--- a/server/responder/nss/nsssrv_cmd.c
+++ b/server/responder/nss/nsssrv_cmd.c
@@ -1022,7 +1022,7 @@ static void nss_cmd_setpwent_callback(void *ptr, int status,
/* do not reply until all domain searches are done */
for (dom = dctx->domain->next; dom; dom = dom->next) {
- if ((dom->enumerate & NSS_ENUM_USERS) != 0) break;
+ if (dom->enumerate != 0) break;
}
dctx->domain = dom;
@@ -1150,7 +1150,7 @@ static int nss_cmd_setpwent_ext(struct cli_ctx *cctx, bool immediate)
/* check if enumeration is enabled in any domain */
for (dom = cctx->rctx->domains; dom; dom = dom->next) {
- if ((dom->enumerate & NSS_ENUM_USERS) != 0) break;
+ if (dom->enumerate != 0) break;
}
dctx->domain = dom;
@@ -2350,7 +2350,7 @@ static void nss_cmd_setgrent_callback(void *ptr, int status,
/* do not reply until all domain searches are done */
for (dom = dctx->domain->next; dom; dom = dom->next) {
- if ((dom->enumerate & NSS_ENUM_GROUPS) != 0) break;
+ if (dom->enumerate != 0) break;
}
dctx->domain = dom;
@@ -2478,7 +2478,7 @@ static int nss_cmd_setgrent_ext(struct cli_ctx *cctx, bool immediate)
/* check if enumeration is enabled in any domain */
for (dom = cctx->rctx->domains; dom; dom = dom->next) {
- if ((dom->enumerate & NSS_ENUM_GROUPS) != 0) break;
+ if (dom->enumerate != 0) break;
}
dctx->domain = dom;