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

Database Creation Problem



I am trying to get OpenLDAP to work with my sendmail so that I can use
it for my sendmail alias configuration.  Unfortunatly after days of
trying I have been unsuccessful.  

I have installed OpenLDAP and have Sendmail configured to use it.  

My problem though is in the creation of the database.  I keep running
into errors adding users to the database.  
When I created the db I used make tset and everything came back ok.  

Here is my slapd.conf file
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.6 2001/04/20
23:32:43 kur
t Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/cosine.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         /usr/local/var/slapd.pid
argsfile        /usr/local/var/slapd.args

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

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

database        ldbm
suffix          "dc=digitalplace,dc=org"
#suffix         "o=DigitalPlace Name,c=US"
rootdn          "cn=Manager,dc=digitalplace,dc=org"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw          *****
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd/tools. Mode 700 recommended.
directory       /usr/local/var/openldap-ldbm
# Indices to maintain
index   cn,sn,uid pres,eq,sub
index   objectClass     pres,eq
#ldbm access control definitions
defaultaccess read
access to attr=userpassword
  by self write
  by dn="cn=Manager, o=DigitalPlace, c=US" write
  by * compare

The following is the dlif file that I have created that I want to use:

[root@mini mail]# more new.ldif
dn: uid=michael, dc=digitalplace, dc=org
objectclass: inetLocalMailRecipient
cn: Michael
sn: Weber
uid: rdrunner
mailLocalAddress: rdrunner@digitalplace.org
mailRoutingAddress: rdrunner@digitalplace.org
uid: rdrunner

This is the error message that I get when trying to add to the database:

[root@mini openldap]# /usr/local/bin/ldapadd -x -D
"cn=Manager,dc=digitalplace,d
c=org" -W -f /etc/mail/new.ldif
Enter LDAP Password:
adding new entry "uid=michael, dc=digitalplace, dc=org"
ldap_add: Undefined attribute type
        additional info: mailLocalAddress: L1

ldif_record() = 17

Thank you in advance for any help that you can provide.

Michael Weber