Commit
Need to provide an interface to log out a CLdapSecManager user, which will be needed for gh-2174 ('ECLWatch should provide LOGOUT feature') Signed-off-by: William Whitehead <william.whitehead@lexisnexis.com>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,7 +160,11 @@ class CBaseSecurityManager : public CInterface, | |
return rlist->queryResource(0)->getAccessFlags(); | ||
else | ||
return -1; | ||
} | ||
} | ||
virtual bool logout(ISecUser& sec_user) | ||
{ | ||
UNIMPLEMENTED; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
RussWhitehead
Author
Owner
|
||
} | ||
virtual int getAccessFlagsEx(SecResourceType rtype, ISecUser& sec_user, const char* resourcename) | ||
{ | ||
UNIMPLEMENTED; | ||
|
2 comments
on commit ac60cbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is logout the right term for this functionality? Seems like its really just clearing the cache. The main reason I ask is because there may be a chance we would want to add real session type functionality to a security manager at some point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, since you don't really "log in" it doesn't make sense to log out. Now accepting nominations for a better name....
If this is code that should never be reached, you should use throwUnexpected() rather than UNIMPLEMENTED;
If it's code that CAN be reached, you should really implement it before submitting the pull request (unless it's something we DO intend to implement sometime but NOT in the next release...