summaryrefslogtreecommitdiff
path: root/source4/lib/samba3/sam.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-08-20 23:28:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:34:14 -0500
commit85a12fe9af036577064bee17fee9f4987e6a62ed (patch)
tree00635710cf95ad3b77c11be219af6a742ceee96d /source4/lib/samba3/sam.h
parent2997f4bd43420163ee01fcbacdf8cf958dedcfea (diff)
downloadsamba-85a12fe9af036577064bee17fee9f4987e6a62ed.tar.gz
samba-85a12fe9af036577064bee17fee9f4987e6a62ed.tar.bz2
samba-85a12fe9af036577064bee17fee9f4987e6a62ed.zip
r9437: Update PLAN and README for Samba3 compatibility layer
Add support for reading tdbsam files (This used to be commit 75ac972909ac601fb876e208a992eeebafaf6417)
Diffstat (limited to 'source4/lib/samba3/sam.h')
-rw-r--r--source4/lib/samba3/sam.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/source4/lib/samba3/sam.h b/source4/lib/samba3/sam.h
new file mode 100644
index 0000000000..11a9f42ec7
--- /dev/null
+++ b/source4/lib/samba3/sam.h
@@ -0,0 +1,52 @@
+/*
+ Unix SMB/CIFS implementation.
+ Registry interface
+ Copyright (C) Jelmer Vernooij 2005.
+
+ 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
+ the Free Software Foundation; either version 2 of the License, or
+ (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
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#ifndef _SAMBA3_SAM_H /* _SAMBA3_SAM_H */
+#define _SAMBA3_SAM_H
+
+struct samba3_samaccount {
+ uint32_t logon_time,
+ logoff_time,
+ kickoff_time,
+ bad_password_time,
+ pass_last_set_time,
+ pass_can_change_time,
+ pass_must_change_time;
+ char *username;
+ char *domain;
+ char *nt_username;
+ char *dir_drive;
+ char *unknown_str;
+ char *munged_dial;
+ char *fullname;
+ char *homedir;
+ char *logon_script;
+ char *profile_path;
+ char *acct_desc;
+ char *workstations;
+ uint32_t user_rid, group_rid, hours_len, unknown_6;
+ uint16_t acct_ctrl, logon_divs;
+ uint16_t bad_password_count, logon_count;
+ uint8_t *lm_pw_ptr, *nt_pw_ptr;
+ uint8_t *nt_pw_hist_ptr;
+ uint8_t *hours;
+};
+
+#endif /* _SAMBA3_SAM_H */