Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问下,web页面的默认账户密码是什么? #2

Open
ethanye168 opened this issue Jul 16, 2023 · 9 comments
Open

请问下,web页面的默认账户密码是什么? #2

ethanye168 opened this issue Jul 16, 2023 · 9 comments

Comments

@ethanye168
Copy link

用docker搭建好了,但没法登录,不知道web页面的账户密码,麻烦告知下,谢谢

@meshfire0
Copy link
Collaborator

容器部署请参考[README.md]步骤五,在项目根目录下新建.env文件,在“域控配置”中通过DCUSER和DCPWD指定。

@ZJKai
Copy link

ZJKai commented Jul 17, 2023

为啥我通过DCUSER和DCPWD指定的用户登录,还是提示用户不存在登录不了?

@Cgaii
Copy link

Cgaii commented Jul 18, 2023

为啥我通过DCUSER和DCPWD指定的用户登录,还是提示用户不存在登录不了?

所有的登录走的都是ldap认证,可以确认下DCUSER和DCPWD在域内是否真实存在,密码正确才可以登录

@microqs
Copy link

microqs commented Jul 19, 2023

遇到了相同的问题,使用的是域管账户,明明密码正确,登录提示“不存在该用户”。换了一个刚刚新建域账户的也不行,登录时还是提示“不存在该用户”

@ZJKai
Copy link

ZJKai commented Jul 19, 2023

DCUSER加上@域名就不会提示“不存在该用户”,但是登录后还是报错。

@Cgaii
Copy link

Cgaii commented Jul 19, 2023

@ZJKai @microqs
DCUSER配置的是域管用户名(eg:iatp),还是配置了带有OU的DN(eg:CN=iatp, OU=System, DC=demo, DC=com)

@Cgaii
Copy link

Cgaii commented Jul 19, 2023

DCUSER加上@域名就不会提示“不存在该用户”,但是登录后还是报错。

具体报错是什么呢?

@ZJKai
Copy link

ZJKai commented Jul 19, 2023

DCUSER加上@域名就不会提示“不存在该用户”,但是登录后还是报错。

具体报错是什么呢?

Web登录页面提示“Network error”。

这是容器watchad20-iatp-1的报错
[HTTP Server] http: panic serving : runtime error: index out of range [0] with length 0
goroutine 40 [running]:
net/http.(*conn).serve.func1(0xc00067e500)
/usr/local/go/src/net/http/server.go:1801 +0x147
panic(0x1251060, 0xc0002c4c00)
/usr/local/go/src/runtime/panic.go:975 +0x47a
iatp/iatp_wbm/controllers.(*UserController).PostLogin(0xc000032720, 0x0, 0x0)
/go/src/iatp_opensource/iatp_wbm/controllers/user_controller.go:140 +0x856
reflect.Value.call(0x1229fa0, 0xc000032720, 0x1613, 0x12f07c5, 0x4, 0x1d68040, 0x0, 0x0, 0x7, 0xc0000eb800, ...)
/usr/local/go/src/reflect/value.go:476 +0x8c7
reflect.Value.Call(0x1229fa0, 0xc000032720, 0x1613, 0x1d68040, 0x0, 0x0, 0x1613, 0xc0002d6080, 0x0)
/usr/local/go/src/reflect/value.go:337 +0xb9
github.com/kataras/iris/v12/mvc.(*ControllerActivator).handlerOf.func2(0x159eb20, 0xc000294d80)
/go/src/iatp_opensource/vendor/github.com/kataras/iris/v12/mvc/controller.go:497 +0x3cb
github.com/kataras/iris/v12/context.DefaultNext(0x159eb20, 0xc000294d80)
/go/src/iatp_opensource/vendor/github.com/kataras/iris/v12/context/context.go:1343 +0x10c
github.com/kataras/iris/v12/context.(*context).Next(0xc000294d80)
/go/src/iatp_opensource/vendor/github.com/kataras/iris/v12/context/context.go:1352 +0x3e
github.com/kataras/iris/v12/sessions.(*Sessions).Handler.func1(0x159eb20, 0xc000294d80)
/go/src/iatp_opensource/vendor/github.com/kataras/iris/v12/sessions/sessions.go:105 +0x12d
github.com/kataras/iris/v12/context.Do(0x159eb20, 0xc000294d80, 0xc0000137a0, 0x2, 0x2)
/go/src/iatp_opensource/vendor/github.com/kataras/iris/v12/context/context.go:1030 +0x82
github.com/kataras/iris/v12/context.(*context).Do(0xc000294d80, 0xc0000137a0, 0x2, 0x2)
/go/src/iatp_opensource/vendor/github.com/kataras/iris/v12/context/context.go:1217 +0x55
github.com/kataras/iris/v12/core/router.(*routerHandler).HandleRequest(0xc0003becc0, 0x159eb20, 0xc000294d80)
/go/src/iatp_opensource/vendor/github.com/kataras/iris/v12/core/router/handler.go:250 +0x562
github.com/kataras/iris/v12/core/router.(*Router).BuildRouter.func1(0x15766a0, 0xc0002e27e0, 0xc000508000)
/go/src/iatp_opensource/vendor/github.com/kataras/iris/v12/core/router/router.go:135 +0x8f
github.com/kataras/iris/v12/core/router.(*Router).ServeHTTP(0xc00007f860, 0x15766a0, 0xc0002e27e0, 0xc000508000)
/go/src/iatp_opensource/vendor/github.com/kataras/iris/v12/core/router/router.go:227 +0x48
net/http.serverHandler.ServeHTTP(0xc0001aa0e0, 0x15766a0, 0xc0002e27e0, 0xc000508000)
/usr/local/go/src/net/http/server.go:2843 +0xa3
net/http.(*conn).serve(0xc00067e500, 0x157a3a0, 0xc00061b900)
/usr/local/go/src/net/http/server.go:1925 +0x8ad
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2969 +0x36c

