1998-03-11 21:11:04 +00:00
/*
2002-01-30 06:08:46 +00:00
Unix SMB / CIFS implementation .
1998-03-11 21:11:04 +00:00
SMB parameters and setup
2005-04-06 22:27:55 +00:00
Copyright ( C ) Andrew Tridgell 1992 - 1997
Copyright ( C ) Luke Kenneth Casson Leighton 1996 - 1997
Copyright ( C ) Paul Ashton 1997
Copyright ( C ) Gerald ( Jerry ) Carter 2005
1998-03-11 21:11:04 +00:00
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
2007-07-09 19:25:36 +00:00
the Free Software Foundation ; either version 3 of the License , or
1998-03-11 21:11:04 +00:00
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
2007-07-10 00:52:41 +00:00
along with this program . If not , see < http : //www.gnu.org/licenses/>.
1998-03-11 21:11:04 +00:00
*/
# ifndef _RPC_LSA_H /* _RPC_LSA_H */
# define _RPC_LSA_H
2006-04-11 15:47:24 +00:00
# define LSA_AUDIT_NUM_CATEGORIES_NT4 7
# define LSA_AUDIT_NUM_CATEGORIES_WIN2K 9
# define LSA_AUDIT_NUM_CATEGORIES LSA_AUDIT_NUM_CATEGORIES_NT4
2001-12-14 17:31:48 +00:00
# define POLICY_VIEW_LOCAL_INFORMATION 0x00000001
# define POLICY_VIEW_AUDIT_INFORMATION 0x00000002
# define POLICY_GET_PRIVATE_INFORMATION 0x00000004
# define POLICY_TRUST_ADMIN 0x00000008
# define POLICY_CREATE_ACCOUNT 0x00000010
# define POLICY_CREATE_SECRET 0x00000020
# define POLICY_CREATE_PRIVILEGE 0x00000040
# define POLICY_SET_DEFAULT_QUOTA_LIMITS 0x00000080
# define POLICY_SET_AUDIT_REQUIREMENTS 0x00000100
# define POLICY_AUDIT_LOG_ADMIN 0x00000200
# define POLICY_SERVER_ADMIN 0x00000400
# define POLICY_LOOKUP_NAMES 0x00000800
# define POLICY_ALL_ACCESS ( STANDARD_RIGHTS_REQUIRED_ACCESS |\
POLICY_VIEW_LOCAL_INFORMATION | \
POLICY_VIEW_AUDIT_INFORMATION | \
POLICY_GET_PRIVATE_INFORMATION | \
POLICY_TRUST_ADMIN | \
POLICY_CREATE_ACCOUNT | \
POLICY_CREATE_SECRET | \
POLICY_CREATE_PRIVILEGE | \
POLICY_SET_DEFAULT_QUOTA_LIMITS | \
POLICY_SET_AUDIT_REQUIREMENTS | \
POLICY_AUDIT_LOG_ADMIN | \
POLICY_SERVER_ADMIN | \
POLICY_LOOKUP_NAMES )
# define POLICY_READ ( STANDARD_RIGHTS_READ_ACCESS |\
POLICY_VIEW_AUDIT_INFORMATION | \
POLICY_GET_PRIVATE_INFORMATION )
2005-01-28 16:55:09 +00:00
# define POLICY_WRITE ( STD_RIGHT_READ_CONTROL_ACCESS |\
2001-12-14 17:31:48 +00:00
POLICY_TRUST_ADMIN | \
POLICY_CREATE_ACCOUNT | \
POLICY_CREATE_SECRET | \
POLICY_CREATE_PRIVILEGE | \
POLICY_SET_DEFAULT_QUOTA_LIMITS | \
POLICY_SET_AUDIT_REQUIREMENTS | \
POLICY_AUDIT_LOG_ADMIN | \
POLICY_SERVER_ADMIN )
# define POLICY_EXECUTE ( STANDARD_RIGHTS_EXECUTE_ACCESS |\
POLICY_VIEW_LOCAL_INFORMATION | \
POLICY_LOOKUP_NAMES )
2005-04-06 22:27:55 +00:00
/*******************************************************/
1999-12-13 13:27:58 +00:00
# define MAX_REF_DOMAINS 32
1998-03-11 21:11:04 +00:00
2005-02-19 10:41:51 +00:00
/* This number is based on Win2k and later maximum response allowed */
2006-02-03 22:19:41 +00:00
# define MAX_LOOKUP_SIDS 20480 /* 0x5000 */
1998-03-11 21:11:04 +00:00
# endif /* _RPC_LSA_H */