[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: My First DIT Entry
Many thanks for the helps! I am still too slow to create my first DIT entry. I am
using the current openldap-stable.tar.gz.
Thank you!
------the log-----
linux:/usr/local/etc/ldap# cat slapd.conf
include /usr/local/etc/ldap/slapd.at.conf
include /usr/local/etc/ldap/slapd.oc.conf
schemacheck off
database ldbm
suffix "o=Sinyih,c=TW"
directory /usr/dict/ldap
rootdn "cn=cn-liu,ou=IT,o=Sinyih,c=TW"
rootpw password
cachesize 100
dbcachesize 10000
index default none
access to * by dn=".*, .*, o=Sinyih, c=TW" search
linux:/usr/local/etc/ldap# cat test.entry
o=Sinyih,c=TW
ou=IT,o=Sinyih,c=TW
dn: cn=CN Liu, ou=IT, o=Sinyih, c=TW
objectClass: person
cn: CN Liu
sn: Liu
linux:/usr/local/etc/ldap# ldapadd -f test.entry -D "cn=cn-liu,ou=IT,o=Sinyih,c=TW"
-w password -b "o=Sinyih,c=TW"
usage: ldapadd [-abcknrvF] [-d debug-level] [-h ldaphost] [-p ldapport] [-D bin]
linux:/usr/local/etc/ldap# ldapadd -f test.entry -D "cn=cn-liu,ou=IT,o=Sinyih,c
=TW" -w password
ldapadd: missing value on line 4 (attr is objectClass: person)
linux:/usr/local/etc/ldap#cat slapd.oc.conf
..
objectclass person
requires
objectClass,
sn,
cn
allows
description,
seeAlso,
telephoneNumber,
userPassword,
title,
mail,
uid
..
linux:/usr/local/etc/ldap#man ldapadd
...
-b Assume that any values that start with a `/' are
binary values and that the actual value is in a
file whose path is specified in the place where
values normally appear.
...
-D binddn
Use binddn to bind to the X.500 directory. binddn
should be a string-represented DN as defined in RFC
1779.