samlib.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_SAMLIB_H
#define _SMBSRV_SAMLIB_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Prototypes for the SAM library and RPC client side library interface.
* There are two levels of interface defined here: sam_xxx and samr_xxx.
* The sam_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 samr_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
/*
* samlib.c
*/
/*
*/
/*
*/
union samr_user_info {
struct info1 {
char *username;
char *fullname;
char *description;
char *unknown;
} info1;
struct info6 {
char *username;
char *fullname;
} info6;
struct info7 {
char *username;
} info7;
struct info8 {
char *fullname;
} info8;
struct info9 {
} info9;
struct info16 {
} info16;
};
union samr_user_info *user_info);
typedef struct oem_password {
unsigned char *old_password);
#ifdef __cplusplus
}
#endif
#endif /* _SMBSRV_SAMLIB_H */