lsalib.h revision 55bf511df53aad0fdb7eb3fa349f0308cc05234c
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SMBSRV_LSALIB_H
#define _SMBSRV_LSALIB_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Prototypes for the LSA library and RPC client side library interface.
* There are two levels of interface defined here: lsa_xxx and lsar_xxx.
* The lsa_xxx functions provide a high level interface which make
* multiple RPC calls and do all the work necessary to obtain and return
* the requested information. The lsar_xxx functions provide a low level
* interface in which each function maps to a single underlying RPC.
*/
#include <smbsrv/mlsvc_util.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* lsalib.c
*/
int lsa_lookup_builtin_name(char *account_name,
int lsa_lookup_local_sam(char *domain,
char *account_name,
int lsa_lookup_local(char *name,
int lsa_lookup_name(char *server,
char *domain,
char *account_name,
char *domain,
char *account_name,
int lsa_lookup_privs(char *server,
char *account_name,
char *target_name,
/*
*/
char *domain,
char *username,
int lsar_open_policy2(char *server,
char *domain,
char *username,
/*
*/
char *name,
struct mslsa_EnumAccountBuf *accounts);
char *name,
char *name,
int namelen);
char *name,
char *display_name,
int display_len);
char *name,
#ifdef __cplusplus
}
#endif
#endif /* _SMBSRV_LSALIB_H */