summaryrefslogtreecommitdiff
path: root/server/nss/nsssrv_ldb.h
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-10-14 05:42:43 -0400
committerSimo Sorce <idra@samba.org>2008-10-14 05:42:43 -0400
commit1170303766a4962cbb3253b8404a258bcfac8bf3 (patch)
treee87a31111ff18e5150b6b015b9ee89c689038998 /server/nss/nsssrv_ldb.h
parente33930a92ec392cd4a36d24114f2ab1946d9ad4b (diff)
downloadsssd-1170303766a4962cbb3253b8404a258bcfac8bf3.tar.gz
sssd-1170303766a4962cbb3253b8404a258bcfac8bf3.tar.bz2
sssd-1170303766a4962cbb3253b8404a258bcfac8bf3.zip
Fix error in parsing multiple groups
Revert to use 'cn' for group names Implement getgrent()
Diffstat (limited to 'server/nss/nsssrv_ldb.h')
-rw-r--r--server/nss/nsssrv_ldb.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/nss/nsssrv_ldb.h b/server/nss/nsssrv_ldb.h
index ebb97255..8cc7ebca 100644
--- a/server/nss/nsssrv_ldb.h
+++ b/server/nss/nsssrv_ldb.h
@@ -6,7 +6,7 @@
#define NSS_PW_HOMEDIR "HomeDirectory"
#define NSS_PW_SHELL "loginShell"
-#define NSS_GR_NAME "gid"
+#define NSS_GR_NAME "cn"
#define NSS_GR_GIDNUM "gidNumber"
#define NSS_GR_MEMBER "member"
@@ -45,3 +45,8 @@ int nss_ldb_getgrgid(TALLOC_CTX *mem_ctx,
uint64_t gid,
nss_ldb_callback_t fn, void *ptr);
+int nss_ldb_enumgrent(TALLOC_CTX *mem_ctx,
+ struct event_context *ev,
+ struct ldb_context *ldb,
+ nss_ldb_callback_t fn, void *ptr);
+