2 Unix SMB/CIFS implementation.
4 Copyright (C) Jelmer Vernooij 2005.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef _SAMBA3_H /* _SAMBA3_H */
24 #include "librpc/gen_ndr/security.h"
26 struct samba3_samaccount {
33 pass_must_change_time;
46 uint32_t user_rid, group_rid, hours_len, unknown_6;
47 uint16_t acct_ctrl, logon_divs;
48 uint16_t bad_password_count, logon_count;
49 uint8_t *lm_pw_ptr, *nt_pw_ptr;
50 uint8_t *nt_pw_hist_ptr;
57 SID_NAME_USE_NONE = 0,
58 SID_NAME_USER = 1, /* user */
59 SID_NAME_DOM_GRP, /* domain group */
60 SID_NAME_DOMAIN, /* domain sid */
61 SID_NAME_ALIAS, /* local group */
62 SID_NAME_WKN_GRP, /* well-known group */
63 SID_NAME_DELETED, /* deleted account: needed for c2 rating */
64 SID_NAME_INVALID, /* invalid account */
65 SID_NAME_UNKNOWN, /* unknown sid type */
66 SID_NAME_COMPUTER /* sid for a computer */
69 struct samba3_groupmapping {
70 struct pdb_methods *methods;
73 enum SID_NAME_USE sid_name_use;
78 struct samba3_idmap_mapping
80 enum { IDMAP_GROUP, IDMAP_USER } type;
87 /* High water marks */
91 uint32_t mapping_count;
92 struct samba3_idmap_mapping *mappings;
95 struct samba3_winsdb_entry
102 struct ipv4_addr *ips;
107 uint32_t min_password_length;
108 uint32_t password_history;
109 uint32_t user_must_logon_to_change_password;
110 uint32_t maximum_password_age;
111 uint32_t minimum_password_age;
112 uint32_t lockout_duration;
113 uint32_t reset_count_minutes;
114 uint32_t bad_lockout_minutes;
115 uint32_t disconnect_time;
116 uint32_t refuse_machine_password_change;
119 #endif /* _SAMBA3_H */