libsmbrdr.h revision da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0
/*
* 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
* or http://www.opensolaris.org/os/licensing.
* 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 _LIBSMBRDR_H
#define _LIBSMBRDR_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <smbsrv/libsmb.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Redirector IPC functions
*
* The following functions are required by the mlsvc_validate_user to
* apply new authentication information for the authenticated IPC, rollback
* or commit the changes to the original authentication information.
*/
extern void smbrdr_ipc_set(char *, unsigned char *);
extern void smbrdr_ipc_commit(void);
extern void smbrdr_ipc_rollback(void);
extern int smbrdr_ipc_skip_lsa_query(void);
extern int smbrdr_ipc_get_mode(void);
extern void smbrdr_ipc_save_mode(char *val);
extern unsigned smbrdr_ipc_get_flags(void);
extern void smbrdr_ipc_set_fallback(void);
extern void smbrdr_ipc_unset_fallback(void);
extern int smbrdr_ipc_is_fallback(void);
/*
* Functions for obtaining the resource domain administrator credentials.
*/
extern char *smbrdr_ipc_get_user(void);
extern char *smbrdr_ipc_get_passwd(void);
extern int smbrdr_ipc_is_valid(void);
/* Redirector LOGON functions */
extern int mlsvc_anonymous_logon(char *, char *, char **);
extern int mlsvc_user_logon(char *, char *, char *, char *);
extern int mlsvc_admin_logon(char *, char *);
extern int smbrdr_rpc_readx(int, char *, int);
/* Redirector rpcpipe functions */
extern int mlsvc_open_pipe(char *, char *, char *, char *);
extern int mlsvc_close_pipe(int);
/* Redirector session functions */
extern void smbrdr_init(void);
extern int mlsvc_locate_domain_controller(char *);
extern int mlsvc_session_native_values(int, int *, int *, int *);
extern void mlsvc_check_sessions(void);
extern int mlsvc_echo(char *);
extern void mlsvc_disconnect(char *);
extern int smbrdr_rpc_transact(int, char *, int, char *, int);
/* DEBUG functions */
extern void smbrdr_dump_ofiles(void);
extern void smbrdr_dump_sessions(void);
extern void smbrdr_dump_netuse();
#ifdef __cplusplus
}
#endif
#endif /* _LIBSMBRDR_H */