Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HPCC-16816 Copy original password to cached secuser #9456

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion system/security/shared/caching.cpp
Expand Up @@ -367,8 +367,9 @@ bool CPermissionsCache::lookup(ISecUser& sec_user)
DBGLOG("CACHE: CPermissionsCache Found validated user %s", username);
#endif
// Copy cached user to the sec_user structure, but still keep the original clear text password.
StringAttr originalPW(pw);
user->queryUser()->copyTo(sec_user);
sec_user.credentials().setPassword(pw);
sec_user.credentials().setPassword(originalPW.get());
return true;
}
else
Expand Down