summaryrefslogtreecommitdiff
path: root/server/nss/nsssrv_ldb.h
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-10-08 12:20:49 -0400
committerSimo Sorce <idra@samba.org>2008-10-08 12:24:14 -0400
commit07111cfbf95dd0ec4d5985f541073b15b904a329 (patch)
treefce720264b52fb087fb7b30a75ca87ea0a6defff /server/nss/nsssrv_ldb.h
parent77db18dd9e52f3937af360f1a14c4b7cf0fef83d (diff)
downloadsssd-07111cfbf95dd0ec4d5985f541073b15b904a329.tar.gz
sssd-07111cfbf95dd0ec4d5985f541073b15b904a329.tar.bz2
sssd-07111cfbf95dd0ec4d5985f541073b15b904a329.zip
First retrieval of a user (getpwnam only) from an actual ldb file
Diffstat (limited to 'server/nss/nsssrv_ldb.h')
-rw-r--r--server/nss/nsssrv_ldb.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/server/nss/nsssrv_ldb.h b/server/nss/nsssrv_ldb.h
new file mode 100644
index 00000000..a50216d0
--- /dev/null
+++ b/server/nss/nsssrv_ldb.h
@@ -0,0 +1,19 @@
+
+#define NSS_PW_NAME "uid"
+#define NSS_PW_UIDNUM "uidNumber"
+#define NSS_PW_GIDNUM "gidNumber"
+#define NSS_PW_FULLNAME "fullName"
+#define NSS_PW_HOMEDIR "HomeDirectory"
+#define NSS_PW_SHELL "loginShell"
+
+typedef int (*nss_ldb_callback_t)(void *, int, struct ldb_result *);
+
+int nss_ldb_init(TALLOC_CTX *mem_ctx,
+ struct event_context *ev,
+ struct ldb_context **ldb);
+
+int nss_ldb_getpwnam(TALLOC_CTX *mem_ctx,
+ struct event_context *ev,
+ struct ldb_context *ldb,
+ const char *name,
+ nss_ldb_callback_t fn, void *ptr);