Cannot login in to grafana using ldap configured user

Hello,

I have Integrated grafana with ldap. When i try to login its printing out below stack trace.

t=2018-09-13T21:28:11-0500 lvl=eror msg=“Request error” logger=context userId=0 orgId=0 uname= error=“runtime error: invalid memory address or nil pointer dereference” stack="/opt/go/src/runtime/panic.go:505 (0x4341d8)\n/opt/go/src/runtime/panic.go:63 (0x43324d)\n/opt/go/src/runtime/signal_unix.go:388 (0x44a119)\n/root/opensource/src/github.com/grafana/grafana/vendor/github.com/go-ldap/ldap/error.go:102 (0xac0c8a)\n/root/opensource/src/github.com/grafana/grafana/pkg/login/ldap.go:74 (0xae4f89)\n/root/opensource/src/github.com/grafana/grafana/pkg/login/ldap.go:74 (0xae4f89)\n/root/opensource/src/github.com/grafana/grafana/pkg/login/ldap.go:93 (0xae53cc)\n/root/opensource/src/github.com/grafana/grafana/pkg/login/auth.go:117 (0xae1d53)\n/opt/go/src/runtime/asm_amd64.s:573 (0x461aaa)\n/opt/go/src/reflect/value.go:447 (0x4be5a8)\n/opt/go/src/reflect/value.go:308 (0x4bdb23)\n/root/opensource/src/github.com/grafana/grafana/pkg/bus/bus.go:73 (0x7b0fe0)\n/root/opensource/src/github.com/grafana/grafana/pkg/bus/bus.go:154 (0x7b1cf8)\n/root/opensource/src/github.com/grafana/grafana/pkg/api/login.go:109 (0xd55f93)\n/opt/go/src/runtime/asm_amd64.s:574 (0x461b2a)\n/opt/go/src/reflect/value.go:447 (0x4be5a8)\n/opt/go/src/reflect/value.go:308 (0x4bdb23)\n/root/opensource/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:177 (0x7c0974)\n/root/opensource/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:137 (0x7c02f9)\n/root/opensource/src/github.com/grafana/grafana/pkg/api/common.go:37 (0xd72fcb)\n/opt/go/src/runtime/asm_amd64.s:573 (0x461aaa)\n/opt/go/src/reflect/value.go:447 (0x4be5a8)\n/opt/go/src/reflect/value.go:308 (0x4bdb23)\n/root/opensource/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:177 (0x7c0974)\n/root/opensource/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:137 (0x7c02f9)\n/root/opensource/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:121 (0x7dbd5d)\n/root/opensource/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:112 (0x7dbc9e)\n/root/opensource/src/github.com/grafana/grafana/pkg/middleware/request_tracing.go:25 (0xb3e40c)\n/opt/go/src/runtime/asm_amd64.s:573 (0x461aaa)\n/opt/go/src/reflect/value.go:447 (0x4be5a8)\n/opt/go/src/reflect/value.go:308 (0x4bdb23)\n/root/opensource/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:177 (0x7c0974)\n/root/opensource/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:137 (0x7c02f9)\n/root/opensource/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:121 (0x7dbd5d)\n/root/opensource/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:112 (0x7dbc9e)\n/root/opensource/src/github.com/grafana/grafana/pkg/middleware/request_metrics.go:17 (0xb3dcc7)\n/opt/go/src/runtime/asm_amd64.s:573 (0x461aaa)\n/opt/go/src/reflect/value.go:447 (0x4be5a8)\n/opt/go/src/reflect/value.go:308 (0x4bdb23)\n/root/opensource/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:177 (0x7c0974)\n/root/opensource/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:137 (0x7c02f9)\n/root/opensource/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:121 (0x7dbd5d)\n/root/opensource/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:112 (0x7dbc9e)\n/root/opensource/src/github.com/grafana/grafana/pkg/middleware/session.go:79 (0xb3e74a)\n/opt/go/src/runtime/asm_amd64.s:573 (0x461aaa)\n/opt/go/src/reflect/value.go:447 (0x4be5a8)\n/opt/go/src/reflect/value.go:308 (0x4bdb23)\n/root/opensource/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:177 (0x7c0974)\n/root/opensource/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:137 (0x7c02f9)\n/root/opensource/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:121 (0x7dbd5d)\n/root/opensource/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:112 (0x7dbc9e)\n/root/opensource/src/github.com/grafana/grafana/pkg/middleware/recovery.go:146 (0xb3dbe0)\n/root/opensource/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:79 (0x7dbb70)\n/root/opensource/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:157 (0x7c0686)\n/root/opensource/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:135 (0x7c03ea)\n/root/opensource/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:121 (0x7dbd5d)\n/root/opensource/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:112 (0x7dbc9e)\n/root/opensource/src/github.com/grafana/grafana/pkg/middleware/logger.go:33 (0xb3ba21)\n/opt/go/src/runtime/asm_amd64.s:573 (0x461aaa)\n/opt/go/src/reflect/value.go:447 (0x4be5a8)\n/opt/go/src/reflect/value.go:308 (0x4bdb23)\n/root/opensource/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:177 (0x7c0974)\n/root/opensource/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:137 (0x7c02f9)\n/root/opensource/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:121 (0x7dbd5d)\n/root/opensource/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/router.go:187 (0x7ec041)\n/root/opensource/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/router.go:296 (0x7e69eb)\n/root/opensource/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/macaron.go:220 (0x7e0134)\n/opt/go/src/net/http/server.go:2694 (0x695c9b)\n/opt/go/src/net/http/server.go:1830 (0x692010)\n/opt/go/src/runtime/asm_amd64.s:2361 (0x464250)\n"
t=2018-09-13T21:28:11-0500 lvl=eror msg=“Request Completed” logger=context userId=0 orgId=0 uname= method=POST path=/login status=500 remote_addr=1.2.3.4 time_ms=6 size=1166 referer=https://hostname:3000/login

Thanks ,
Bharath