summaryrefslogtreecommitdiff
path: root/nslcd.h
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2012-12-23 19:35:12 +0000
committerArthur de Jong <arthur@arthurdejong.org>2012-12-23 19:35:12 +0000
commitf94a0d4e903ea040a38a56096e8f0f0eadb93a40 (patch)
treebb69ff593bc65763c06babd3f5ae30c5842fd87f /nslcd.h
parentc7bb19c55c7a902e25bdd33b0d49a2ddcf62e07a (diff)
update the netgroup by name request to have one result entry per netgroup with multiple rows within one result
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1874 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd.h')
-rw-r--r--nslcd.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/nslcd.h b/nslcd.h
index 86780ac..db77ee2 100644
--- a/nslcd.h
+++ b/nslcd.h
@@ -115,18 +115,25 @@
#define NSLCD_ACTION_HOST_BYADDR 0x00050002
#define NSLCD_ACTION_HOST_ALL 0x00050008
-/* Netgroup NSS request return a number of results. Result values
- can be either a reference to another netgroup:
+/* Netgroup NSS result entries contain a number of parts. A result entry
+ starts with:
+ STRING netgroup name
+ followed by zero or more references to other netgroups or netgroup
+ triples. A reference to another netgroup looks like:
INT32 NSLCD_NETGROUP_TYPE_NETGROUP
STRING other netgroup name
- or a netgroup triple:
+ A a netgroup triple looks like:
INT32 NSLCD_NETGROUP_TYPE_TRIPLE
STRING host
STRING user
- STRING domain */
+ STRING domain
+ A netgroup result entry is terminated by:
+ INT32 NSLCD_NETGROUP_TYPE_END
+ */
#define NSLCD_ACTION_NETGROUP_BYNAME 0x00060001
#define NSLCD_NETGROUP_TYPE_NETGROUP 1
#define NSLCD_NETGROUP_TYPE_TRIPLE 2
+#define NSLCD_NETGROUP_TYPE_END 3
/* Network name (/etc/networks) NSS requests. Result values for a single
entry are: