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 (c) 2012, Oracle and/or its affiliates. All rights reserved. 2N/A return (0);
/* no match */ 2N/A * getuserattrnam - get an attribute of the user. 2N/A * Entry user = username. 2N/A * key = the key name of the attribute. 2N/A * where = pointer to where to return the name of 2N/A * where the attribute was found. 2N/A * = NULL, don't return where found. 2N/A * deflt = configuration file to get find a local 2N/A * default copy if no explicit attribute 2N/A * Exit NULL = if not found or other error such as ENOMEM. 2N/A * pointer to allocated memory for the attribute requested. 2N/A * *where = NULL, if where is specified, ENOMEM. 2N/A * Finds the first value associated with key for the user 2N/A * by first searching attributes directly assigned to the 2N/A * user, then attributes of the profiles of the user, and 2N/A * Memory for the returned value and the optional where should be 2N/A * released when no longer in use with free(3C). 2N/A * Not to be used to enumerate the user's profiles or authorizations. 2N/A /* enumerate attributes for a user */