我在MacOS上运行ML9。我试图在查询控制台(在App-Server端口8000上)设置外部身份验证(和最终授权)。
我有:1。创建了一些用户的OpenLDAP服务器2.创建了具有以下详细信息的LDAP配置:
Name: ExtLDAP
authentication: ldap
authorization: internal
ldap server uri: ldap://localhost:389
ldap base: dc=babji,dc=com
ldap attribute: cn
ldap default user: cn=Manager,dc=babji,dc=com
ldap password: [password of the above default user in OpenLDAP database]
ldap bind method: simple
ldap memberof attribute: ou
ldap memer attribute: ou
ssl require client certificate: false
名称:ldapuser外部名称:cn =较新的姓氏,ou = BizUser,dc = babji,dc = com
ldapsearch也有效:
ldapsearch -D "cn=manager,dc=babji,dc=com" -b dc=babji,dc=com -W objectclass=*
问题:
当我尝试使用浏览器使用LDAP数据库中的一个cn条目(用户)登录查询控制台时,我无法登录。此外,下面的命令不起作用。
xdmp:http-get("http://localhost:8000",
<options xmlns="xdmp:http">
<authentication>
<username>Newer Surname</username>
<password>xxxx</password>
</authentication>
</options>)
我不确定应该在配置页面中放置什么配置。你能帮助或重新指导我到正确的位置吗?
问候,Bharadwaj
涉及3个部分:
创建外部安全对象后,您是否记得回到应用服务器配置并实际配置它以使用安全对象?
此外,您没有提及日志文件。如何从那里发布错误(如果有的话)。
我建议的步骤让您返回并验证:
请看这一章: https://docs.marklogic.com/8.0/guide/security/external-auth#id_81861
然后继续执行外部安全对象配置部分:https://docs.marklogic.com/8.0/guide/security/external-auth#id_35317
最后,使用该对象的app服务器的实际配置(听起来你已经完成了1/2): https://docs.marklogic.com/8.0/guide/security/external-auth#id_63262