diff options
author | Hiroki Uchiumi <uchiumi@estrella.co.jp> | 2019-10-21 22:07:07 +0200 |
---|---|---|
committer | Ned McClain <nedmcclain@gmail.com> | 2019-10-21 22:07:07 +0200 |
commit | 3b3b69a7e9e3a1fc8b36f6545ae4e0f6e6a63fd2 (patch) | |
tree | 17bfbe05c522eb33e679a5fe205bba6b5dd67d75 /examples/server.go | |
parent | Add support for retrieving all user attributes (#5) (diff) | |
download | ldap-3b3b69a7e9e3a1fc8b36f6545ae4e0f6e6a63fd2.tar ldap-3b3b69a7e9e3a1fc8b36f6545ae4e0f6e6a63fd2.tar.gz ldap-3b3b69a7e9e3a1fc8b36f6545ae4e0f6e6a63fd2.tar.bz2 ldap-3b3b69a7e9e3a1fc8b36f6545ae4e0f6e6a63fd2.tar.lz ldap-3b3b69a7e9e3a1fc8b36f6545ae4e0f6e6a63fd2.tar.xz ldap-3b3b69a7e9e3a1fc8b36f6545ae4e0f6e6a63fd2.tar.zst ldap-3b3b69a7e9e3a1fc8b36f6545ae4e0f6e6a63fd2.zip |
Diffstat (limited to 'examples/server.go')
-rw-r--r-- | examples/server.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/server.go b/examples/server.go index 3341991..b8beeeb 100644 --- a/examples/server.go +++ b/examples/server.go @@ -1,9 +1,12 @@ +// +build ignore + package main import ( - "github.com/nmcclain/ldap" "log" "net" + + "github.com/nmcclain/ldap" ) ///////////// @@ -27,7 +30,7 @@ func main() { listen := "localhost:3389" log.Printf("Starting example LDAP server on %s", listen) if err := s.ListenAndServe(listen); err != nil { - log.Fatal("LDAP Server Failed: %s", err.Error()) + log.Fatalf("LDAP Server Failed: %s", err.Error()) } } |