Skip to content

Commit

Permalink
Update README for using SSL
Browse files Browse the repository at this point in the history
  • Loading branch information
jtblin committed Dec 5, 2016
1 parent 8e98a3a commit 993d307
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func main() {
GroupFilter: "(memberUid=%s)",
Attributes: []string{"givenName", "sn", "mail", "uid"},
}
# It is the responsibility of the caller to close the connection
// It is the responsibility of the caller to close the connection
defer client.Close()

ok, user, err := client.Authenticate("username", "password")
Expand All @@ -49,6 +49,11 @@ func main() {
}
```

## SSL (ldaps)

If you use SSL, you will need to pass the server name for certificate verification
or skip domain name verification e.g.`client.ServerName = "ldap.example.com"`.

# Why?

There are already [tons](https://godoc.org/?q=ldap) of ldap libraries for `golang` but most of them
Expand Down

0 comments on commit 993d307

Please sign in to comment.