eryajf / go-ldap-admin

🌉 基于Go+Vue实现的openLDAP后台管理项目
http://ldapdoc.eryajf.net
Apache License 2.0
1.51k stars 256 forks source link

🙋 问题交流|K8S启动服务后登录提示没有权限 #316

Closed enica closed 5 months ago

enica commented 5 months ago

Question Report

请在提交问题之前回答这些问题,谢谢。 | Please answer these questions before submitting them. Thank you.

你使用了哪个版本? | Which version did you use?

registry.cn-hangzhou.aliyuncs.com/ali_eryajf/go-ldap-admin-server

预期行为 | Expected behavior

正常登录

实际行为 | Actual behavior

admin登录提示无权限

原因分析(如果可以) | Cause analysis (if possible)

go-1 后台日志 go-2

问题解决步骤 | Steps to reproduce the problem

执行以下sql语句: INSERT INTO go_ldap_admin.apis (created_at,updated_at,deleted_at,method,path,category,remark,creator) VALUES ('2023-02-24 19:51:37.398000000','2023-02-24 19:51:37.398000000',NULL,'GET','/menu/access/tree','api','获取接口列表','系统'); INSERT INTO go_ldap_admin.casbin_rule (ptype,v0,v1,v2,v3,v4,v5) VALUES ('p','user','/menu/access/tree','GET','','',''); INSERT INTO go_ldap_admin.casbin_rule (ptype,v0,v1,v2,v3,v4,v5) VALUES ('p','admin','/menu/access/tree','GET','','',''); 重启服务

eryajf commented 5 months ago

您好 @enica👋,我已收到您的反馈,我将安排时间考虑您提交的信息并进行回复。-- 这条信息是由自动回复的机器人发出的。

Hello @enica. I have received your feedback, and I will arrange time to consider the information you submitted and reply. -- This message is sent by an automatic reply robot.

enica commented 5 months ago

已解决