lsalib.h revision 7f667e74610492ddbce8ce60f52ece95d2401949
/*
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _LSALIB_H
#define _LSALIB_H
/*
* 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/libmlsvc.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct lsa_nt_domaininfo {
char n_domain[NETBIOS_NAME_SZ];
typedef struct lsa_trusted_domainlist {
typedef struct lsa_dns_domaininfo {
char d_nbdomain[NETBIOS_NAME_SZ];
char d_fqdomain[MAXHOSTNAMELEN];
char d_forest[MAXHOSTNAMELEN];
typedef enum lsa_info_type {
typedef struct lsa_info {
union {
} i_domain;
} lsa_info_t;
/*
* lsalib.c
*/
void lsa_free_info(lsa_info_t *);
/*
*/
int lsar_open(char *, char *, char *, mlsvc_handle_t *);
int lsar_open_policy2(char *, char *, char *, mlsvc_handle_t *);
int lsar_close(mlsvc_handle_t *);
/*
*/
smb_account_t *);
smb_account_t *);
struct mslsa_EnumAccountBuf *);
#ifdef __cplusplus
}
#endif
#endif /* _LSALIB_H */