getnetgrent.c revision 2
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
145N/A#include "ldap_common.h"
38N/Astatic const char *netgrent_attrs[] = {
145N/Atypedef struct netgroup_name {
2N/A const char *ssd_filter;
61N/A const char *membername;
61N/Astatic netgroup_name_t *
99N/A int i, syntax_err;
99N/A syntax_err = 0;
61N/A terminators++;
99N/A syntax_err++;
99N/A if (*p == terminators[0]) {
99N/A syntax_err++;
99N/A if (syntax_err != 0)
#ifdef DEBUG
for (i = 0; i < nhost; i++)
if (i == nhost)
for (i = 0; i < nusers; i++)
if (i == nusers)
ndomains != 0) {
for (i = 0; i < ndomains; i++)
if (i == ndomains)
char **attrs;
} while (a > attrs);
int ret = 0;
if (ret != 0)
return (ret);
static nss_status_t
int rc;
int ret;
#ifdef DEBUG
name);
return (status1);
#ifdef DEBUG
if (rc != 0)
return (status);
static nss_status_t
#ifdef DEBUG
return (status);
static nss_status_t
return (NSS_SUCCESS);
return (rc);
static nss_status_t
const char *netgroup = (const char *) a;
#ifdef DEBUG
return (NSS_NOTFOUND);
#ifdef DEBUG
if (p == NULL)
free(p);
static nss_status_t
#ifdef DEBUG
static nss_status_t
#ifdef DEBUG
static nss_status_t
int rc;
char **attrs;
char *buffer;
int ret;
#ifdef DEBUG
if (p == NULL)
sizeof (name)) != 0)
sizeof (searchfilter),
#ifdef DEBUG
#ifdef DEBUG
#ifdef DEBUG
p->results);
&domain);
attrs++;
if (rc == 0) {
#ifdef DEBUG
p->attrs);
if (rc != 0) {
return (status);
static nss_status_t
(struct nss_setnetgrent_args *)a;
#ifdef DEBUG
if (p == NULL)
free(p);
return (NSS_UNAVAIL);
return (NSS_SUCCESS);
static nss_status_t
#ifdef DEBUG
const char *dummy3)
#ifdef DEBUG
"\n[getnetgrent.c: _nss_ldap_netgroup_constr]\n");