我一直在試圖建立我的第一個真正的OpenLDAP的實例登錄頁面,我遇到了一個大問題得到它intially開始。每次啓動LDAP,做一個初步的搜索,我得到指示,我有沒有域設立了迴應:初始OPENLDAP配置
# 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
當我運行調試的slapd切換到配置我得到一些輸出,我認爲表明我的配置文件不被加載;但我不完全知道要尋找什麼,在或在這一點上尋找,並沒有我在網上找到的教程圍繞着這一問題的工作。在Ubuntu的11.10箱,如果有幫助的人,我一直在使用做了所有我的安裝和重新安裝的apt-get的slapd的。這可能僅僅是因我的自己的無知一個愚蠢的錯誤,但我很茫然,在這一點上找到它。
而且我附上下面的啓動調試輸出,以防萬一有人發現了它有用。
@(#) $OpenLDAP: slapd 2.4.25 (Nov 14 2011 21:34:11) $
[email protected]:/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
向我們顯示搜索命令行。 – EJP 2012-03-22 21:29:43
ldapsearch -x -b''-s base'(objectclass = *)'namingContexts 我的理解是該命令應該列出服務器上所有可用的上下文。我也試過 ldapsearch -x -W -D'cn = root,dc = test,dc = com'-b「」-s base – SD47 2012-03-24 18:17:01