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

security/sssd2: Numerous cleanups #272

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

security/sssd2: Numerous cleanups #272

wants to merge 6 commits into from

Conversation

arrowd
Copy link
Contributor

@arrowd arrowd commented Jun 8, 2024

@jhixson74 Please take a look

@jhixson74
Copy link
Contributor

Thanks @arrowd , I'll take a look at this soon. I've got some other sssd patches that are going in as well. Lots of folks finally starting to chime in ;-)

@arrowd
Copy link
Contributor Author

arrowd commented Jun 9, 2024

In some cases I'm bumping into the following unimplemented function: https://github.com/SSSD/sssd/blob/a56b8d1aaf030fea196b65545dfe207ea10bdf50/src/util/find_uid.c#L328

I wonder if your WIP patches are going to cover that?

@arrowd
Copy link
Contributor Author

arrowd commented Jun 22, 2024

I've implemented that missing function and will submit it after this PR gets in. Can you please take a look, @jhixson74 ?

@jhixson74
Copy link
Contributor

I am working on https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279255 currently. It will get committed tomorrow. After that I can look at this. The patch in the bug implements the find uid function.

@jhixson74
Copy link
Contributor

@arrowd Would you mind opening this up on bugzilla with attached as patches? Currently I don't know how to do github merges. I'm not authorized and merging is blocked. I'll figure that out another day ;-)

@jhixson74
Copy link
Contributor

Actually, I can make the diff myself. Nevermind ;-)

@bsdimp
Copy link
Member

bsdimp commented Jun 24, 2024

Actually, I can make the diff myself. Nevermind ;-)

You can add github as a remote to your normal tree, the cherry-pick the changes on the pull request to main. It's super fast. Add the Pyll Request trailer and reviewed by and you're done. :)

@arrowd
Copy link
Contributor Author

arrowd commented Jun 24, 2024

I use gh pr checkout https://github.com/freebsd/freebsd-ports/pull/272 && git rebase main

@bsdimp
Copy link
Member

bsdimp commented Jun 24, 2024

I use gh pr checkout https://github.com/freebsd/freebsd-ports/pull/272 && git rebase main

That works... my scripting does that...

@jhixson74
Copy link
Contributor

@arrowd Can you explain what changes you've made and why? Looking over them, I agree lots of cleanup can occur, but other things like changing the data directory I'm not going to do.

@arrowd
Copy link
Contributor Author

arrowd commented Jun 24, 2024

The canonical data dir for foo is usually ${PREFIX}/share/foo. In case of sssd2 the port name is duplicated due to --datadir being set explicitly (${PREFIX}/share/sssd/sssd/sssd.api.conf, note the sssd/sssd/ part). My change fixes that.

P.S. You can comment on specific lines in the pull request to make the context of the question clearer.

@arrowd
Copy link
Contributor Author

arrowd commented Jul 13, 2024

Restored one patch that was actually useful.

@arrowd
Copy link
Contributor Author

arrowd commented Jul 30, 2024

@jhixson74 can we get this in? We're running sssd2 with this change at $WORK for months now.

@arrowd
Copy link
Contributor Author

arrowd commented Aug 17, 2024

Rebased after @0mp change.

@arrowd
Copy link
Contributor Author

arrowd commented Aug 22, 2024

I understand that PRs are not subject for maintainer timeouts, but maybe I just push this?

@0mp
Copy link
Member

0mp commented Aug 22, 2024

I agree with @jhixson74 that it is a lot of changes that are not explained in the commit message. Also, it'd be easier to review if you separated the no-op cleanups that are no brainers to approve and commit from changes like the DATADIR.

I created a Bugzilla PR so that it stays on the radar: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280992

I work on sssd2 from time to time so I'll try to comment on the specific lines I find confusing next week or so.

- Do not use gssapi:bootstrap
- Do not redefine variables already defined by USES
- Instead of patching, pass the KRB5_CONFIG env var

Sponsored by:	Future Crew, LLC
Sponsored by:	Future Crew, LLC
…needed anymore

Sponsored by:	Future Crew, LLC
Sponsored by:	Future Crew, LLC
- Trim configure options
- Remove unused variables
- Fix DATADIR

Sponsored by:	Future Crew, LLC
@arrowd
Copy link
Contributor Author

arrowd commented Sep 15, 2024

I split the change into multiple commits to ease reviewing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants