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/* bootparams attributes filters */ 2N/A * _nss_ldap_bootparams2str is the data marshaling method for the 2N/A * bootparams bootparams_getbyname 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 * A host's bootparameters are returned on one line separated by white 2N/A * space. The LDAP server stores each boot parameter as a separate entry. 2N/A * If more than one bootparameter is available, a white space separated buffer 2N/A * must be constructed and returned. 2N/A * Skip client host name. The early version of ldapaddent 2N/A * adds hostname as a boot param and it should be filtered. 2N/A /* The front end marshaller doesn't need to copy trailing nulls */ 2N/A * getbyname gets bootparameters by host name. This function constructs an 2N/A * ldap search filter using the host name invocation parameter and the 2N/A * getbootparambyname search filter defined. Once the filter is 2N/A * constructed, we search for matching entries and marshal the data 2N/A * results into argp->buf.buffer for the frontend process. The function 2N/A * _nss_ldap_bootparams2ent performs the data marshaling. 2N/A * RFC 2307, An Approach for Using LDAP as a Network Information Service, 2N/A * indicates that dn's be fully qualified. Host name searches will be on 2N/A * _nss_ldap_bootparams_constr is where life begins. This function calls 2N/A * the generic ldap constructor function to define and build the abstract 2N/A * data types required to support ldap operations.