我一直在寻找一些关于如何从 OpenLDAP 检索操作属性的好的文档时遇到问题。
我想通过执行 LDAP 搜索来检索 LDAP 服务器的基本专有名称。
当我明确要求 NamingContexts 属性时,为什么我的搜索不起作用?有人告诉我,我需要在属性列表中添加一个加号 ('+')。
如果是这种情况,我应该摆脱“namingContexts”属性还是两者兼而有之?
ldapsearch -H ldap://ldap.mydomain.com -x -s base -b "" +
# note the + returns operational attributes
Run Code Online (Sandbox Code Playgroud)
编辑:注意请求的属性看起来是空的。加号不应该在属性列表中吗?http://www.zytrax.com/books/ldap/ch3/#operational