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

Starting from the begining



I first tried to get openldap	which comes with SuSE Linux 7.1. This version
is the latest one and in the description is says 2.0.7-6. Without really
understanding how it worked, I went in with guns blazing and edited
ldap.conf as well as slapd.conf. Of course I am running this server locally
so when I was trying to add an entry it reported can't connect to LDAP
server.

I realised that this was down to the ldap.conf ( I assume this is used when
LDAP is running over the net) and so I removed those lines out (rem (#)). I
then was able to add an entry (very basic one) and even though it didn't
contain any email details, MS Outlook did manage to find the person I had
added.


further more I then asked on this mailing list regarding adding the mail
attribute, which was down to the lack of certain schemas in the slapd.conf
file. Annoyingly once I did this it seemed that Outlook didn't want to find
the LDAP server anymore.

I have then decided to remove the version that came with SuSE and attempt
the version off the website. This errored on the ./configure and the only
mention of this error was regarding Redhat and a bug in glibc.

So I have re-installed the version from SuSEs CD only to find now that I am
having trouble adding entries!.


So this time I really need help! below are the conf files and the file
containing the entry I am trying to add. This is the first entry that I am
trying to add.


ldap.conf :

# $OpenLDAP: pkg/ldap/libraries/libldap/ldap.conf,v 1.4.8.6 2000/09/05
17:54:38 kurt Exp $
#
# LDAP Defaults
#

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

#BASE   dc=example, dc=com
#URI    ldap://ldap.example.com ldap://ldap-master.example.com:666

#SIZELIMIT      12
#TIMELIMIT      15
#DEREF          never

slapd.conf :

# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.4 2000/08/26 17:06:18
kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /etc/openldap/schema/core.schema
include         /etc/openldap/schema/cosine.schema
include         /etc/openldap/schema/inetorgperson.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         /var/run/slapd.pid
argsfile        /var/run/slapd.args

# Load dynamic backend modules:
# modulepath    /usr/lib/openldap/openldap
# moduleload    back_ldap.la
# moduleload    back_ldbm.la
# moduleload    back_passwd.la
# moduleload    back_shell.la

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

database        ldbm
suffix          "dc=localserver, dc=com"
#suffix         "o=My Organization Name, c=US"
rootdn          "cn=Manager, dc=localserver, dc=com"
#rootdn         "cn=Manager, o=My Organization Name, c=US"
# 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 accessable by the slapd/tools. Mode 700 recommended.
directory       /var/lib/ldap
# Indices to maintain
index   objectClass     eq


LDIF file I am trying to add in called /tmp/newentry:

dn: cn=Mark Jones, dc=localserver, dc=com
objectClass: person
cn: Mark Jones
sn: Jones

How I run ldapadd and the error it gives:

ldapadd -x -D "cn=Manager, dc=localserver, dc=com" -w secret -f
/tmp/newentry
adding new entry "cn=Mark Jones, dc=localserver, dc=com"
ldap_add: no such object

ldif_record() = 32




Sorry for the long message but I hope that all of this information helps.
Currently I am pulling my hair out!

Regards

Tim