Skip to content

Commit

Permalink
pam/integration-tests: Remove unused tapes for mismatching user
Browse files Browse the repository at this point in the history
This is something that we don't support anymore as per commit
e91ab76 and if we'd do it, it wouldn't work well anyways since it
would imply changing the PAM user, which as we know may lead to
logging-in wrongly as CVE-2024-9313 taught us
  • Loading branch information
3v1n0 committed Oct 22, 2024
1 parent ae30521 commit 63bd110
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 62 deletions.
3 changes: 0 additions & 3 deletions examplebroker/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -896,9 +896,6 @@ func userInfoFromName(name string) string {

case "user-sudo":
user.Groups = append(user.Groups, groupJSONInfo{Name: "sudo", UGID: ""}, groupJSONInfo{Name: "admin", UGID: ""})

case "user-mismatching-name":
user.Name = "mismatching-username"
}

// only used for tests, we can ignore the template execution error as the returned data will be failing.
Expand Down
30 changes: 0 additions & 30 deletions pam/integration-tests/testdata/tapes/cli/mismatch_username.tape

This file was deleted.

29 changes: 0 additions & 29 deletions pam/integration-tests/testdata/tapes/native/mismatch_username.tape

This file was deleted.

0 comments on commit 63bd110

Please sign in to comment.