Discovery of KRB5 ticket fails even if ticket is discoverable
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| adsys (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
| Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
| Noble |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
tracking bug https:/
[ Impact ]
Even if the krb5 ticket is discoverable, the discovery fails (but actually succeeded) So we cannot retrieve the policies or do any action with the controller.
[ Test Plan ]
This is not something that can be easily reproduced in a real environment, so the best approach to reproduce this issue is:
1. Get adsys codebase before the fix. You can do this by getting the available version in the archive with the command:
apt source adsys
2. Run the TestTicketPath test located in internal/
go test -run TestTicketPatch -count X
3. The test can fail due to krb5_init_context changing the errno without returning any error.
Without the patched version the test will fail after a number of runs.
With the patch, it will not fail.
[ Where problems could occur ]
We now reset errno to 0, because krb5_init_context() can alter it, even if it succeeds. So the discovery always returns success when it succeeds.
Worst case would be that discovery failed but errno is set to 0 but this is handled earlier in the code.
| description: | updated |
| description: | updated |
| description: | updated |
| description: | updated |
| description: | updated |
| tags: |
added: verification-done verification-done-jammy verification-done-noble removed: verification-needed verification-needed-jammy verification-needed-noble |

This bug was fixed in the package adsys - 0.15.1
---------------
adsys (0.15.1) oracular; urgency=medium
* Fix version based tests on released version
adsys (0.15) oracular; urgency=medium
* Fix DCONF policy manager removing user DB on empty policy (LP: #2078245) clang-format- action com/charmbracel et/bubbles com/charmbracel et/bubbletea com/charmbracel et/glamour com/charmbracel et/lipgloss com/fatih/ color com/leonelquint eros/gotext com/spf13/ cobra com/spf13/ viper golang. org/grpc/ cmd/protoc- gen-go- grpc golang. org/grpc golang. org/protobuf com/golangci/ golangci- lint
* Ignore casing in domain/ section of sssd.conf (LP: #2078246)
* Fix parsing of slash usernames (i.e. domain\user) (LP: #2078247)
* Fix errno in get_ticket_path(LP: #2078473)
* Remove XML declaration from glib schemas
* Bump Go version to 1.23
* CI and quality of life changes not impacting package functionality:
- Integrate repo with TiCS quality assessment
- Switch documentation spellchecking to en-GB
- Add text version of certificates tutorial
- Additional code coverage through more testing
- Improvements to the e2e test environment
* Bump dependencies to latest:
- jidicula/
- github.
- github.
- github.
- github.
- github.
- github.
- github.
- github.
- golang.org/x/crypto
- golang.org/x/net
- golang.org/x/sync
- golang.org/x/sys
- golang.org/x/text
- google.
- google.
- google.
- github.
-- Didier Roche-Tolomelli <email address hidden> Mon, 02 Sep 2024 14:05:22 +0200