#3301 storing a sudo rule with sudoRule attribute values that only differ by case fails
Closed: Fixed Opened by jhrozek.

Consider the following sudo rule where two values of the sudoUser attribute only differ by case:

# catrule, sudoers, win.trust.test
dn: CN=catrule,OU=sudoers,DC=win,DC=trust,DC=test
objectClass: top
objectClass: sudoRole
cn: catrule
distinguishedName: CN=catrule,OU=sudoers,DC=win,DC=trust,DC=test
instanceType: 4
whenCreated: 20161114214917.0Z
whenChanged: 20170205101639.0Z
uSNCreated: 69688
uSNChanged: 595722
name: catrule
objectGUID:: 2ZFRxbVBW0GtLR10+u5Pgg==
objectCategory: CN=sudoRole,CN=Schema,CN=Configuration,DC=win,DC=trust,DC=test
dSCorePropagationData: 16010101000000.0Z
sudoHost: ALL
sudoUser: tuser
sudoUser: TUSER
sudoCommand: /usr/bin/cat

With the current master, storing the rule fails with EEXIST. We should gracefully store the rule, adding the lowercase attribute value only once.


Linked to Bugzilla bug: https://bugzilla.redhat.com/show_bug.cgi?id=1419356 (Red Hat Enterprise Linux 7)

rhbz: => [https://bugzilla.redhat.com/show_bug.cgi?id=1419356 1419356]

Fields changed

milestone: NEEDS_TRIAGE => SSSD 1.14.3

  • master:
    • a5ecc93abb01cece628fdef04ebad43bba267419
  • sssd-1-14:
    • d5ddca8b44d00b92d4a70ea90d48247635a4e1ca

resolution: => fixed
status: new => closed

Metadata Update from @jhrozek:
- Issue set to the milestone: SSSD 1.14.3

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/4334

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata