nldaputils.c revision e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * CDDL HEADER START
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * The contents of this file are subject to the terms of the
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * Common Development and Distribution License (the "License").
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * You may not use this file except in compliance with the License.
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * See the License for the specific language governing permissions
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * and limitations under the License.
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * When distributing Covered Code, include this CDDL HEADER in each
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * If applicable, add the following below this CDDL HEADER, with the
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * fields enclosed by brackets "[]" replaced with your own identifying
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * information: Portions Copyright [yyyy] [name of copyright owner]
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * CDDL HEADER END
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * Use is subject to license terms.
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban#pragma ident "%Z%%M% %I% %E% SMI"
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * native LDAP related utility routines
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban/* ARGSUSED */
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3babannldap_lookup(idmap_mapping *req, idmap_id_res *res, int w2u, int bywinname)
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * TBD: native LDAP lookup either by unixname or pid or winname
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban/* ARGSUSED */
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3babannldap_lookup_batch(lookup_state_t *state, idmap_mapping_batch *batch,
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * TBD: Batch native LDAP lookups by uid/gid/winname
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * In case of non-fatal errors set the retcode in each
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * request to success so that we can process name-based
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * mapping rules for those failed cases.
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * This function loops through the batch again to verify
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * the results and to map winnames obtained from
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * native LDAP to SIDs using well-known SIDs table and
e8c27ec857e6e2db8c4fe56938b70a89b5bed9f3baban * name_cache.