#3301 storing a sudo rule with sudoRule attribute values that only differ by case fails
Closed: Fixed None Opened 7 years ago 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.


Fields changed

milestone: NEEDS_TRIAGE => SSSD 1.14.3

resolution: => fixed
status: new => closed

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

7 years ago

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.

Login to comment on this ticket.

Metadata