Skip to content

Commit

Permalink
Now the password is not working and has been replaced with the privat…
Browse files Browse the repository at this point in the history
…e key authentification, more secure than a plain text password...
  • Loading branch information
Acanthostega committed Jun 25, 2014
1 parent 4ff4c74 commit c3d7bd1
Show file tree
Hide file tree
Showing 5 changed files with 336 additions and 265 deletions.
3 changes: 2 additions & 1 deletion configuration/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package configuration

import (
"io/ioutil"

"launchpad.net/goyaml"
)

// A type defining the user structure in the YAML file which we need
// in argument.
type MyUsers struct {
Password string "password"
Key string "private_key"
Commands []string "commands"
}

Expand Down
7 changes: 4 additions & 3 deletions exec/exec_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package exec

import (
config "github.com/ElricleNecro/TOD/configuration"
"github.com/ElricleNecro/TOD/formatter"
myusr "os/user"
"testing"

config "github.com/ElricleNecro/TOD/configuration"
"github.com/ElricleNecro/TOD/formatter"
)

var (
Expand Down Expand Up @@ -47,7 +48,7 @@ func TestRunCommands(t *testing.T) {
user = &formatter.User{
Name: myuser,
Identity: 1,
Password: fields.Password,
Key: fields.Key,
}
}

Expand Down
Loading

0 comments on commit c3d7bd1

Please sign in to comment.