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

Re: Newbie question



That got rid of the error, but gives me the following error:

bash-2.05b# /usr/local/bin/ldapadd -f /tmp/group.ldif -D "cn=Manager, o=test, dc=net" -w secret
adding new entry "cn=wheel,ou=Group,o=test,dc=net"
ldapadd: update failed: cn=wheel,ou=Group,o=test,dc=net
ldap_add: No such object (32)


Thank you


On Tuesday, July 1, 2003, at 03:49 PM, Yossef Korang-Beheshti wrote:

Try including the nis schema in slapd.conf
Should be at /usr/local/etc/openldap/schema/nis.schema

----- Original Message -----
From: "Monah Baki" <mbaki@whywire.net>
To: <openldaP-software@OpenLDAP.org>
Sent: Tuesday, July 01, 2003 3:31 PM
Subject: Newbie question


Hello,

I'm trying to setup a openldap server (openldap-2.1.21) on freebsd 4.8
to have users authenticate to it.
Installing sleepycat, openldap and pam went without any problems.

I'm trying to migrate and add the /etc/passwd /etc/group to an ldif
file usinf migrationtool from padl.com.

When I try to run:
/usr/local/bin/ldapadd -f /tmp/group.ldif -D "cn=Manager, o=test,
dc=net" -w secret

I get the error:
adding new entry "cn=wheel,ou=Group,o=test,dc=net"
ldapadd: update failed: cn=wheel,ou=Group,o=test,dc=net
ldap_add: Undefined attribute type (17)
         additional info: gidNumber: attribute type undefined

My /tmp/group.ldif

bash-2.05b# cat /tmp/group.ldif
dn: cn=wheel,ou=Group,o=whywire,dc=net
objectClass: posixGroup
objectClass: top
cn: wheel
userPassword: {crypt}*
gidNumber: 0
memberUid: root




My slapd.conf is:

# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.23.2.8 2003/05/24
23:19:14 kurt 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
include         /usr/local/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         /usr/local/var/slapd.pid
argsfile        /usr/local/var/slapd.args

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

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


database        bdb
suffix          "o=test,dc=net"
rootdn          "cn=Manager,o=test,dc=net"

rootpw          secret
directory       /usr/local/var/openldap-data

index   objectClass     eq



Thank you