summaryrefslogtreecommitdiff
path: root/nslcd.h
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2006-11-03 22:03:21 +0000
committerArthur de Jong <arthur@arthurdejong.org>2006-11-03 22:03:21 +0000
commit207c2deaa5e774dae81022a4714e8a284a316b80 (patch)
treed98885fa2b88a2bf23389dc0528ce82ed69d0a68 /nslcd.h
parent11c173f2fc6eaf67ff0a186e512de401ea20cf00 (diff)
implement initial host database lookups NSS-side
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@69 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd.h')
-rw-r--r--nslcd.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/nslcd.h b/nslcd.h
index 04afcc8..d63681d 100644
--- a/nslcd.h
+++ b/nslcd.h
@@ -77,7 +77,19 @@
LDF_TYPE(GROUP_GID,gid_t) \
LDF_STRINGLIST(GROUP_MEMBERS)
-/* HOSTS - TBD - gethostbyname - struct hostent - gethostbyaddr - struct in_addr */
+/* used for storing address information for the host database */
+/* Note: this marcos is not expanded to code, check manually */
+#define LDF_ADDRESS \
+ LDF_INT32(ADDRESS_TYPE) /* type of address: e.g. AF_INET or AF_INET6 */ \
+ LDF_INT32(ADDRESS_LEN) /* length of the address to follow */ \
+ LDF_BUF(ADDRESS_ADDR) /* the address itself in network byte order */
+
+/* used for transferring host (/etc/hosts) information */
+/* Note: this marcos is not expanded to code, check manually */
+#define LDF_HOST \
+ LDF_STRING(HOST_NAME) \
+ LDF_STRINGLIST(HOST_ALIASES) \
+ LDF_ADDRESSLIST(HOST_ADDRS)
/* NETGROUP - TBD */
@@ -121,6 +133,9 @@
#define NSLCD_ACTION_GROUP_BYGID 5002
#define NSLCD_ACTION_GROUP_BYMEMBER 5003
#define NSLCD_ACTION_GROUP_ALL 5004
+#define NSLCD_ACTION_HOST_BYNAME 6001
+#define NSLCD_ACTION_HOST_BYADDR 6002
+#define NSLCD_ACTION_HOST_ALL 6005
#define NSLCD_ACTION_PASSWD_BYNAME 1001
#define NSLCD_ACTION_PASSWD_BYUID 1002
#define NSLCD_ACTION_PASSWD_ALL 1004