Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Commit

Permalink
modified: .gitignore
Browse files Browse the repository at this point in the history
	modified:   Talon.go
  • Loading branch information
Tylous committed Nov 3, 2020
1 parent 3289501 commit 36cbf97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.gitignore
.goreleaser.yml
.DS_Store
dist/config.yaml
6 changes: 3 additions & 3 deletions Talon.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func setup(service, host, domain, username, password string, enum bool) Authenti
}

func (l LDAP) Login() (string, string, error) {
printDebug("Logging into LDAP with %v", l)
printDebug("Logging into LDAP with %v\n", l)
conn, err := ldap.DialTLS("tcp", (l.Host + ":636"), &tls.Config{InsecureSkipVerify: true})

if err != nil {
Expand Down Expand Up @@ -287,15 +287,15 @@ func (l LDAP) Login() (string, string, error) {
return result, forfile, err
}
func (k KERB) Login() (string, string, error) {
printDebug("Logging into Kerberos with %v", k)
printDebug("Logging into Kerberos with %v\n", k)
cfg, err := config.NewConfigFromString("[libdefaults]\n default_realm = ${REALM}\n dns_lookup_realm = false\n dns_lookup_kdc = true\n [realms]\n " + k.User.Domain + " = {\n kdc =" + k.Host + ":88\n }\n")
if k.Enum == true {
cfg.LibDefaults.PreferredPreauthTypes = []int{int(etypeID.DES3_CBC_SHA1_KD)}
}
if err != nil {
panic(err.Error())
}
cl := client.NewClientWithPassword(k.User.Name, k.User.Domain, k.User.Password, cfg, client.DisablePAFXFAST(true), client.AssumePreAuthentication(true))
cl := client.NewClientWithPassword(k.User.Name, k.User.Domain, k.User.Password, cfg, client.DisablePAFXFAST(true))
err = cl.Login()
if err != nil {
printDebug(err.Error() + "\n")
Expand Down

0 comments on commit 36cbf97

Please sign in to comment.