Skip to content

Commit

Permalink
Refactor to use xpasswd (#149)
Browse files Browse the repository at this point in the history
* Refactor to use xpasswd

Signed-off-by: Mauro Morales <[email protected]>

* Change path in tests to reflect a real path

Signed-off-by: Mauro Morales <[email protected]>

* Check for an error when loading the user lists

Signed-off-by: Mauro Morales <[email protected]>

* Check password

Signed-off-by: Mauro Morales <[email protected]>

---------

Signed-off-by: Mauro Morales <[email protected]>
  • Loading branch information
mauromorales authored May 15, 2024
1 parent 9394813 commit 0446b4e
Show file tree
Hide file tree
Showing 5 changed files with 229 additions and 329 deletions.
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ require (
github.com/hashicorp/go-multierror v1.1.1
github.com/itchyny/gojq v0.12.15
github.com/joho/godotenv v1.5.1
github.com/mauromorales/xpasswd v0.3.0
github.com/moby/moby v24.0.9+incompatible
github.com/mudler/entities v0.0.0-20220905203055-68348bae0f49
github.com/onsi/ginkgo/v2 v2.17.1
Expand All @@ -24,7 +25,6 @@ require (
github.com/spectrocloud-labs/herd v0.4.2
github.com/spf13/cobra v1.8.0
github.com/twpayne/go-vfs/v4 v4.3.0
github.com/willdonnelly/passwd v0.0.0-20141013001024-7935dab3074c
github.com/zcalusic/sysinfo v0.9.5
golang.org/x/crypto v0.22.0
gopkg.in/ini.v1 v1.67.0
Expand All @@ -39,7 +39,6 @@ require (
github.com/Masterminds/semver/v3 v3.2.0 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/ProtonMail/go-crypto v1.0.0 // indirect
github.com/acomagu/bufpipe v1.0.3 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
github.com/diskfs/go-diskfs v1.3.0 // indirect
Expand All @@ -61,7 +60,6 @@ require (
github.com/kendru/darwin/go/depgraph v0.0.0-20221105232959-877d6a81060c // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/packethost/packngo v0.29.0 // indirect
Expand All @@ -80,6 +78,7 @@ require (
github.com/vishvananda/netlink v1.1.0 // indirect
github.com/vishvananda/netns v0.0.4 // indirect
github.com/vmware/vmw-guestinfo v0.0.0-20220317130741-510905f0efa3 // indirect
github.com/willdonnelly/passwd v0.0.0-20141013001024-7935dab3074c // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
golang.org/x/exp v0.0.0-20220303212507-bbda1eaf7a17 // indirect
golang.org/x/mod v0.14.0 // indirect
Expand Down
Loading

0 comments on commit 0446b4e

Please sign in to comment.