@Cgaii
Copy link

Cgaii commented Jul 20, 2023

DCUSER加上@域名就不会提示“不存在该用户”,但是登录后还是报错。

具体报错是什么呢?

Web登录页面提示“Network error”。

这是容器watchad20-iatp-1的报错 [HTTP Server] http: panic serving : runtime error: index out of range [0] with length 0 goroutine 40 [running]: net/http.(*conn).serve.func1(0xc00067e500) /usr/local/go/src/net/http/server.go:1801 +0x147 panic(0x1251060, 0xc0002c4c00) /usr/local/go/src/runtime/panic.go:975 +0x47a iatp/iatp_wbm/controllers.(*UserController).PostLogin(0xc000032720, 0x0, 0x0) /go/src/iatp_opensource/iatp_wbm/controllers/user_controller.go:140 +0x856 reflect.Value.call(0x1229fa0, 0xc000032720, 0x1613, 0x12f07c5, 0x4, 0x1d68040, 0x0, 0x0, 0x7, 0xc0000eb800, ...) /usr/local/go/src/reflect/value.go:476 +0x8c7 reflect.Value.Call(0x1229fa0, 0xc000032720, 0x1613, 0x1d68040, 0x0, 0x0, 0x1613, 0xc0002d6080, 0x0) /usr/local/go/src/reflect/value.go:337 +0xb9 github.com/kataras/iris/v12/mvc.(*ControllerActivator).handlerOf.func2(0x159eb20, 0xc000294d80) /go/src/iatp_opensource/vendor/github.com/kataras/iris/v12/mvc/controller.go:497 +0x3cb github.com/kataras/iris/v12/context.DefaultNext(0x159eb20, 0xc000294d80) /go/src/iatp_opensource/vendor/github.com/kataras/iris/v12/context/context.go:1343 +0x10c github.com/kataras/iris/v12/context.(*context).Next(0xc000294d80) /go/src/iatp_opensource/vendor/github.com/kataras/iris/v12/context/context.go:1352 +0x3e github.com/kataras/iris/v12/sessions.(*Sessions).Handler.func1(0x159eb20, 0xc000294d80) /go/src/iatp_opensource/vendor/github.com/kataras/iris/v12/sessions/sessions.go:105 +0x12d github.com/kataras/iris/v12/context.Do(0x159eb20, 0xc000294d80, 0xc0000137a0, 0x2, 0x2) /go/src/iatp_opensource/vendor/github.com/kataras/iris/v12/context/context.go:1030 +0x82 github.com/kataras/iris/v12/context.(*context).Do(0xc000294d80, 0xc0000137a0, 0x2, 0x2) /go/src/iatp_opensource/vendor/github.com/kataras/iris/v12/context/context.go:1217 +0x55 github.com/kataras/iris/v12/core/router.(*routerHandler).HandleRequest(0xc0003becc0, 0x159eb20, 0xc000294d80) /go/src/iatp_opensource/vendor/github.com/kataras/iris/v12/core/router/handler.go:250 +0x562 github.com/kataras/iris/v12/core/router.(*Router).BuildRouter.func1(0x15766a0, 0xc0002e27e0, 0xc000508000) /go/src/iatp_opensource/vendor/github.com/kataras/iris/v12/core/router/router.go:135 +0x8f github.com/kataras/iris/v12/core/router.(*Router).ServeHTTP(0xc00007f860, 0x15766a0, 0xc0002e27e0, 0xc000508000) /go/src/iatp_opensource/vendor/github.com/kataras/iris/v12/core/router/router.go:227 +0x48 net/http.serverHandler.ServeHTTP(0xc0001aa0e0, 0x15766a0, 0xc0002e27e0, 0xc000508000) /usr/local/go/src/net/http/server.go:2843 +0xa3 net/http.(*conn).serve(0xc00067e500, 0x157a3a0, 0xc00061b900) /usr/local/go/src/net/http/server.go:1925 +0x8ad created by net/http.(*Server).Serve /usr/local/go/src/net/http/server.go:2969 +0x36c

启动iatp,有报错日志吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants