我一直在尝试为登录页面设置我的第一个真实的openLDAP实例,但是我遇到了一个很大的问题,让它无法启动。每次启动LDAP并进行初始搜索时,我都会得到一个响应,表明我没有设置域:
# extended LDIF
#
# LDAPv3
# base <> with scope baseObject
# filter: (objectclass=*)
# requesting: namingContexts
#
#
dn:
namingContexts: dc=nodomain
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1但是,我的理解是,如果我编辑/etc/ldap/slapd.conf来更改后缀,我可以让服务器从我选择的域开始。为此,我有以下slapd.conf:
# slapd.conf - configuration
include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/inetorgperson.schema
pidfile /var/run/slapd/slapd.pid
argsfile /var/run/slapd/slapd.args
loglevel any
modulepath /usr/lib/ldap
# modelpath /usr/local/libexc/openldap
moduleload back_hdb
######################
# DB configuration #
#####################
database hdb
suffix "dc=test,dc=com"
rootdn "cn=root,dc=test,dc=com"
rootpw secret
directory /var/lib/ldap
# directory /usr/local/var/openldap-data
index objectClass,cn eq
########
# ACLs #
########
access to attrs=userPassword
by anonymous auth
by self write
by * none
access to *
by self write
by * none当我使用切换到config的调试运行slapd时,我得到了一些输出,我认为这些输出表明我的配置文件没有被加载;但我不完全确定此时该查看或查找什么,而且我在网上找到的任何教程都没有解决这个问题。如果它帮助任何人,我已经完成了我所有的安装和重新安装使用apt-get slapd在一个ubuntu-11.10框。这可能只是我自己的无知造成的一个愚蠢的错误,但在这一点上我却不知所措。
另外,我在下面附加启动调试输出,以防有人发现它有用。
@(#) $OpenLDAP: slapd 2.4.25 (Nov 14 2011 21:34:11) $
buildd@yellow:/build/buildd/openldap-2.4.25/debian/build/servers/slapd
loaded module back_hdb
module back_hdb: null module registered
index objectClass 0x0004
slapd starting发布于 2012-05-01 16:02:36
您应该使用带有ldapsearch的-H开关来指定要搜索的服务器。
监听器是通过/opt/symas/etc/openldap/syas-openldap.conf中的HOST_LIST参数设置的,您可以检查这个文件来检查当前的设置。默认的做法是侦听回送地址。
发布于 2012-03-21 05:32:37
使用slaptest实用程序调试slapd.conf。请看文件。
发布于 2012-09-05 11:49:31
-x -h localhost -b "dc=test,dc=com“
https://stackoverflow.com/questions/9798281
复制相似问题