歡迎您光臨本站 註冊首頁

LDAP 運行 slapd 的錯誤:

←手機掃碼閱讀     火星人 @ 2014-03-05 , reply:0

LDAP 運行 slapd 的錯誤:

關於配置碰到的問題:
運行 slapd 的錯誤:
/u3/ldap/openldap/libexec/slapd -d 256
返回的信息如下:
slapd: Cannot find ELF
Killed
另外
bash-2.03# ./sbin/slappasswd -h {MD5}
slappasswd: Cannot find ELF
Killed
bash-2.03# man slappasswd
No manual entry for slappasswd.

OS:SunOS testdb 5.8 Generic_117350-06 sun4u sparc SUNW,Ultra-Enterprise

software:
db-4.2.52.tar.gz
openldap-stable-20040329.tgz

在線等待!!!!!急!!!!!!!-
《解決方案》

LDAP 運行 slapd 的錯誤:

那位大蝦知道啊?我已經折騰了3天了好不容易make install成功卻用不了。鬱悶
bash-2.03# more slapd.conf
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /u3/ldap/ez_openldap/openldap/etc/openldap/schema/core.schema
include         /u3/ldap/ez_openldap/openldap/etc/openldap/schema/corba.schema
include         /u3/ldap/ez_openldap/openldap/etc/openldap/schema/cosine.schema
include         /u3/ldap/ez_openldap/openldap/etc/openldap/schema/inetorgperson.schema
include         /u3/ldap/ez_openldap/openldap/etc/openldap/schema/misc.schema
include         /u3/ldap/ez_openldap/openldap/etc/openldap/schema/openldap.schema
include         /u3/ldap/ez_openldap/openldap/etc/openldap/schema/nis.schema
include         /u3/ldap/ez_openldap/openldap/etc/openldap/schema/java.schema
include         /u3/ldap/ez_openldap/openldap/etc/openldap/schema/dyngroup.schema

# Define global ACLs to disable default read access.

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral       ldap://root.openldap.org

pidfile         /u3/ldap/ez_openldap/openldap/var/run/slapd.pid
argsfile        /u3/ldap/ez_openldap/openldap/var/run/slapd.args

# Load dynamic backend modules:
# modulepath    /u3/ldap/ez_openldap/openldap/libexec/openldap
# moduleload    back_bdb.la
# moduleload    back_ldap.la
# moduleload    back_ldbm.la
# moduleload    back_passwd.la
# moduleload    back_shell.la

# Sample security restrictions
#       Require integrity protection (prevent hijacking)
#       Require 112-bit (3DES or better) encryption for updates
#       Require 63-bit encryption for simple bind
# security ssf=1 update_ssf=112 simple_bind=64

# Sample access control policy:
#       Root DSE: allow anyone to read it
#       Subschema (sub)entry DSE: allow anyone to read it
#       Other DSEs:
#               Allow self write access
#               Allow authenticated users read access
#               Allow anonymous users to authenticate
#       Directives needed to implement policy:
# access to dn.base="" by * read
# access to dn.base="cn=Subschema" by * read
# access to *
#       by self write
#       by users read
#       by anonymous auth
#
# if no access controls are present, the default policy
# allows anyone and everyone to read anything but restricts
# updates to rootdn.  (e.g., "access to * by * read")
#
# rootdn can always read and write EVERYTHING!

#######################################################################
# BDB database definitions
#######################################################################

database        bdb
suffix          "dc=ez,dc=com"
rootdn          "cn=admin,dc=ez,dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw          secret
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory       /u3/ldap/ez_openldap/openldap/var/openldap-data
# Indices to maintain
index   objectClass     eq
bash-2.03#  


