[Date Prev][Date Next] [Chronological] [Thread] [Top]

Problems with using openldap



Hi there ...

Installation went well without any problems ... but then I tried to add an
entry as stated in the openldap faq:

ews3:/tmp # cat 1.ldif
dn: dc=everyware, dc=ch
  dc: everyware
  o: My Company
  objectclass: organization
  objectclass: dcObject

  dn: cn=Manager, dc=everyware, dc=ch
  cn: Manager
  sn: Manager
  objectclass: person

then I did an:

ews3:/tmp # ldapadd -D "cn=Manager, dc=everyware, dc=ch" -W < 1.ldif
Enter LDAP Password:
ldap_bind: No such object


can someone help me? I mean, I'm not a newbie on Linux and so on (I'm admin
at an ISP for some time now) but this ldap thing drives me crazy ...
someone maybe has a working config and example ldif file which I can adapt?

--
Mit freundlichen Grüssen
Eggenberger Marc
EveryWare Ltd.
Bellerivestr. 7
8008 Zürich
Tel: +41 1 385 5900
Fax: +41 1 385 5910
eMail: me@everyware.ch
Web: http://www.everyware.ch





my ldap.conf:
ews3:/etc/openldap # cat ldap.conf
#
# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable.

#BASE   dc=OpenLDAP, dc=Org
#HOST   ldap.openldap.org

BASE    dc=everyware, dc=ch
HOST    ews3.everyware.ch

#HOST   ldap.openldap.org ldap-master.openldap.org:666
PORT    389

#SIZELIMIT      12
#TIMELIMIT      15
#DEREF          never

my sldap.conf:
ews3:/etc/openldap # cat slapd.conf
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /etc/openldap/slapd.at.conf
include         /etc/openldap/slapd.oc.conf
schemacheck     off
referral        ldap://ldap.itd.umich.edu

pidfile         /var/slapd.pid
argsfile        /var/slapd.args

#######################################################################
# ldbm database definitions
#######################################################################

database        ldbm
suffix          "dc=everyware, dc=ch"
#suffix         "o=Your Organization Name, c=US"
directory       /usr/tmp
rootdn          "cn=root, dc=everyware, dc=ch"
#rootdn         "cn=root, o=Your Organization Name, c=US"
rootpw          *secret*
# cleartext passwords, especially for the rootdn, should
# be avoid.  See slapd.conf(5) for details.