diff options
author | David Boreham <dboreham@redhat.com> | 2005-05-16 23:17:03 +0000 |
---|---|---|
committer | David Boreham <dboreham@redhat.com> | 2005-05-16 23:17:03 +0000 |
commit | 2d7a6f597f86f6ddcaf52400b893b4b1cea334e7 (patch) | |
tree | 54810c1742c1a5b925f20d27047a38c69eb02a0b | |
parent | 5c12d869ad9183491c5f9ef2d9b1f13b6dfb0342 (diff) | |
download | ds-2d7a6f597f86f6ddcaf52400b893b4b1cea334e7.tar.gz ds-2d7a6f597f86f6ddcaf52400b893b4b1cea334e7.tar.xz ds-2d7a6f597f86f6ddcaf52400b893b4b1cea334e7.zip |
Fix for #157895 : logon hours doesn't work
-rw-r--r-- | ldap/servers/ntds/netman/netman.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ldap/servers/ntds/netman/netman.cpp b/ldap/servers/ntds/netman/netman.cpp index 91ace87f..b86b3d46 100644 --- a/ldap/servers/ntds/netman/netman.cpp +++ b/ldap/servers/ntds/netman/netman.cpp @@ -909,7 +909,7 @@ char* NTUser::GetLogonHours() quickFree(&resultBuf); BinToHexStr((char*)userInfo->usri3_logon_hours, 21, NULL, &length); resultBuf = (char*)malloc(length); - BinToHexStr((char*)userInfo->usri3_script_path, 21, resultBuf, &length); + BinToHexStr((char*)userInfo->usri3_logon_hours, 21, resultBuf, &length); result = resultBuf; exit: @@ -936,6 +936,7 @@ int NTUser::SetLogonHours(char* logonHours) bin = (char*)malloc(length); HexStrToBin(logonHours, bin, &length); + info.usri1020_units_per_week = UNITS_PER_WEEK; info.usri1020_logon_hours = (unsigned char*)bin; result = NetUserSetInfo(NULL, currentAccountName, 1020, (unsigned char*)&info, NULL); LoadUserInfo(); |