1*e8c27ec8Sbaban /* 2*e8c27ec8Sbaban * CDDL HEADER START 3*e8c27ec8Sbaban * 4*e8c27ec8Sbaban * The contents of this file are subject to the terms of the 5*e8c27ec8Sbaban * Common Development and Distribution License (the "License"). 6*e8c27ec8Sbaban * You may not use this file except in compliance with the License. 7*e8c27ec8Sbaban * 8*e8c27ec8Sbaban * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*e8c27ec8Sbaban * or http://www.opensolaris.org/os/licensing. 10*e8c27ec8Sbaban * See the License for the specific language governing permissions 11*e8c27ec8Sbaban * and limitations under the License. 12*e8c27ec8Sbaban * 13*e8c27ec8Sbaban * When distributing Covered Code, include this CDDL HEADER in each 14*e8c27ec8Sbaban * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*e8c27ec8Sbaban * If applicable, add the following below this CDDL HEADER, with the 16*e8c27ec8Sbaban * fields enclosed by brackets "[]" replaced with your own identifying 17*e8c27ec8Sbaban * information: Portions Copyright [yyyy] [name of copyright owner] 18*e8c27ec8Sbaban * 19*e8c27ec8Sbaban * CDDL HEADER END 20*e8c27ec8Sbaban */ 21*e8c27ec8Sbaban 22*e8c27ec8Sbaban /* 23*e8c27ec8Sbaban * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24*e8c27ec8Sbaban * Use is subject to license terms. 25*e8c27ec8Sbaban */ 26*e8c27ec8Sbaban 27*e8c27ec8Sbaban #pragma ident "%Z%%M% %I% %E% SMI" 28*e8c27ec8Sbaban 29*e8c27ec8Sbaban /* 30*e8c27ec8Sbaban * native LDAP related utility routines 31*e8c27ec8Sbaban */ 32*e8c27ec8Sbaban 33*e8c27ec8Sbaban #include "idmapd.h" 34*e8c27ec8Sbaban 35*e8c27ec8Sbaban /* ARGSUSED */ 36*e8c27ec8Sbaban idmap_retcode 37*e8c27ec8Sbaban nldap_lookup(idmap_mapping *req, idmap_id_res *res, int w2u, int bywinname) 38*e8c27ec8Sbaban { 39*e8c27ec8Sbaban /* 40*e8c27ec8Sbaban * TBD: native LDAP lookup either by unixname or pid or winname 41*e8c27ec8Sbaban */ 42*e8c27ec8Sbaban return (IDMAP_ERR_NOTSUPPORTED); 43*e8c27ec8Sbaban } 44*e8c27ec8Sbaban 45*e8c27ec8Sbaban /* ARGSUSED */ 46*e8c27ec8Sbaban idmap_retcode 47*e8c27ec8Sbaban nldap_lookup_batch(lookup_state_t *state, idmap_mapping_batch *batch, 48*e8c27ec8Sbaban idmap_ids_res *result) 49*e8c27ec8Sbaban { 50*e8c27ec8Sbaban /* 51*e8c27ec8Sbaban * TBD: Batch native LDAP lookups by uid/gid/winname 52*e8c27ec8Sbaban * In case of non-fatal errors set the retcode in each 53*e8c27ec8Sbaban * request to success so that we can process name-based 54*e8c27ec8Sbaban * mapping rules for those failed cases. 55*e8c27ec8Sbaban * This function loops through the batch again to verify 56*e8c27ec8Sbaban * the results and to map winnames obtained from 57*e8c27ec8Sbaban * native LDAP to SIDs using well-known SIDs table and 58*e8c27ec8Sbaban * name_cache. 59*e8c27ec8Sbaban */ 60*e8c27ec8Sbaban return (IDMAP_ERR_NOTSUPPORTED); 61*e8c27ec8Sbaban } 62