2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A/* rpc attributes filters */ 2N/A * _nss_ldap_rpc2str is the data marshaling method for the rpc getXbyY 2N/A * (e.g., getbyname(), getbynumber(), getrpcent()) backend processes. 2N/A * This method is called after a successful ldap search has been performed. 2N/A * This method will parse the ldap search values into the file format. 2N/A * snmp 100122 na.snmp snmp-cmc snmp-synoptics snmp-unisys snmp-utk 2N/A /* Get the canonical rpc name */ 2N/A /* Append aliases */ 2N/A /* Skip the canonical name */ 2N/A /* The front end marshaller doesn't need to copy trailing nulls */ 2N/A * getbyname gets struct rpcent values by rpc name. This function 2N/A * constructs an ldap search filter using the rpc name invocation 2N/A * parameter and the getrpcbyname search filter defined. Once the 2N/A * filter is constructed, we search for a matching entry and marshal 2N/A * the data results into *rpc = (struct rpcent *)argp->buf.result. 2N/A * The function _nss_ldap_rpc2ent performs the data marshaling. 2N/A * getbynumber gets struct rpcent values by rpc number. This function 2N/A * constructs an ldap search filter using the rpc number invocation 2N/A * parameter and the getrpcbynumber search filter defined. Once the 2N/A * filter is constructed, we search for a matching entry and marshal 2N/A * the data results into *rpc = (struct rpcent *)argp->buf.result. 2N/A * The function _nss_ldap_rpc2ent performs the data marshaling. 2N/A * _nss_ldap_rpc_constr is where life begins. This function calls the generic 2N/A * ldap constructor function to define and build the abstract data types 2N/A * required to support ldap operations.