From 207c2deaa5e774dae81022a4714e8a284a316b80 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Fri, 3 Nov 2006 22:03:21 +0000 Subject: 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 --- nslcd.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'nslcd.h') 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 -- cgit v1.2.3