Skip to content

LDAP returning ldap::user not found when user exists #6416

@alister-cf

Description

@alister-cf

I was looking into setting up LDAP via Jumpcloud and even though I am able to use the same credentials in other applications they don't work in cds

I did look up the code and Jumpcloud doesn't provide the dn and company field on a user, could this be the problem?

The error logged after attempting a login:

github.com/ovh/cds/sdk.NewError /tmp/790ad7b9a1a85167593986ed564384b7/run/sdk/error.go:546 github.com/ovh/cds/engine/api/authentication/ldap.AuthDriver.GetUserInfo /tmp/790ad7b9a1a85167593986ed564384b7/run/engine/api/authentication/ldap/ldap.go:98 github.com/ovh/cds/engine/api.(*API).postAuthSigninHandler.func1 /tmp/790ad7b9a1a85167593986ed564384b7/run/engine/api/auth.go:125 github.com/ovh/cds/engine/api.(*Router).handle.func1 /tmp/790ad7b9a1a85167593986ed564384b7/run/engine/api/router.go:442 net/http.HandlerFunc.ServeHTTP /usr/local/go/src/net/http/server.go:2084 github.com/ovh/cds/engine/api.(*Router).recoverWrap.func1 /tmp/790ad7b9a1a85167593986ed564384b7/run/engine/api/router.go:170 github.com/ovh/cds/engine/api.(*Router).setRequestID.func1 /tmp/790ad7b9a1a85167593986ed564384b7/run/engine/api/router.go:118 net/http.HandlerFunc.ServeHTTP /usr/local/go/src/net/http/server.go:2084 github.com/gorilla/handlers.CompressHandlerLevel.func1 /go/pkg/mod/github.com/gorilla/handlers@v0.0.0-20160816184729-a5775781a543/compress.go:143 net/http.HandlerFunc.ServeHTTP /usr/local/go/src/net/http/server.go:2084 github.com/ovh/cds/engine/api.(*Router).compress.func1 /tmp/790ad7b9a1a85167593986ed564384b7/run/engine/api/router.go:95 github.com/ovh/cds/engine/api.(*Router).pprofLabel.func1 /tmp/790ad7b9a1a85167593986ed564384b7/run/engine/api/router.go:87 net/http.HandlerFunc.ServeHTTP /usr/local/go/src/net/http/server.go:2084 github.com/gorilla/mux.(*Router).ServeHTTP /go/pkg/mod/github.com/gorilla/mux@v1.8.0/mux.go:210 net/http.serverHandler.ServeHTTP /usr/local/go/src/net/http/server.go:2916 net/http.(*conn).serve /usr/local/go/src/net/http/server.go:1966 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1571

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions