{"action":"created","issue":{"url":"https://api.github.com/repos/lifei6671/mindoc/issues/366","repository_url":"https://api.github.com/repos/lifei6671/mindoc","labels_url":"https://api.github.com/repos/lifei6671/mindoc/issues/366/labels{/name}","comments_url":"https://api.github.com/repos/lifei6671/mindoc/issues/366/comments","events_url":"https://api.github.com/repos/lifei6671/mindoc/issues/366/events","html_url":"https://github.com/lifei6671/mindoc/issues/366","id":368665303,"node_id":"MDU6SXNzdWUzNjg2NjUzMDM=","number":366,"title":"mindoc配置LDAP认证失败","user":{"login":"skymyyang","id":10495094,"node_id":"MDQ6VXNlcjEwNDk1MDk0","avatar_url":"https://avatars2.githubusercontent.com/u/10495094?v=4","gravatar_id":"","url":"https://api.github.com/users/skymyyang","html_url":"https://github.com/skymyyang","followers_url":"https://api.github.com/users/skymyyang/followers","following_url":"https://api.github.com/users/skymyyang/following{/other_user}","gists_url":"https://api.github.com/users/skymyyang/gists{/gist_id}","starred_url":"https://api.github.com/users/skymyyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skymyyang/subscriptions","organizations_url":"https://api.github.com/users/skymyyang/orgs","repos_url":"https://api.github.com/users/skymyyang/repos","events_url":"https://api.github.com/users/skymyyang/events{/privacy}","received_events_url":"https://api.github.com/users/skymyyang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-10T13:26:54Z","updated_at":"2018-10-11T02:37:18Z","closed_at":null,"author_association":"NONE","body":"请按照一下格式提交issue，谢谢！\r\n\r\n1. 你当前使用的是哪个版本的 MinDoc(`godoc_linux_amd64 version`)?\r\n\r\nmindoc的版本是V1.0.1\r\n2. 你当前使用的是什么操作系统?\r\nCentos 7\r\n\r\n3. 你是如何操作的？\r\n关于LDAP的配置如下：\r\n#是否启用ldap\r\nldap_enable=true\r\n#ldap主机名\r\nldap_host=172.16.18.246\r\n#ldap端口\r\nldap_port=389\r\n#ldap内哪个属性作为用户名\r\nldap_attribute=sAMAccountName\r\n#搜索范围\r\nldap_base=OU=mofangge,DC=mofangge,DC=cc\r\n#第一次绑定ldap用户dn\r\nldap_user=CN=mindocadmin,OU=Users,DC=mofangge,DC=cc\r\n#第一次绑定ldap用户密码\r\nldap_password=AAbbcc11..\r\n#自动注册用户角色：0 超级管理员 /1 管理员/ 2 普通用户\r\nldap_user_role=0\r\n#ldap搜索filter规则,AD服务器: objectClass=User, openldap服务器: objectClass=posixAccount ,也可以定义为其他属性,如: title=mindoc\r\nldap_filter=objectClass=User\r\n\r\n4. 你期望得到什么结果?\r\n期望使用ldap的用户能够登录。\r\n\r\n5. 当前遇到的是什么结果?\r\n当前看到的输出提示是：\r\n2018/10/10 21:21:41.391 [I] [AccountController.go:67]  转入LDAP登陆\r\n2018/10/10 21:21:41.393 [E] [AccountController.go:93]  用户登录 -> 第一次LDAP绑定失败 "},"comment":{"url":"https://api.github.com/repos/lifei6671/mindoc/issues/comments/428798654","html_url":"https://github.com/lifei6671/mindoc/issues/366#issuecomment-428798654","issue_url":"https://api.github.com/repos/lifei6671/mindoc/issues/366","id":428798654,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODc5ODY1NA==","user":{"login":"lifei6671","id":3665700,"node_id":"MDQ6VXNlcjM2NjU3MDA=","avatar_url":"https://avatars1.githubusercontent.com/u/3665700?v=4","gravatar_id":"","url":"https://api.github.com/users/lifei6671","html_url":"https://github.com/lifei6671","followers_url":"https://api.github.com/users/lifei6671/followers","following_url":"https://api.github.com/users/lifei6671/following{/other_user}","gists_url":"https://api.github.com/users/lifei6671/gists{/gist_id}","starred_url":"https://api.github.com/users/lifei6671/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lifei6671/subscriptions","organizations_url":"https://api.github.com/users/lifei6671/orgs","repos_url":"https://api.github.com/users/lifei6671/repos","events_url":"https://api.github.com/users/lifei6671/events{/privacy}","received_events_url":"https://api.github.com/users/lifei6671/received_events","type":"User","site_admin":false},"created_at":"2018-10-11T02:37:18Z","updated_at":"2018-10-11T02:37:18Z","author_association":"OWNER","body":"请检查ldap是否可以正常连接，配置的信息是否正确。"}}
{"actor":{"display_login":"lifei6671"}}