Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nss/netgroup.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2015-01-19 23:08:59 +0100
committerArthur de Jong <arthur@arthurdejong.org>2015-01-19 23:09:45 +0100
commitee82d2f519cc97aa433cf050b6c96d3430aa5a61 (patch)
treef95189a2fa6a9f018ddcd6b1fbb72721f5c24b0c /nss/netgroup.c
parented8b312f0968ce4fd9059b0ebb52d993cf3cdf36 (diff)
Allow configuration of NSS and PAM names
This introduces the --with-module-name configure option to allow building of NSS and PAM modules with different namespaces than ldap.
Diffstat (limited to 'nss/netgroup.c')
-rw-r--r--nss/netgroup.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/nss/netgroup.c b/nss/netgroup.c
index 81eb33d..cd2e5b0 100644
--- a/nss/netgroup.c
+++ b/nss/netgroup.c
@@ -2,7 +2,7 @@
netgroup.c - NSS lookup functions for netgroup entries
Copyright (C) 2006 West Consulting
- Copyright (C) 2006-2014 Arthur de Jong
+ Copyright (C) 2006-2015 Arthur de Jong
Copyright (C) 2010 Symas Corporation
This library is free software; you can redistribute it and/or
@@ -82,7 +82,7 @@ static nss_status_t read_netgrent_line(TFILE *fp, struct __netgrent *result,
return NSS_STATUS_SUCCESS;
}
else if (type == NSLCD_NETGROUP_TYPE_END)
- /* make _nss_ldap_getnetgrent_r() indicate the end of the netgroup */
+ /* make NSS_NAME(getnetgrent_r)() indicate the end of the netgroup */
return NSS_STATUS_RETURN;
/* we got something unexpected */
ERROR_OUT_NOSUCCESS(fp);
@@ -95,7 +95,7 @@ static nss_status_t read_netgrent_line(TFILE *fp, struct __netgrent *result,
static TLS TFILE *netgrentfp;
/* start a request to get a netgroup by name */
-nss_status_t _nss_ldap_setnetgrent(const char *group,
+nss_status_t NSS_NAME(setnetgrent)(const char *group,
struct __netgrent UNUSED(*result))
{
/* we cannot use NSS_SETENT() here because we have a parameter that is only
@@ -118,7 +118,7 @@ nss_status_t _nss_ldap_setnetgrent(const char *group,
}
/* get a single netgroup tuple from the stream */
-nss_status_t _nss_ldap_getnetgrent_r(struct __netgrent *result,
+nss_status_t NSS_NAME(getnetgrent_r)(struct __netgrent *result,
char *buffer, size_t buflen, int *errnop)
{
nss_status_t retv;
@@ -153,7 +153,7 @@ nss_status_t _nss_ldap_getnetgrent_r(struct __netgrent *result,
}
/* close the stream opened with setnetgrent() above */
-nss_status_t _nss_ldap_endnetgrent(struct __netgrent UNUSED(*result))
+nss_status_t NSS_NAME(endnetgrent)(struct __netgrent UNUSED(*result))
{
NSS_ENDENT(netgrentfp);
}
@@ -356,11 +356,11 @@ static nss_backend_op_t netgroup_ops[] = {
NULL,
NULL,
NULL,
- NULL, /* TODO:_nss_ldap_netgr_in */
+ NULL, /* TODO:NSS_NAME(netgr_in) */
netgroup_setnetgrent_constructor
};
-nss_backend_t *_nss_ldap_netgroup_constr(const char UNUSED(*db_name),
+nss_backend_t *NSS_NAME(netgroup_constr)(const char UNUSED(*db_name),
const char UNUSED(*src_name),
const char UNUSED(*cfg_args))
{