summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-09-09 03:40:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:38 -0500
commit516753896a6eb713ccaac53e261a833d082b79e8 (patch)
tree08d095f556c84ac208768543b5521a72c5a05d70 /source3/nsswitch
parentf9ebee99a7d67fa3d64e92b23598957812ebd611 (diff)
downloadsamba-516753896a6eb713ccaac53e261a833d082b79e8.tar.gz
samba-516753896a6eb713ccaac53e261a833d082b79e8.tar.bz2
samba-516753896a6eb713ccaac53e261a833d082b79e8.zip
r2264: Fix for #1741. Define a struct nss_groupsbymem (thanks lukeh!) for
HPUX 11 which doesn't have one of its own. (This used to be commit 3d275d1eee9644651dcbb61a342648e878fe3506)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbind_nss_solaris.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/source3/nsswitch/winbind_nss_solaris.c b/source3/nsswitch/winbind_nss_solaris.c
index 1afa567746..f89e7204ce 100644
--- a/source3/nsswitch/winbind_nss_solaris.c
+++ b/source3/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) \