summaryrefslogtreecommitdiff
path: root/server/nss/nsssrv_ldb.h
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-10-12 16:37:55 -0400
committerSimo Sorce <idra@samba.org>2008-10-12 16:37:55 -0400
commit40b2779eab3a91e6e1f131bbb1b85facaf3c4eaf (patch)
tree1c9ed9369a5327cba99aae6bf23ae63a0b077b67 /server/nss/nsssrv_ldb.h
parent38a6ec436bef7a1a43da09750721e00b86724645 (diff)
downloadsssd-40b2779eab3a91e6e1f131bbb1b85facaf3c4eaf.tar.gz
sssd-40b2779eab3a91e6e1f131bbb1b85facaf3c4eaf.tar.bz2
sssd-40b2779eab3a91e6e1f131bbb1b85facaf3c4eaf.zip
Implement getgrnam()
Diffstat (limited to 'server/nss/nsssrv_ldb.h')
-rw-r--r--server/nss/nsssrv_ldb.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/nss/nsssrv_ldb.h b/server/nss/nsssrv_ldb.h
index a57a9119..9998714a 100644
--- a/server/nss/nsssrv_ldb.h
+++ b/server/nss/nsssrv_ldb.h
@@ -6,6 +6,10 @@
#define NSS_PW_HOMEDIR "HomeDirectory"
#define NSS_PW_SHELL "loginShell"
+#define NSS_GR_NAME "gid"
+#define NSS_GR_GIDNUM "gidNumber"
+#define NSS_GR_MEMBER "member"
+
typedef int (*nss_ldb_callback_t)(void *, int, struct ldb_result *);
int nss_ldb_init(TALLOC_CTX *mem_ctx,
@@ -28,3 +32,10 @@ int nss_ldb_enumpwent(TALLOC_CTX *mem_ctx,
struct event_context *ev,
struct ldb_context *ldb,
nss_ldb_callback_t fn, void *ptr);
+
+int nss_ldb_getgrnam(TALLOC_CTX *mem_ctx,
+ struct event_context *ev,
+ struct ldb_context *ldb,
+ const char *name,
+ nss_ldb_callback_t fn, void *ptr);
+