免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5145 | 回复: 10
打印 上一主题 下一主题

[ldap] LDAP 运行 slapd 的错误: [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-08-24 12:34 |只看该作者 |倒序浏览
关于配置碰到的问题:
运行 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

在线等待!!!!!急!!!!!!!-

论坛徽章:
0
2 [报告]
发表于 2004-08-24 16:26 |只看该作者

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( 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[1]: Entering directory `/u3/ldap/ez_openldap/src/openldap-2.2.15/tests'
make[2]: 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=1040 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=1041 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[2]: Leaving directory `/u3/ldap/ez_openldap/src/openldap-2.2.15/tests'
make[2]: Entering directory `/u3/ldap/ez_openldap/src/openldap-2.2.15/tests'
run configure with --enable-hdb
make[2]: Leaving directory `/u3/ldap/ez_openldap/src/openldap-2.2.15/tests'
make[2]: 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[2]: Leaving directory `/u3/ldap/ez_openldap/src/openldap-2.2.15/tests'
make[1]: Leaving directory `/u3/ldap/ez_openldap/src/openldap-2.2.15/tests'

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
3 [报告]
发表于 2004-08-24 20:15 |只看该作者

LDAP 运行 slapd 的错误:

看看你的/u3/ldap/ez_openldap/openldap/var/openldap-data个目录下面有没有文件?
另外,你的openldap编译的时候有什么参数?

论坛徽章:
0
4 [报告]
发表于 2004-08-25 14:22 |只看该作者

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、下载什么都行,我可以自己慢慢看。等稍微有点概念了再读英文的可能会好点。企盼中....................

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
5 [报告]
发表于 2004-08-25 14:39 |只看该作者

LDAP 运行 slapd 的错误:

openldap在solaris下就是没有-x,你用-w 然后写上密码就可以了

论坛徽章:
0
6 [报告]
发表于 2004-08-25 16:25 |只看该作者

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结束存盘。

我都不明白是怎么个录入规则?搞不懂???????

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
7 [报告]
发表于 2004-08-25 16:41 |只看该作者

LDAP 运行 slapd 的错误:

ldapadd -D "cn=root,dc=it,dc=com" -w pass -f filename.ldif

论坛徽章:
0
8 [报告]
发表于 2004-08-25 17:28 |只看该作者

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没有可以查询数据有什么内容的命令吗?

我可能优点混乱!非常感谢你的回复。谢谢!

论坛徽章:
0
9 [报告]
发表于 2004-08-25 17:37 |只看该作者

LDAP 运行 slapd 的错误:

怎么打开bdb数据库?然后可以用sql查询数据库里的内容?

装完 openldap后有一个 sbin 目录是server端管理工具吧! bin下的都是不带s的估计是客户端工具了,客户端在什么时候用啊?要录入entries 只能用 s开头的命令吧?

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
10 [报告]
发表于 2004-08-25 21:25 |只看该作者

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读
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP