-
Notifications
You must be signed in to change notification settings - Fork 248
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
KCM: Remove the oldest expired credential if no more space. #6917
Conversation
5f98638
to
50899f1
Compare
50899f1
to
62082e8
Compare
2af0775
to
f72af59
Compare
Replaced a wrong |
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.
LGTM, thanks
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.
Hi,
thanks for the patch, it is working well in my tests. Please see my in-line comments.
As a general comment about talloc_new()
. In both cases you are only allocating a single memory area. Imo it would be sufficient to do this allocation directly on NULL
and avoid the overhead of using talloc_new()
.
bye,
Sumit
:feature: When adding a new credential to KCM and the user has already reached their limit, the oldest expired credential will be removed to free some space. If no expired credential is found to be removed, the operation will fail as it happened in the previous versions. Resolves: SSSD#6667
As discussed off-line, I did these changes for |
max_uid_ccaches is unconditionally incremented by 2 in ccdb_secdb_init() to create space for some internal entries. We cannot just show this value as it is not what the user configured.
f72af59
to
d374a11
Compare
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.
Hi,
thanks for the updates, ACK.
bye,
Sumit
When adding a new credential to KCM and the user has already reached their limit, the oldest expired credential will be removed to free some space.
If no expired credential is found to be removed, the operation will fail as it happened in the previous versions.
Resolves: #6667