From 993d3073189f954b839ecfb3840f2ebe67d38278 Mon Sep 17 00:00:00 2001 From: Jerome Touffe-Blin Date: Mon, 5 Dec 2016 11:19:14 +1100 Subject: [PATCH] Update README for using SSL --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7c89ee7..ec2f208 100644 --- a/README.md +++ b/README.md @@ -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") @@ -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