make test
時沒有錯誤,下面是make test 時列印出的信息
cd tests; make test
make: Entering directory `/u3/ldap/ez_openldap/src/openldap-2.2.15/tests'
make: Entering directory `/u3/ldap/ez_openldap/src/openldap-2.2.15/tests'
Initiating LDAP tests for BDB...
Running ./scripts/all...
>;>;>;>;>; Executing all LDAP tests for bdb
>;>;>;>;>; Starting test000-rootdse ...
running defines.sh
Starting slapd on TCP/IP port 9011...
Using ldapsearch to retrieve the root DSE...
Waiting 5 seconds for slapd to start...
Using ldapsearch to retrieve the cn=Monitor...
dn:
objectClass: top
objectClass: OpenLDAProotDSE
structuralObjectClass: OpenLDAProotDSE
namingContexts: o=OpenLDAP Project,l=Internet
monitorContext: cn=Monitor
supportedControl: 2.16.840.1.113730.3.4.18
supportedControl: 2.16.840.1.113730.3.4.2
supportedControl: 1.3.6.1.4.1.4203.1.10.1
supportedControl: 1.2.840.113556.1.4.1413
supportedControl: 1.2.840.113556.1.4.1339
supportedControl: 1.2.840.113556.1.4.319
supportedControl: 1.2.826.0.1.334810.2.3
supportedExtension: 1.3.6.1.4.1.4203.1.11.1
supportedExtension: 1.3.6.1.4.1.4203.1.11.3
supportedFeatures: 1.3.6.1.4.1.4203.1.5.1
supportedFeatures: 1.3.6.1.4.1.4203.1.5.2
supportedFeatures: 1.3.6.1.4.1.4203.1.5.3
supportedFeatures: 1.3.6.1.4.1.4203.1.5.4
supportedFeatures: 1.3.6.1.4.1.4203.1.5.5
supportedLDAPVersion: 3
vendorName: The OpenLDAP Project <http://www.openldap.org/>;
subschemaSubentry: cn=Subschema

