summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-09-09 03:40:27 +0000
committerTim Potter <tpot@samba.org>2004-09-09 03:40:27 +0000
commitdb9a152b103a04a72c5f78413d30cb2f77add4ab (patch)
tree26d68459d9422c9a454f350a1b1ed300e5e9f6c1
parent9daa495d6f6b2687e0cac3e3c292573bcae51ab3 (diff)
downloadsamba-db9a152b103a04a72c5f78413d30cb2f77add4ab.tar.gz
samba-db9a152b103a04a72c5f78413d30cb2f77add4ab.tar.xz
samba-db9a152b103a04a72c5f78413d30cb2f77add4ab.zip
r2264: Fix for #1741. Define a struct nss_groupsbymem (thanks lukeh!) for
HPUX 11 which doesn't have one of its own.
-rw-r--r--source/nsswitch/winbind_nss_solaris.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/source/nsswitch/winbind_nss_solaris.c b/source/nsswitch/winbind_nss_solaris.c
index 1afa5677462..f89e7204cec 100644
--- a/source/nsswitch/winbind_nss_solaris.c
+++ b/source/nsswitch/winbind_nss_solaris.c
@@ -49,6 +49,28 @@
#define NSS_ARGS(args) ((nss_XbyY_args_t *)args)
+#ifdef HPUX
+
+/*
+ * HP-UX 11 has no definiton of the nss_groupsbymem structure. This
+ * definition is taken from the nss_ldap project at:
+ * http://www.padl.com/OSS/nss_ldap.html
+ */
+
+struct nss_groupsbymem {
+ const char *username;
+ gid_t *gid_array;
+ int maxgids;
+ int force_slow_way;
+ int (*str2ent)(const char *instr, int instr_len, void *ent,
+ char *buffer, int buflen);
+ nss_status_t (*process_cstr)(const char *instr, int instr_len,
+ struct nss_groupsbymem *);
+ int numgids;
+};
+
+#endif /* HPUX */
+
#define make_pwent_str(dest, src) \
{ \
if((dest = get_static(buffer, buflen, strlen(src)+1)) == NULL) \