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

Secondary LDAP group go missing from 'id' command on RHEL 7.8 with sssd-1.16.2-37.el7_8.1 #5261

Closed
elkoniu opened this issue Aug 4, 2020 · 3 comments
Assignees
Labels
Closed: Fixed Issue was closed as fixed.

Comments

@elkoniu
Copy link
Contributor

elkoniu commented Aug 4, 2020

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1859554

Description of problem:
Secondary LDAP group go missing from 'id' command on RHEL 7.8 with
sssd-1.16.2-37.el7_8.1

Version-Release number of selected component (if applicable):
sssd-1.16.2-37.el7_8.1.x86_64

How reproducible:
Always on RHEL 7.8

Steps to Reproduce:
1. Configure sssd and point it to LDAP server with 'id_provider = ldap' mode.
2. Run 'id ldapusername' command.
3. Secondary groups would go missing from 'id' output after 25-30 mins.

Actual results:
Secondary groups go missing from 'id' output after 25-30 mins.

Expected results:
Secondary groups should always be visible in 'id' output.

Additional info:
Same SSSD configuration works very well with older version of sssd on RHEL 7.7
(tested with sssd-1.16.4-21.el7.x86_64).
@elkoniu elkoniu linked a pull request Aug 4, 2020 that will close this issue
@elkoniu
Copy link
Contributor Author

elkoniu commented Aug 4, 2020

Upstream PR ready for review: #5262

thalman added a commit to thalman/sssd that referenced this issue Aug 17, 2020
Some of the ldap servers returns DN in attributes such as isMemberOf
with spaces like dc=example, dc=com. That should be fine and we
should ignore them (cut them out) instead of escaping.

Resolves:
SSSD#5261
thalman added a commit to thalman/sssd that referenced this issue Aug 17, 2020
thalman added a commit to thalman/sssd that referenced this issue Aug 17, 2020
Some of the ldap servers returns DN in attributes such as isMemberOf
with spaces like dc=example, dc=com. That should be fine and we
should ignore them (cut them out) instead of escaping.

Resolves:
SSSD#5261
thalman added a commit to thalman/sssd that referenced this issue Aug 17, 2020
thalman added a commit to thalman/sssd that referenced this issue Aug 17, 2020
Some of the ldap servers returns DN in attributes such as isMemberOf
with spaces like dc=example, dc=com. That should be fine and we
should ignore them (cut them out) instead of escaping.

Resolves:
SSSD#5261
thalman added a commit to thalman/sssd that referenced this issue Aug 17, 2020
thalman added a commit to elkoniu/sssd that referenced this issue Aug 18, 2020
Some of the ldap servers returns DN in attributes such as isMemberOf
with spaces like dc=example, dc=com. That should be fine and we
should ignore them (cut them out) instead of escaping.

Resolves:
SSSD#5261
thalman added a commit to elkoniu/sssd that referenced this issue Aug 18, 2020
thalman added a commit to elkoniu/sssd that referenced this issue Aug 18, 2020
Some of the ldap servers returns DN in attributes such as isMemberOf
with spaces like dc=example, dc=com. That should be fine and we
should ignore them (cut them out) instead of escaping.

Resolves:
SSSD#5261
thalman added a commit to elkoniu/sssd that referenced this issue Aug 18, 2020
thalman added a commit to elkoniu/sssd that referenced this issue Aug 18, 2020
thalman added a commit to thalman/sssd that referenced this issue Aug 18, 2020
Some of the ldap servers returns DN in attributes such as isMemberOf
with spaces like dc=example, dc=com. That should be fine and we
should ignore them (cut them out) instead of escaping.

Resolves:
SSSD#5261
(cherry picked from commit 882307c)
thalman added a commit to thalman/sssd that referenced this issue Aug 18, 2020
thalman added a commit to elkoniu/sssd that referenced this issue Aug 19, 2020
Tests show that also ldb_dn_get_linearized can
return DN with extra spaces. We have to trim that too.