dn: cn=Monitor
objectClass: monitorServer
structuralObjectClass: monitorServer
cn: Monitor
description: This subtree contains monitoring/managing objects.
description: This object contains information about this server.
createTimestamp: 20040824073422Z
modifyTimestamp: 20040824073422Z
monitoredInfo: @(#) $OpenLDAP: slapd 2.2.15 (Aug 24 2004 15:32:35) $
subschemaSubentry: cn=Subschema
hasSubordinates: TRUE

>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test000-rootdse completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test001-slapadd ...
running defines.sh
Running slapadd to build slapd database...
Starting slapd on TCP/IP port 9011...
Using ldapsearch to retrieve all the entries...
Waiting 5 seconds for slapd to start...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test001-slapadd completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test002-populate ...
running defines.sh
Starting slapd on TCP/IP port 9011...
Using ldapsearch to check that slapd is running...
Waiting 5 seconds for slapd to start...
Using ldapadd to populate the database...
Using ldapsearch to read all the entries...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test002-populate completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test003-search ...
running defines.sh
Running slapadd to build slapd database...
Running slapindex to index slapd database...
Starting slapd on TCP/IP port 9011...
Testing slapd searching...
Waiting 5 seconds for slapd to start...
Testing exact searching...
Testing approximate searching...
Testing OR searching...
Testing AND matching and ends-with searching...
Testing NOT searching...
Testing objectClass/attributeType inheritance ...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test003-search completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test004-modify ...
running defines.sh
Running slapadd to build slapd database...
Starting slapd on TCP/IP port 9011...
Testing slapd modify operations...
Waiting 5 seconds for slapd to start...
Testing modify, add, and delete...
Using ldapsearch to retrieve all the entries...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test004-modify completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test005-modrdn ...
running defines.sh
Running slapadd to build slapd database...
Starting slapd on TCP/IP port 9011...
Testing slapd modrdn operations...
Waiting 5 seconds for slapd to start...
Testing modrdn(deleteoldrdn=0)...
Testing modrdn(deleteoldrdn=1)...
Using ldapsearch to retrieve entries using new rdn (cn=James A Jones III)...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
Using ldapsearch to retrieve entries using new rdn (cn=James A Jones II)...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
Using ldapsearch to retrieve entries using removed rdn (cn=James A Jones 2)...
Using ldapsearch to retrieve all the entries...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
Testing modrdn(deleteoldrdn=1), modrdn with new rdn already an att val...
Using ldapsearch to retrieve entries using new rdn (cn=James A Jones 1)...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test005-modrdn completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test006-acls ...
running defines.sh
Running slapadd to build slapd database...
Starting slapd on TCP/IP port 9011...
Testing slapd access control...
Waiting 5 seconds for slapd to start...
Using ldapsearch to retrieve all the entries...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test006-acls completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test007-replication ...
running defines.sh
Starting master slapd on TCP/IP port 9011...
Starting slave slapd on TCP/IP port 9012...
Using ldapsearch to check that master slapd is running...
Waiting 5 seconds for slapd to start...
Using ldapsearch to check that slave slapd is running...
Starting slurpd...
Using ldapadd to populate the master directory...
Waiting 15 seconds for slurpd to send changes...
Using ldapmodify to modify master directory...
Waiting 15 seconds for slurpd to send changes...
Using ldapsearch to read all the entries from the master...
Using ldapsearch to read all the entries from the slave...
Filtering master results...
Filtering slave results...
Comparing retrieved entries from master and slave...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test007-replication completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test008-concurrency ...
running defines.sh
Running slapadd to build slapd database...
Waiting 5 seconds for slapadd to build slapd database...
Starting slapd on TCP/IP port 9011...
Using ldapsearch to check that slapd is running...
Waiting 5 seconds for slapd to start...
Using tester for concurrent server access...
Using ldapsearch to retrieve all the entries...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test008-concurrency completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test009-referral ...
running defines.sh
Running slapadd to build slapd database...
Starting master slapd on TCP/IP port 9011...
Starting slave slapd on TCP/IP port 9012...
Testing for master slapd...
Waiting 5 seconds for master slapd to start...
Testing for slave slapd...
Testing exact searching...
Testing approximate searching...
Testing OR searching...
Testing AND matching and ends-with searching...
Testing NOT searching...
Testing objectClass/attributeType inheritance ...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test009-referral completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test010-passwd ...
running defines.sh
Starting slapd on TCP/IP port 9011...
Using ldapsearch to check that slapd is running...
Waiting 5 seconds for slapd to start...
Using ldapadd to populate the database...
Using ldapsearch to verify population ...
Using ldappasswd (PASS 1)  ...
Using ldappasswd (PASS 2)  ...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test010-passwd completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test011-glue-slapadd ...
running defines.sh
Running slapadd to build glued slapd databases...
Starting slapd on TCP/IP port 9011...
Using ldapsearch to retrieve all the entries...
Waiting 5 seconds for slapd to start...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
Testing sizelimit...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test011-glue-slapadd completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test012-glue-populate ...
running defines.sh
Starting slapd on TCP/IP port ...
Using ldapsearch to check that slapd is running...
Waiting 5 seconds for slapd to start...
Using ldapadd to populate the glued database...
Using ldapsearch to read all the entries...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test012-glue-populate completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test013-language ...
running defines.sh
Starting slapd on TCP/IP port 9011...
Using ldapsearch to check that slapd is running...
Waiting 5 seconds for slapd to start...
Using ldapadd to populate the database...
Using ldapsearch to read all the entries...
Using ldapsearch to read name ...
Using ldapsearch to read name language tag ...
Using ldapsearch to read name language range ...
Filtering ldapsearch results...
Filtering language ldif ...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test013-language completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test014-whoami ...
running defines.sh
Starting slapd on TCP/IP port ...
Using ldapsearch to check that slapd is running...
Waiting 5 seconds for slapd to start...
Testing ldapwhoami as anonymous...
anonymous
Testing ldapwhoami as cn=Manager,o=University of Michigan,c=US...
dn:cn=Manager,o=University of Michigan,c=US
Testing ldapwhoami as cn=Manager,o=University of Michigan,c=US for anonymous...
anonymous
Testing ldapwhoami as cn=Manager,o=University of Michigan,c=US for dn:cn=Barbara Jensen,ou=Information Technology DivisioN,OU=People,o=University of Michigan,c=us...
dn:cn=barbara jensen,ou=information technology division,ou=people,o=university of michigan,c=us
Testing ldapwhoami as cn=Manager,o=University of Michigan,c=US for u:ursula...
dn:uid=ursula,cn=simple,cn=auth
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test014-whoami completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test015-xsearch ...
running defines.sh
Running slapadd to build slapd database...
Running slapindex to index slapd database...
Starting slapd on TCP/IP port 9011...
Testing slapd searching...
Waiting 5 seconds for slapd to start...
Testing exact searching...
Testing approximate searching...
Testing OR searching...
Testing AND matching and ends-with searching...
Testing NOT searching...
Testing objectClass/attributeType inheritance ...
Testing extended RFC2254 searching...
Testing values return filter searching...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test015-xsearch completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test016-subref ...
running defines.sh
Running slapadd to build slapd database...
Starting slapd on TCP/IP port 9011...
Testing slapd searching...
Waiting 5 seconds for slapd to start...
Testing ManageDsaIT searching at c=US...
Testing ManageDsaIT searching at referral object...
Testing ManageDsaIT searching below referral object...
Testing base searching at c=US...
Testing one-level searching at c=US...
Testing subtree searching at c=US...
Testing base searching at o=abc,c=US...
Testing one-level searching at o=abc,c=US...
Testing subtree searching at o=abc,c=US...
Testing base searching at uid=xxx,o=abc,c=US...
Testing one-level searching at uid=xxx,o=abc,c=US...
Testing subtree searching at uid=xxx,o=abc,c=US...
Filtering ldapsearch results...
Filtering expected LDIF for comparison...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test016-subref completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test017-syncreplication-refresh ...
running defines.sh
Starting master slapd on TCP/IP port 9011...
Using ldapsearch to check that master slapd is running...
Waiting 5 seconds for slapd to start...
Using ldapadd to create the context prefix entry in the master...
Starting slave slapd on TCP/IP port 9012...
Using ldapsearch to check that slave slapd is running...
Waiting 5 seconds for slapd to start...
Using ldapadd to populate the master directory...
Waiting 15 seconds for syncrepl to receive changes...
Using ldapmodify to modify master directory...
Waiting 15 seconds for syncrepl to receive changes...
Using ldapsearch to read all the entries from the master...
Using ldapsearch to read all the entries from the slave...
Filtering master results...
Filtering slave results...
Comparing retrieved entries from master and slave...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test017-syncreplication-refresh completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test018-syncreplication-persist ...
running defines.sh
Starting master slapd on TCP/IP port 9011...
Using ldapsearch to check that master slapd is running...
Waiting 5 seconds for slapd to start...
Using ldapadd to create the context prefix entry in the master...
Starting slave slapd on TCP/IP port 9014...
Using ldapsearch to check that slave slapd is running...
Waiting 5 seconds for slapd to start...
Using ldapadd to populate the master directory...
Waiting 15 seconds for syncrepl to receive changes...
Using ldapmodify to modify master directory...
Waiting 15 seconds for syncrepl to receive changes...
Using ldapsearch to read all the entries from the master...
Using ldapsearch to read all the entries from the slave...
Filtering master results...
Filtering slave results...
Comparing retrieved entries from master and slave...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test018-syncreplication-persist completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test019-syncreplication-cascade ...
running defines.sh
Starting master slapd on TCP/IP port 9011...
Using ldapsearch to check that master slapd (pid=10389) is running...
Waiting 5 seconds for slapd to start...
Using ldapadd to create the context prefix entry in the master...
Starting R1 slave slapd on TCP/IP port 9012...
Using ldapsearch to check that R1 slave slapd(pid=10397) is running...
Waiting 5 seconds for R1 slapd to start...
Starting R2 slave slapd on TCP/IP port 9013...
Using ldapsearch to check that R2 slave slapd(pid=10403) is running...
Waiting 5 seconds for R2 slave slapd to start...
Starting P1 slave slapd on TCP/IP port 9014...
Using ldapsearch to check that P1 slave slapd(pid=10408) is running...
Waiting 5 seconds for P1 slave slapd to start...
Starting P2 slave slapd on TCP/IP port 9015...
Using ldapsearch to check that P2 slave slapd(pid=10413) is running...
Waiting 5 seconds for P2 slave slapd to start...
Starting P3 slave slapd on TCP/IP port 9016...
Using ldapsearch to check that P3 slave slapd(pid=10418) is running...
Waiting 5 seconds for P3 slave slapd to start...
Using ldapadd to populate the master directory...
Waiting 25 seconds for syncrepl to receive changes...
Using ldapmodify to modify master directory...
Waiting 25 seconds for syncrepl to receive changes...
Using ldapsearch to read all the entries from the master...
Using ldapsearch to read all the entries from the R1 slave...
Using ldapsearch to read all the entries from the R2 slave...
Using ldapsearch to read all the entries from the P1 slave...
Using ldapsearch to read all the entries from the P2 slave...
Using ldapsearch to read all the entries from the P3 slave...
Filtering master ldapsearch results...
Filtering R1 slave ldapsearch results...
Filtering R2 slave ldapsearch results...
Filtering P1 slave ldapsearch results...
Filtering P2 slave ldapsearch results...
Filtering P3 slave ldapsearch results...
Comparing retrieved entries from master and R1 slave...
Comparing retrieved entries from master and R2 slave...
Comparing retrieved entries from master and P1 slave...
Comparing retrieved entries from master and P2 slave...
Comparing retrieved entries from master and P3 slave...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test019-syncreplication-cascade completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test020-proxycache ...
Proxy cache overlay not available, test skipped
>;>;>;>;>; ./scripts/test020-proxycache completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test021-certificate ...
running defines.sh
test disabled, requires --with-tls
>;>;>;>;>; ./scripts/test021-certificate completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

make: Leaving directory `/u3/ldap/ez_openldap/src/openldap-2.2.15/tests'
make: Entering directory `/u3/ldap/ez_openldap/src/openldap-2.2.15/tests'
run configure with --enable-hdb
make: Leaving directory `/u3/ldap/ez_openldap/src/openldap-2.2.15/tests'
make: Entering directory `/u3/ldap/ez_openldap/src/openldap-2.2.15/tests'
Initiating LDAP tests for LDBM...
Running ./scripts/all...
>;>;>;>;>; Executing all LDAP tests for ldbm
>;>;>;>;>; Starting test000-rootdse ...
running defines.sh
Starting slapd on TCP/IP port 9011...
Using ldapsearch to retrieve the root DSE...
Waiting 5 seconds for slapd to start...
Using ldapsearch to retrieve the cn=Monitor...
dn:
objectClass: top
objectClass: OpenLDAProotDSE
structuralObjectClass: OpenLDAProotDSE
namingContexts: o=OpenLDAP Project,l=Internet
monitorContext: cn=Monitor
supportedControl: 2.16.840.1.113730.3.4.18
supportedControl: 2.16.840.1.113730.3.4.2
supportedControl: 1.3.6.1.4.1.4203.1.10.1
supportedControl: 1.2.840.113556.1.4.1413
supportedControl: 1.2.840.113556.1.4.1339
supportedControl: 1.2.840.113556.1.4.319
supportedControl: 1.2.826.0.1.334810.2.3
supportedExtension: 1.3.6.1.4.1.4203.1.11.1
supportedExtension: 1.3.6.1.4.1.4203.1.11.3
supportedFeatures: 1.3.6.1.4.1.4203.1.5.1
supportedFeatures: 1.3.6.1.4.1.4203.1.5.2
supportedFeatures: 1.3.6.1.4.1.4203.1.5.3
supportedFeatures: 1.3.6.1.4.1.4203.1.5.4
supportedFeatures: 1.3.6.1.4.1.4203.1.5.5
supportedLDAPVersion: 3
vendorName: The OpenLDAP Project <http://www.openldap.org/>;
subschemaSubentry: cn=Subschema

dn: cn=Monitor
objectClass: monitorServer
structuralObjectClass: monitorServer
cn: Monitor
description: This subtree contains monitoring/managing objects.
description: This object contains information about this server.
createTimestamp: 20040824074403Z
modifyTimestamp: 20040824074403Z
monitoredInfo: @(#) $OpenLDAP: slapd 2.2.15 (Aug 24 2004 15:32:35) $
subschemaSubentry: cn=Subschema
hasSubordinates: TRUE

>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test000-rootdse completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test001-slapadd ...
running defines.sh
Running slapadd to build slapd database...
Starting slapd on TCP/IP port 9011...
Using ldapsearch to retrieve all the entries...
Waiting 5 seconds for slapd to start...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test001-slapadd completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test002-populate ...
running defines.sh
Starting slapd on TCP/IP port 9011...
Using ldapsearch to check that slapd is running...
Waiting 5 seconds for slapd to start...
Using ldapadd to populate the database...
Using ldapsearch to read all the entries...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test002-populate completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test003-search ...
running defines.sh
Running slapadd to build slapd database...
Running slapindex to index slapd database...
Starting slapd on TCP/IP port 9011...
Testing slapd searching...
Waiting 5 seconds for slapd to start...
Testing exact searching...
Testing approximate searching...
Testing OR searching...
Testing AND matching and ends-with searching...
Testing NOT searching...
Testing objectClass/attributeType inheritance ...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test003-search completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test004-modify ...
running defines.sh
Running slapadd to build slapd database...
Starting slapd on TCP/IP port 9011...
Testing slapd modify operations...
Waiting 5 seconds for slapd to start...
Testing modify, add, and delete...
Using ldapsearch to retrieve all the entries...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test004-modify completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test005-modrdn ...
running defines.sh
Running slapadd to build slapd database...
Starting slapd on TCP/IP port 9011...
Testing slapd modrdn operations...
Waiting 5 seconds for slapd to start...
Testing modrdn(deleteoldrdn=0)...
Testing modrdn(deleteoldrdn=1)...
Using ldapsearch to retrieve entries using new rdn (cn=James A Jones III)...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
Using ldapsearch to retrieve entries using new rdn (cn=James A Jones II)...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
Using ldapsearch to retrieve entries using removed rdn (cn=James A Jones 2)...
Using ldapsearch to retrieve all the entries...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
Testing modrdn(deleteoldrdn=1), modrdn with new rdn already an att val...
Using ldapsearch to retrieve entries using new rdn (cn=James A Jones 1)...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test005-modrdn completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test006-acls ...
running defines.sh
Running slapadd to build slapd database...
Starting slapd on TCP/IP port 9011...
Testing slapd access control...
Waiting 5 seconds for slapd to start...
Using ldapsearch to retrieve all the entries...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test006-acls completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test007-replication ...
running defines.sh
Starting master slapd on TCP/IP port 9011...
Starting slave slapd on TCP/IP port 9012...
Using ldapsearch to check that master slapd is running...
Waiting 5 seconds for slapd to start...
Using ldapsearch to check that slave slapd is running...
Starting slurpd...
Using ldapadd to populate the master directory...
Waiting 15 seconds for slurpd to send changes...
Using ldapmodify to modify master directory...
Waiting 15 seconds for slurpd to send changes...
Using ldapsearch to read all the entries from the master...
Using ldapsearch to read all the entries from the slave...
Filtering master results...
Filtering slave results...
Comparing retrieved entries from master and slave...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test007-replication completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test008-concurrency ...
running defines.sh
Running slapadd to build slapd database...
Waiting 5 seconds for slapadd to build slapd database...
Starting slapd on TCP/IP port 9011...
Using ldapsearch to check that slapd is running...
Waiting 5 seconds for slapd to start...
Using tester for concurrent server access...
Using ldapsearch to retrieve all the entries...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test008-concurrency completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test009-referral ...
running defines.sh
Running slapadd to build slapd database...
Starting master slapd on TCP/IP port 9011...
Starting slave slapd on TCP/IP port 9012...
Testing for master slapd...
Waiting 5 seconds for master slapd to start...
Testing for slave slapd...
Testing exact searching...
Testing approximate searching...
Testing OR searching...
Testing AND matching and ends-with searching...
Testing NOT searching...
Testing objectClass/attributeType inheritance ...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test009-referral completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test010-passwd ...
running defines.sh
Starting slapd on TCP/IP port 9011...
Using ldapsearch to check that slapd is running...
Waiting 5 seconds for slapd to start...
Using ldapadd to populate the database...
Using ldapsearch to verify population ...
Using ldappasswd (PASS 1)  ...
Using ldappasswd (PASS 2)  ...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test010-passwd completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test011-glue-slapadd ...
running defines.sh
Running slapadd to build glued slapd databases...
Starting slapd on TCP/IP port 9011...
Using ldapsearch to retrieve all the entries...
Waiting 5 seconds for slapd to start...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
Testing sizelimit...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test011-glue-slapadd completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test012-glue-populate ...
running defines.sh
Starting slapd on TCP/IP port ...
Using ldapsearch to check that slapd is running...
Waiting 5 seconds for slapd to start...
Using ldapadd to populate the glued database...
Using ldapsearch to read all the entries...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test012-glue-populate completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test013-language ...
running defines.sh
Starting slapd on TCP/IP port 9011...
Using ldapsearch to check that slapd is running...
Waiting 5 seconds for slapd to start...
Using ldapadd to populate the database...
Using ldapsearch to read all the entries...
Using ldapsearch to read name ...
Using ldapsearch to read name language tag ...
Using ldapsearch to read name language range ...
Filtering ldapsearch results...
Filtering language ldif ...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test013-language completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test014-whoami ...
running defines.sh
Starting slapd on TCP/IP port ...
Using ldapsearch to check that slapd is running...
Waiting 5 seconds for slapd to start...
Testing ldapwhoami as anonymous...
anonymous
Testing ldapwhoami as cn=Manager,o=University of Michigan,c=US...
dn:cn=Manager,o=University of Michigan,c=US
Testing ldapwhoami as cn=Manager,o=University of Michigan,c=US for anonymous...
anonymous
Testing ldapwhoami as cn=Manager,o=University of Michigan,c=US for dn:cn=Barbara Jensen,ou=Information Technology DivisioN,OU=People,o=University of Michigan,c=us...
dn:cn=barbara jensen,ou=information technology division,ou=people,o=university of michigan,c=us
Testing ldapwhoami as cn=Manager,o=University of Michigan,c=US for u:ursula...
dn:uid=ursula,cn=simple,cn=auth
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test014-whoami completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test015-xsearch ...
running defines.sh
Running slapadd to build slapd database...
Running slapindex to index slapd database...
Starting slapd on TCP/IP port 9011...
Testing slapd searching...
Waiting 5 seconds for slapd to start...
Testing exact searching...
Testing approximate searching...
Testing OR searching...
Testing AND matching and ends-with searching...
Testing NOT searching...
Testing objectClass/attributeType inheritance ...
Testing extended RFC2254 searching...
Testing values return filter searching...
Filtering ldapsearch results...
Filtering original ldif used to create database...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test015-xsearch completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test016-subref ...
running defines.sh
Running slapadd to build slapd database...
Starting slapd on TCP/IP port 9011...
Testing slapd searching...
Waiting 5 seconds for slapd to start...
Testing ManageDsaIT searching at c=US...
Testing ManageDsaIT searching at referral object...
Testing ManageDsaIT searching below referral object...
Testing base searching at c=US...
Testing one-level searching at c=US...
Testing subtree searching at c=US...
Testing base searching at o=abc,c=US...
Testing one-level searching at o=abc,c=US...
Testing subtree searching at o=abc,c=US...
Testing base searching at uid=xxx,o=abc,c=US...
Testing one-level searching at uid=xxx,o=abc,c=US...
Testing subtree searching at uid=xxx,o=abc,c=US...
Filtering ldapsearch results...
Filtering expected LDIF for comparison...
Comparing filter output...
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test016-subref completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test017-syncreplication-refresh ...
Test does not support ldbm
>;>;>;>;>; ./scripts/test017-syncreplication-refresh completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test018-syncreplication-persist ...
Test does not support ldbm
>;>;>;>;>; ./scripts/test018-syncreplication-persist completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test019-syncreplication-cascade ...
Test does not support ldbm
>;>;>;>;>; ./scripts/test019-syncreplication-cascade completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test020-proxycache ...
Proxy cache overlay not available, test skipped
>;>;>;>;>; ./scripts/test020-proxycache completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

>;>;>;>;>; Starting test021-certificate ...
running defines.sh
test disabled, requires --with-tls
>;>;>;>;>; ./scripts/test021-certificate completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit

make: Leaving directory `/u3/ldap/ez_openldap/src/openldap-2.2.15/tests'
make: Leaving directory `/u3/ldap/ez_openldap/src/openldap-2.2.15/tests'
《解決方案》

LDAP 運行 slapd 的錯誤:

看看你的/u3/ldap/ez_openldap/openldap/var/openldap-data個目錄下面有沒有文件?
另外,你的openldap編譯的時候有什麼參數?
《解決方案》

LDAP 運行 slapd 的錯誤:

bash-2.03# ls -la
total 1032
drwxr-xr-x   2 root     other        512 Aug 24 17:25 .
drwxr-xr-x   5 root     other        512 Aug 24 17:19 ..
-rw-------   1 root     other       8192 Aug 25 13:45 __db.001
-rw-------   1 root     other     270336 Aug 24 17:25 __db.002
-rw-------   1 root     other      98304 Aug 24 17:25 __db.003
-rw-------   1 root     other     409600 Aug 24 17:25 __db.004
-rw-------   1 root     other      24576 Aug 24 17:25 __db.005
-rw-------   1 root     other       8192 Aug 25 13:44 dn2id.bdb
-rw-------   1 root     other      32768 Aug 25 13:44 id2entry.bdb
-rw-------   1 root     other      42655 Aug 25 13:44 log.0000000001
bash-2.03#

問題解決了,原來是 strip 這個東西的問題。謝謝 py 的熱心和回復。
在正常安裝和啟動后我現在又碰到問題了,請教一下:
我見前面大蝦的帖子說:
ldapadd -x -D 'cn=root,dc=it,dc=com' -W
Add entries to a SLAPD database
執行后提示說不知道 -x 和 -W 選項。
我man 了一下幫助:
/u3/ldap/openldap/sbin/slapadd [-v] [-c] [-u] [-p] [-r] [-w]
     [-d  level]  [-b  suffix]  [-n dbnum] [-i rid1,rid2,...] [-f
     slapd.conf] [-l ldif-file]

確實是沒有,而我的英文比較的"爛"拿著個金山詞霸逐個逐個很努力的在翻譯了,但是太生硬很多都理解不了,我裝完了不會用啊!那位大蝦能說說怎麼用這個slapadd 加入口,加完了數據存到哪裡去了,大概什麼樣子能說一下嗎?如果提的問題涉及面太寬一句兩句說不清楚能不能推薦一些中文的關於LDAP的文檔或者告訴我在網上哪裡能讀到ldap的好的文章什麼的,URL、下載什麼都行,我可以自己慢慢看。等稍微有點概念了再讀英文的可能會好點。企盼中....................
《解決方案》

LDAP 運行 slapd 的錯誤:

openldap在solaris下就是沒有-x,你用-w 然後寫上密碼就可以了
《解決方案》

LDAP 運行 slapd 的錯誤:

那怎麼錄數據啊?那些數據都照什麼格式錄啊?
看這個:
# ldapadd -x -D 'cn=root,dc=it,dc=com' -W -x表示用簡單驗證,-D表示指定目錄,-W表示彈出密碼輸入提示
dn: uid=qq,dc=it,dc=com
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
uid: qq
cn: qq
sn: qq
telephoneNumber: 138888888
description: openldap test
telexNumber: tex-8888888
street: my street
postOfficeBox: postofficebox
displayName: qqdisplay
homePhone: home1111111
mobile: mobile99999
mail:qq@qq.com
輸入完所有信息后,按Ctrl+d結束存檔。

我都不明白是怎麼個錄入規則?搞不懂???????
《解決方案》

LDAP 運行 slapd 的錯誤:

ldapadd -D "cn=root,dc=it,dc=com" -w pass -f filename.ldif
《解決方案》

LDAP 運行 slapd 的錯誤:

我沒說明白我的意思。是這樣的。
請看下面的說明:
Use your favorite editor and create an LDIF file that contains:
dn: dc=test,dc=com
objectclass: dcObject
objectclass: organization
o: my first ldif test
dc: test

dn: cn=Manager,dc=test,dc=com
objectclass: organizationalRole
cn: Manager


我知道怎麼建立 ldif file 並且知道如何用sldapadd去執行這個文件。我所不明白的是: ldif 文件的格式和錄入的項(也就是什麼 dn: o:這些東西)是怎麼定義的,規則是什麼。然後我錄入完了我也知道用
ldapsearch -b 'dc=test,dc=com' '(objectclass=*)' 去查詢。但是我就是不明白 這些
dn:
objectclass:
o:
dc:
cn:
都是個什麼意思?後面要錄入些什麼值,代表什麼意思?
打個比方說: 我有一個人,那如果有name一項我就知道該填人的名字就對了不管中文名還是英文名字。 然後有一個性別項就知道填男的或者女的就對了,填別的就不對了。我不知道我說明白了沒有。大蝦能理解我在說什麼嗎?

另外數據錄入了錄到哪裡去了,目錄沒見有顯示啊?哪裡有顯示?

還有第二個問題:我怎麼沒見有關於怎麼查詢bdb數據的帖子呢?想oracle有sqlplus。postgre有psql。 bdb沒有可以查詢數據有什麼內容的命令嗎?

我可能優點混亂!非常感謝你的回復。謝謝!
《解決方案》

LDAP 運行 slapd 的錯誤:

怎麼打開bdb資料庫?然後可以用sql查詢資料庫里的內容?

裝完 openldap後有一個 sbin 目錄是server端管理工具吧! bin下的都是不帶s的估計是客戶端工具了,客戶端在什麼時候用啊?要錄入entries 只能用 s開頭的命令吧?
《解決方案》

LDAP 運行 slapd 的錯誤:

原帖由 "sun.betty" 發表:
我沒說明白我的意思。是這樣的。
請看下面的說明:
Use your favorite editor and create an LDIF file that contains:
dn: dc=test,dc=com
objectclass: dcObject
objectclass: organization
o: my first ldif..........
1。去看文檔吧
2。bdb沒有,不過可以用perl讀

[火星人 ] LDAP 運行 slapd 的錯誤:已經有607次圍觀

http://coctec.com/docs/service/show-post-45158.html