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 Nov 13, 2024
1 parent 93e7a51 commit f77b12a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 65 deletions.
3 changes: 0 additions & 3 deletions examplebroker/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -903,9 +903,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
33 changes: 0 additions & 33 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 f77b12a

Please sign in to comment.