Resolves:
SSSD#5261
thalman added a commit to thalman/sssd that referenced this issue Aug 19, 2020
Tests show that also ldb_dn_get_linearized can
return DN with extra spaces. We have to trim that too.

Resolves:
SSSD#5261
(cherry picked from commit 12bbd26)
thalman added a commit to elkoniu/sssd that referenced this issue Aug 20, 2020
DN must be trimmed, before it is used as hash key

Resolves:
SSSD#5261
thalman added a commit to thalman/sssd that referenced this issue Aug 20, 2020
DN must be trimmed, before it is used as hash key

Resolves:
SSSD#5261
(cherry picked from commit 619a888)
thalman added a commit to elkoniu/sssd that referenced this issue Aug 21, 2020
Allocate memory pool to avoid memory allocation in the loop.

Resolves:
SSSD#5261
thalman added a commit to thalman/sssd that referenced this issue Aug 26, 2020
Allocate memory pool to avoid memory allocation in the loop.

Resolves:
SSSD#5261
(cherry picked from commit 00eafce)
pbrezina pushed a commit that referenced this issue Oct 2, 2020
Resolves:
#5261

Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
pbrezina pushed a commit that referenced this issue Oct 2, 2020
Tests show that also ldb_dn_get_linearized can
return DN with extra spaces. We have to trim that too.

Resolves:
#5261

Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
@pbrezina
Copy link
Member

pbrezina commented Oct 2, 2020

Pushed PR: #5262

  • master
    • 8863139 - intg: allow member DN to have a different case
    • 50d0d15 - ldap: use member DN to create ghost user hash table
    • fe0f1e6 - UTIL: Use sss_sanitize_dn where we deal with DN 2
    • 21b9417 - UTIL: Use sss_sanitize_dn where we deal with DN
    • 093061f - UTIL: DN sanitization

@pbrezina pbrezina added the Closed: Fixed Issue was closed as fixed. label Oct 2, 2020
thalman added a commit to thalman/sssd that referenced this issue Oct 5, 2020
Some of the ldap servers returns DN in attributes such as isMemberOf
with spaces like dc=example, dc=com. That should be fine and we
should ignore them (cut them out) instead of escaping.

Resolves:
SSSD#5261

Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
(cherry picked from commit 093061f)
thalman added a commit to thalman/sssd that referenced this issue Oct 5, 2020
Resolves:
SSSD#5261

Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
(cherry picked from commit 21b9417)
thalman added a commit to thalman/sssd that referenced this issue Oct 5, 2020
Tests show that also ldb_dn_get_linearized can
return DN with extra spaces. We have to trim that too.

Resolves:
SSSD#5261

Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
(cherry picked from commit fe0f1e6)
pbrezina pushed a commit that referenced this issue Oct 6, 2020
Some of the ldap servers returns DN in attributes such as isMemberOf
with spaces like dc=example, dc=com. That should be fine and we
should ignore them (cut them out) instead of escaping.

Resolves:
#5261

Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
(cherry picked from commit 093061f)

Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
pbrezina pushed a commit that referenced this issue Oct 6, 2020
Resolves:
#5261

Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
(cherry picked from commit 21b9417)

Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
pbrezina pushed a commit that referenced this issue Oct 6, 2020
Tests show that also ldb_dn_get_linearized can
return DN with extra spaces. We have to trim that too.

Resolves:
#5261

Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
(cherry picked from commit fe0f1e6)

Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
@pbrezina
Copy link
Member

pbrezina commented Oct 6, 2020

Pushed PR: #5281

  • sssd-1-16
    • e5ae7ba - intg: allow member DN to have a different case
    • a63a222 - ldap: use member DN to create ghost user hash table
    • f31005a - UTIL: Use sss_sanitize_dn where we deal with DN 2
    • a960d66 - UTIL: Use sss_sanitize_dn where we deal with DN
    • a20e085 - UTIL: DN sanitization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed: Fixed Issue was closed as fixed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants