tsol_getrhent.c revision 45916cd2fec6e79bca5dee0421bd39e3c2910d1e
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <netdb.h>
#include "ldap_common.h"
/* tnrhdb attributes filters */
#define _TNRHDB_ADDR "ipTnetNumber"
#define _TNRHDB_TNAME "ipTnetTemplateName"
#define _F_GETTNDBBYADDR "(&(objectClass=ipTnetHost)(ipTnetNumber=%s))"
#define _F_GETTNDBBYADDR_SSD "(&(%%s)(ipTnetNumber=%s))"
static const char *tnrhdb_attrs[] = {
};
static int
{
int i, nss_result;
int len = 0;
int buflen = 0;
goto result_tnrhdb2ent;
}
goto result_tnrhdb2ent;
}
goto result_tnrhdb2ent;
}
goto result_tnrhdb2ent;
}
nss_result = (int)NSS_STR_PARSE_ERANGE;
goto result_tnrhdb2ent;
}
continue;
}
goto result_tnrhdb2ent;
}
nss_result = (int)NSS_STR_PARSE_ERANGE;
goto result_tnrhdb2ent;
}
continue;
}
}
#ifdef DEBUG
(void) printf("\n[tsol_getrhent.c: _nss_ldap_tnrhdb2ent]\n");
(void) printf(" address: [%s]\n",
(void) printf("template: [%s]\n",
#endif /* DEBUG */
return (nss_result);
}
static nss_status_t
{
char searchfilter[SEARCHFILTERLEN];
char userdata[SEARCHFILTERLEN];
char buf[18];
extern char *inet_ntoa_r();
#ifdef DEBUG
#endif /* DEBUG */
buf) < 0)
return ((nss_status_t)NSS_NOTFOUND);
buf) < 0)
return ((nss_status_t)NSS_NOTFOUND);
}
static ldap_backend_op_t tnrhdb_ops[] = {
};
/* ARGSUSED */
_nss_ldap_tnrhdb_constr(const char *dummy1,
const char *dummy2,
const char *dummy3,
const char *dummy4,
const char *dummy5)
{
#ifdef DEBUG
"\n[tsol_getrhent.c: _nss_ldap_tnrhdb_constr]\n");
#endif
}