FS#45596 - [sudo] Request to enable SSSD support

Attached to Project: Arch Linux
Opened by Robin McCorkell (Xenopathic) - Thursday, 09 July 2015, 00:46 GMT
Last edited by Evangelos Foutras (foutrelis) - Tuesday, 21 July 2015, 07:00 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

SSSD is now in Community, rather than the AUR, so it'd be great to have default support for it in sudo.
This can be done by adding the configure flag `--with-sssd`, and no extra build-time dependencies are required.
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Tuesday, 21 July 2015, 07:00 GMT
Reason for closing:  Implemented
Additional comments about closing:  sudo 1.8.14.p1-1
Comment by Evangelos Foutras (foutrelis) - Friday, 17 July 2015, 15:51 GMT
Can you check if sudo 1.8.14-1 from [testing] works as expected? (I don't have SSSD configured to test.)
Comment by Robin McCorkell (Xenopathic) - Friday, 17 July 2015, 16:21 GMT
Unfortunately I'm getting some errors:

sudo: sudo_sss_attrcpy: unable to allocate memory
sudo: sudo_sss_rulecpy: unable to allocate memory

And sudo doesn't see my SSSD rules.
Comment by Evangelos Foutras (foutrelis) - Friday, 17 July 2015, 16:42 GMT
Can you try compiling sudo 1.8.13 with sssd support to see if that works? Perhaps also try downgrading sssd to 1.12.5. [1]

[1] http://seblu.net/a/arm/packages/s/sssd
Comment by Robin McCorkell (Xenopathic) - Friday, 17 July 2015, 19:07 GMT
I don't believe this... With 1.8.13 (from ABS with the --with-sssd addition) it works fine. The same PKGBUILD, but with version bumped to 1.8.14 (aka the package in testing) doesn't work, giving those errors. I think we've found a regression, inconveniently at the same time as trying to enable SSSD support...
Comment by Evangelos Foutras (foutrelis) - Friday, 17 July 2015, 19:41 GMT
Reported upstream at http://bugzilla.sudo.ws/show_bug.cgi?id=703

Feel free to follow up there if you have further information or can answer any questions asked by Todd Miller (sudo's author).
Comment by Evangelos Foutras (foutrelis) - Friday, 17 July 2015, 20:05 GMT
A proposed patch was posted upstream and I've included it in the following test package:

http://pkgbuild.com/~foutrelis/test-builds/sudo/bug-703-patch-452/

Please try it and let me know if it works.
Comment by Evangelos Foutras (foutrelis) - Friday, 17 July 2015, 20:30 GMT
I've pushed sudo 1.8.14-2 with that patch, following your confirmation in the upstream report.
Comment by Robin McCorkell (Xenopathic) - Friday, 17 July 2015, 20:38 GMT
I can confirm that sudo 1.8.14-2 (pulled from SVN, compiled locally) works correctly without errors with SSSD :+1:
Comment by Robin McCorkell (Xenopathic) - Friday, 17 July 2015, 20:38 GMT
Thanks!

Loading...