mirror of
https://github.com/samba-team/samba.git
synced 2025-11-20 08:23:50 +03:00
r18188: merge 3.0-libndr branch
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
647ed21b09
commit
1115745cae
@@ -76,7 +76,7 @@ void copy_id21_to_sam_passwd(struct samu *to, SAM_USER_INFO_21 *from)
|
||||
return;
|
||||
|
||||
if (from->fields_present & ACCT_LAST_LOGON) {
|
||||
unix_time=nt_time_to_unix(&from->logon_time);
|
||||
unix_time=nt_time_to_unix(from->logon_time);
|
||||
stored_time = pdb_get_logon_time(to);
|
||||
DEBUG(10,("INFO_21 LOGON_TIME: %lu -> %lu\n",(long unsigned int)stored_time, (long unsigned int)unix_time));
|
||||
if (stored_time != unix_time)
|
||||
@@ -84,7 +84,7 @@ void copy_id21_to_sam_passwd(struct samu *to, SAM_USER_INFO_21 *from)
|
||||
}
|
||||
|
||||
if (from->fields_present & ACCT_LAST_LOGOFF) {
|
||||
unix_time=nt_time_to_unix(&from->logoff_time);
|
||||
unix_time=nt_time_to_unix(from->logoff_time);
|
||||
stored_time = pdb_get_logoff_time(to);
|
||||
DEBUG(10,("INFO_21 LOGOFF_TIME: %lu -> %lu\n",(long unsigned int)stored_time, (long unsigned int)unix_time));
|
||||
if (stored_time != unix_time)
|
||||
@@ -92,7 +92,7 @@ void copy_id21_to_sam_passwd(struct samu *to, SAM_USER_INFO_21 *from)
|
||||
}
|
||||
|
||||
if (from->fields_present & ACCT_EXPIRY) {
|
||||
unix_time=nt_time_to_unix(&from->kickoff_time);
|
||||
unix_time=nt_time_to_unix(from->kickoff_time);
|
||||
stored_time = pdb_get_kickoff_time(to);
|
||||
DEBUG(10,("INFO_21 KICKOFF_TIME: %lu -> %lu\n",(long unsigned int)stored_time, (long unsigned int)unix_time));
|
||||
if (stored_time != unix_time)
|
||||
@@ -100,7 +100,7 @@ void copy_id21_to_sam_passwd(struct samu *to, SAM_USER_INFO_21 *from)
|
||||
}
|
||||
|
||||
if (from->fields_present & ACCT_ALLOW_PWD_CHANGE) {
|
||||
unix_time=nt_time_to_unix(&from->pass_can_change_time);
|
||||
unix_time=nt_time_to_unix(from->pass_can_change_time);
|
||||
stored_time = pdb_get_pass_can_change_time(to);
|
||||
DEBUG(10,("INFO_21 PASS_CAN_CH: %lu -> %lu\n",(long unsigned int)stored_time, (long unsigned int)unix_time));
|
||||
if (stored_time != unix_time)
|
||||
@@ -108,7 +108,7 @@ void copy_id21_to_sam_passwd(struct samu *to, SAM_USER_INFO_21 *from)
|
||||
}
|
||||
|
||||
if (from->fields_present & ACCT_LAST_PWD_CHANGE) {
|
||||
unix_time=nt_time_to_unix(&from->pass_last_set_time);
|
||||
unix_time=nt_time_to_unix(from->pass_last_set_time);
|
||||
stored_time = pdb_get_pass_last_set_time(to);
|
||||
DEBUG(10,("INFO_21 PASS_LAST_SET: %lu -> %lu\n",(long unsigned int)stored_time, (long unsigned int)unix_time));
|
||||
if (stored_time != unix_time)
|
||||
@@ -116,7 +116,7 @@ void copy_id21_to_sam_passwd(struct samu *to, SAM_USER_INFO_21 *from)
|
||||
}
|
||||
|
||||
if (from->fields_present & ACCT_FORCE_PWD_CHANGE) {
|
||||
unix_time=nt_time_to_unix(&from->pass_must_change_time);
|
||||
unix_time=nt_time_to_unix(from->pass_must_change_time);
|
||||
stored_time=pdb_get_pass_must_change_time(to);
|
||||
DEBUG(10,("INFO_21 PASS_MUST_CH: %lu -> %lu\n",(long unsigned int)stored_time, (long unsigned int)unix_time));
|
||||
if (stored_time != unix_time)
|
||||
@@ -324,7 +324,7 @@ void copy_id23_to_sam_passwd(struct samu *to, SAM_USER_INFO_23 *from)
|
||||
return;
|
||||
|
||||
if (from->fields_present & ACCT_LAST_LOGON) {
|
||||
unix_time=nt_time_to_unix(&from->logon_time);
|
||||
unix_time=nt_time_to_unix(from->logon_time);
|
||||
stored_time = pdb_get_logon_time(to);
|
||||
DEBUG(10,("INFO_23 LOGON_TIME: %lu -> %lu\n",(long unsigned int)stored_time, (long unsigned int)unix_time));
|
||||
if (stored_time != unix_time)
|
||||
@@ -332,7 +332,7 @@ void copy_id23_to_sam_passwd(struct samu *to, SAM_USER_INFO_23 *from)
|
||||
}
|
||||
|
||||
if (from->fields_present & ACCT_LAST_LOGOFF) {
|
||||
unix_time=nt_time_to_unix(&from->logoff_time);
|
||||
unix_time=nt_time_to_unix(from->logoff_time);
|
||||
stored_time = pdb_get_logoff_time(to);
|
||||
DEBUG(10,("INFO_23 LOGOFF_TIME: %lu -> %lu\n",(long unsigned int)stored_time, (long unsigned int)unix_time));
|
||||
if (stored_time != unix_time)
|
||||
@@ -340,7 +340,7 @@ void copy_id23_to_sam_passwd(struct samu *to, SAM_USER_INFO_23 *from)
|
||||
}
|
||||
|
||||
if (from->fields_present & ACCT_EXPIRY) {
|
||||
unix_time=nt_time_to_unix(&from->kickoff_time);
|
||||
unix_time=nt_time_to_unix(from->kickoff_time);
|
||||
stored_time = pdb_get_kickoff_time(to);
|
||||
DEBUG(10,("INFO_23 KICKOFF_TIME: %lu -> %lu\n",(long unsigned int)stored_time, (long unsigned int)unix_time));
|
||||
if (stored_time != unix_time)
|
||||
@@ -348,7 +348,7 @@ void copy_id23_to_sam_passwd(struct samu *to, SAM_USER_INFO_23 *from)
|
||||
}
|
||||
|
||||
if (from->fields_present & ACCT_ALLOW_PWD_CHANGE) {
|
||||
unix_time=nt_time_to_unix(&from->pass_can_change_time);
|
||||
unix_time=nt_time_to_unix(from->pass_can_change_time);
|
||||
stored_time = pdb_get_pass_can_change_time(to);
|
||||
DEBUG(10,("INFO_23 PASS_CAN_CH: %lu -> %lu\n",(long unsigned int)stored_time, (long unsigned int)unix_time));
|
||||
if (stored_time != unix_time)
|
||||
@@ -356,7 +356,7 @@ void copy_id23_to_sam_passwd(struct samu *to, SAM_USER_INFO_23 *from)
|
||||
}
|
||||
|
||||
if (from->fields_present & ACCT_LAST_PWD_CHANGE) {
|
||||
unix_time=nt_time_to_unix(&from->pass_last_set_time);
|
||||
unix_time=nt_time_to_unix(from->pass_last_set_time);
|
||||
stored_time = pdb_get_pass_last_set_time(to);
|
||||
DEBUG(10,("INFO_23 PASS_LAST_SET: %lu -> %lu\n",(long unsigned int)stored_time, (long unsigned int)unix_time));
|
||||
if (stored_time != unix_time)
|
||||
@@ -364,7 +364,7 @@ void copy_id23_to_sam_passwd(struct samu *to, SAM_USER_INFO_23 *from)
|
||||
}
|
||||
|
||||
if (from->fields_present & ACCT_FORCE_PWD_CHANGE) {
|
||||
unix_time=nt_time_to_unix(&from->pass_must_change_time);
|
||||
unix_time=nt_time_to_unix(from->pass_must_change_time);
|
||||
stored_time=pdb_get_pass_must_change_time(to);
|
||||
DEBUG(10,("INFO_23 PASS_MUST_CH: %lu -> %lu\n",(long unsigned int)stored_time, (long unsigned int)unix_time));
|
||||
if (stored_time != unix_time)
|
||||
@@ -562,7 +562,7 @@ void copy_id25_to_sam_passwd(struct samu *to, SAM_USER_INFO_25 *from)
|
||||
return;
|
||||
|
||||
if (from->fields_present & ACCT_LAST_LOGON) {
|
||||
unix_time=nt_time_to_unix(&from->logon_time);
|
||||
unix_time=nt_time_to_unix(from->logon_time);
|
||||
stored_time = pdb_get_logon_time(to);
|
||||
DEBUG(10,("INFO_25 LOGON_TIME: %lu -> %lu\n",(long unsigned int)stored_time, (long unsigned int)unix_time));
|
||||
if (stored_time != unix_time)
|
||||
@@ -570,7 +570,7 @@ void copy_id25_to_sam_passwd(struct samu *to, SAM_USER_INFO_25 *from)
|
||||
}
|
||||
|
||||
if (from->fields_present & ACCT_LAST_LOGOFF) {
|
||||
unix_time=nt_time_to_unix(&from->logoff_time);
|
||||
unix_time=nt_time_to_unix(from->logoff_time);
|
||||
stored_time = pdb_get_logoff_time(to);
|
||||
DEBUG(10,("INFO_25 LOGOFF_TIME: %lu -> %lu\n",(long unsigned int)stored_time, (long unsigned int)unix_time));
|
||||
if (stored_time != unix_time)
|
||||
@@ -578,7 +578,7 @@ void copy_id25_to_sam_passwd(struct samu *to, SAM_USER_INFO_25 *from)
|
||||
}
|
||||
|
||||
if (from->fields_present & ACCT_EXPIRY) {
|
||||
unix_time=nt_time_to_unix(&from->kickoff_time);
|
||||
unix_time=nt_time_to_unix(from->kickoff_time);
|
||||
stored_time = pdb_get_kickoff_time(to);
|
||||
DEBUG(10,("INFO_25 KICKOFF_TIME: %lu -> %lu\n",(long unsigned int)stored_time, (long unsigned int)unix_time));
|
||||
if (stored_time != unix_time)
|
||||
@@ -586,7 +586,7 @@ void copy_id25_to_sam_passwd(struct samu *to, SAM_USER_INFO_25 *from)
|
||||
}
|
||||
|
||||
if (from->fields_present & ACCT_ALLOW_PWD_CHANGE) {
|
||||
unix_time=nt_time_to_unix(&from->pass_can_change_time);
|
||||
unix_time=nt_time_to_unix(from->pass_can_change_time);
|
||||
stored_time = pdb_get_pass_can_change_time(to);
|
||||
DEBUG(10,("INFO_25 PASS_CAN_CH: %lu -> %lu\n",(long unsigned int)stored_time, (long unsigned int)unix_time));
|
||||
if (stored_time != unix_time)
|
||||
@@ -594,7 +594,7 @@ void copy_id25_to_sam_passwd(struct samu *to, SAM_USER_INFO_25 *from)
|
||||
}
|
||||
|
||||
if (from->fields_present & ACCT_LAST_PWD_CHANGE) {
|
||||
unix_time=nt_time_to_unix(&from->pass_last_set_time);
|
||||
unix_time=nt_time_to_unix(from->pass_last_set_time);
|
||||
stored_time = pdb_get_pass_last_set_time(to);
|
||||
DEBUG(10,("INFO_25 PASS_LAST_SET: %lu -> %lu\n",(long unsigned int)stored_time, (long unsigned int)unix_time));
|
||||
if (stored_time != unix_time)
|
||||
@@ -602,7 +602,7 @@ void copy_id25_to_sam_passwd(struct samu *to, SAM_USER_INFO_25 *from)
|
||||
}
|
||||
|
||||
if (from->fields_present & ACCT_FORCE_PWD_CHANGE) {
|
||||
unix_time=nt_time_to_unix(&from->pass_must_change_time);
|
||||
unix_time=nt_time_to_unix(from->pass_must_change_time);
|
||||
stored_time=pdb_get_pass_must_change_time(to);
|
||||
DEBUG(10,("INFO_25 PASS_MUST_CH: %lu -> %lu\n",(long unsigned int)stored_time, (long unsigned int)unix_time));
|
||||
if (stored_time != unix_time)
|
||||
|
||||
Reference in New Issue
Block a user