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