[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldapadd/ldapmodify problem
Hi all ,
I have just installed OpenLdap. I had a Netscape Ldap Server earlier. I
want to port it to OpenLdap. I have an LDIF file for the entries in the
Netscape server.
When I try to add the entries to OpenLdap I get an error. This is what I
did:
-------------------------------------------
[root@xanadu tools]# ldapadd -D "cn=directory manager"
-W < ~vineet/office.ldif
Enter LDAP Password:xxxxxxx
ldap_bind: Invalid credentials
---------------------------------------------
My slapd.conf file is:
---------------------------------------------
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
include /usr/local/etc/openldap/slapd.at.conf
include /usr/local/etc/openldap/slapd.oc.conf
schemacheck off
#referral ldap://ldap.itd.umich.edu
pidfile /usr/local/var/slapd.pid
argsfile /usr/local/var/slapd.args
#######################################################################
# ldbm database definitions
#######################################################################
database ldbm
suffix "o=office.pspl.co.in"
directory /usr/tmp
rootdn "cn=directory manager, o=office.pspl.co.in"
rootpw xxxxxxxxxxx
# cleartext passwords, especially for the rootdn, should
# be avoid. See slapd.conf(5) for details.
----------------------------------------------------------
I typed the same password that was in 'rootpw' in slapd.conf.
Part of my LDIF file is as below:
--------------------------------------------------------
# This file was generated by gq 0.2.2 (http://biot.com/gq/)
# run by vineet Fri Aug 20 14:28:47 1999
# subtree search on o=office.pspl.co.in
# server: wimbledon.intranet.pspl.co.in:389
# binddn: cn=directory manager
version: 1
dn: o=office.pspl.co.in
objectclass: top
objectclass: organization
o: office.pspl.co.in
creatorsname: cn=directory manager
createtimestamp: 19990713122939Z
aci: (target="ldap:///o=office.pspl.co.in")(targetattr="*")(version 3.0;
a
cl "unknown"; allow (all) userdn = "ldap:///anyone"; )
modifiersname: cn=directory manager
modifytimestamp: 19990713123012Z
dn: officecompanydomain=pspl_pune, o=office.pspl.co.in
objectclass: infocompany
objectclass: preferencesCompany
officecompanydomain: pspl_pune
officecompanyid: c-pspl_pune
officecompanyname: Persistent Systems Private Limited
officecompanyoffice: o-pspl_pune-coffeeroom
officestreetaddress: Panini, 2A Senapati Bapat Road
officelocation: Near Chatushringi Temple
officecity: Pune
officestate: Maharashtra
officecountry: India
officepostalcode: 411 016
officephone: +91 (20) 567 6700
officefax: +91 (20) 567 6701
officemobile: 91 (20) 567 67 00
officepager: 1-800-PAGER
officewebpageurl: www.pspl.co.in
officecompanysize: 120
-----------------------------------------------------------
Could anyone tell me what the problem is?
I had another doubt: How do I tell the OpenLDAP server about my own
schema(i.e. the must and may fields in the object classes)?
Thanks in advance,
Vineet.