diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2006-11-03 23:03:21 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2006-11-03 23:03:21 +0100 |
commit | 207c2deaa5e774dae81022a4714e8a284a316b80 (patch) | |
tree | d98885fa2b88a2bf23389dc0528ce82ed69d0a68 /nslcd.h | |
parent | 11c173f2fc6eaf67ff0a186e512de401ea20cf00 (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.h | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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 |