summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2004-03-03 04:23:43 +0000
committerJim McDonough <jmcd@samba.org>2004-03-03 04:23:43 +0000
commit8d12b8768a750c064706053c87016c522964656a (patch)
treef0ef1b02d45771069320289792eefc572f0659b5 /source3/rpc_server
parent78b8f3ca0cfbbef0c8f02de20a65d5b89e0f760c (diff)
downloadsamba-8d12b8768a750c064706053c87016c522964656a.tar.gz
samba-8d12b8768a750c064706053c87016c522964656a.tar.bz2
samba-8d12b8768a750c064706053c87016c522964656a.zip
quick for for usrmgr. unknown_6 is really max dimension of logon hours array. need to update passdb for this.
(This used to be commit fbf909926b7d7b1e92ebeba44469392296c35c1a)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_samr_util.c42
1 files changed, 12 insertions, 30 deletions
diff --git a/source3/rpc_server/srv_samr_util.c b/source3/rpc_server/srv_samr_util.c
index c30cc3e77b..dd92e0d90a 100644
--- a/source3/rpc_server/srv_samr_util.c
+++ b/source3/rpc_server/srv_samr_util.c
@@ -256,6 +256,12 @@ void copy_id21_to_sam_passwd(SAM_ACCOUNT *to, SAM_USER_INFO_21 *from)
DEBUG(15,("INFO_21 LOGON_HRS.HOURS: %s -> %s\n",pdb_get_hours(to),from->logon_hrs.hours));
/* Fix me: only update if it changes --metze */
pdb_set_hours(to, from->logon_hrs.hours, PDB_CHANGED);
+
+ /* This is max logon hours */
+ DEBUG(10,("INFO_21 UNKNOWN_6: %08X -> %08X\n",pdb_get_unknown_6(to),from->unknown_6));
+ if (from->unknown_6 != pdb_get_unknown_6(to)) {
+ pdb_set_unknown_6(to, from->unknown_6, PDB_CHANGED);
+ }
}
if (from->fields_present & ACCT_BAD_PWD_COUNT) {
@@ -272,21 +278,6 @@ void copy_id21_to_sam_passwd(SAM_ACCOUNT *to, SAM_USER_INFO_21 *from)
}
}
- /* if (from->fields_present & ACCT_??) { */
- DEBUG(10,("INFO_21 UNKNOWN_6: %08X -> %08X\n",pdb_get_unknown_6(to),from->unknown_6));
- if (from->unknown_6 != pdb_get_unknown_6(to)) {
- pdb_set_unknown_6(to, from->unknown_6, PDB_CHANGED);
- }
- /* } */
-
- DEBUG(10,("INFO_21 PADDING1 %02X %02X %02X %02X %02X %02X\n",
- from->padding1[0],
- from->padding1[1],
- from->padding1[2],
- from->padding1[3],
- from->padding1[4],
- from->padding1[5]));
-
DEBUG(10,("INFO_21 PASS_MUST_CHANGE_AT_NEXT_LOGON: %02X\n",from->passmustchange));
if (from->passmustchange==PASS_MUST_CHANGE_AT_NEXT_LOGON) {
pdb_set_pass_must_change_time(to,0, PDB_CHANGED);
@@ -494,6 +485,12 @@ void copy_id23_to_sam_passwd(SAM_ACCOUNT *to, SAM_USER_INFO_23 *from)
DEBUG(15,("INFO_23 LOGON_HRS.HOURS: %s -> %s\n",pdb_get_hours(to),from->logon_hrs.hours));
/* Fix me: only update if it changes --metze */
pdb_set_hours(to, from->logon_hrs.hours, PDB_CHANGED);
+
+ /* This is max logon hours */
+ DEBUG(10,("INFO_23 UNKOWN_6: %08X -> %08X\n",pdb_get_unknown_6(to),from->unknown_6));
+ if (from->unknown_6 != pdb_get_unknown_6(to)) {
+ pdb_set_unknown_6(to, from->unknown_6, PDB_CHANGED);
+ }
}
if (from->fields_present & ACCT_BAD_PWD_COUNT) {
@@ -510,21 +507,6 @@ void copy_id23_to_sam_passwd(SAM_ACCOUNT *to, SAM_USER_INFO_23 *from)
}
}
- /* if (from->fields_present & ACCT_??) { */
- DEBUG(10,("INFO_23 UNKOWN_6: %08X -> %08X\n",pdb_get_unknown_6(to),from->unknown_6));
- if (from->unknown_6 != pdb_get_unknown_6(to)) {
- pdb_set_unknown_6(to, from->unknown_6, PDB_CHANGED);
- }
- /* } */
-
- DEBUG(10,("INFO_23 PADDING1 %02X %02X %02X %02X %02X %02X\n",
- from->padding1[0],
- from->padding1[1],
- from->padding1[2],
- from->padding1[3],
- from->padding1[4],
- from->padding1[5]));
-
DEBUG(10,("INFO_23 PASS_MUST_CHANGE_AT_NEXT_LOGON: %02X\n",from->passmustchange));
if (from->passmustchange==PASS_MUST_CHANGE_AT_NEXT_LOGON) {
pdb_set_pass_must_change_time(to,0, PDB_CHANGED);