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

RE: ldapadd update

Title: RE: ldapadd update

i dont mean to flood the list, and i sincerely apologize if i'm causing any kind of inconvinience for anybody, but this is freaking me out. i can individualy add those entries through an ldif file, but i can't add them all at once using just one file. kurt, maybe you could help me out?

$cat tmp.ldif
dn: ou=Roles, o=adirdev.com
objectclass: top
objectclass: organizationalUnit
ou: Roles

$ldapmodify -a -r -v -f tmp.ldif -D "cn=root,o=adirdev.com"
Bind Password:
add objectclass:
add ou:
adding new entry ou=Roles, o=adirdev.com
modify complete

$cat my.ldif

dn: cn=ARMAusers, ou=Roles, o=adirdev.com
cn: ARMA Administrators
objectclass: top
objectclass: groupofuniquenames
ou: Roles
uniquemember: uid=fbar, ou=People, o=adirdev.com

## Entry for ARMAVision Users ##
dn: ou=People, o=adirdev.com
objectclass: top
objectclass: organizationalUnit
ou: People

dn: uid=fbar, ou=ARMAusers, o=adirdev.com
cn: Foo Bar
sn: Bar
givenname: Foo
objectclass: top
objectclass: person
ou: ARMAusers
uid: fbar
mail: fbar@acme.com
userpassword: encoded

$ldapmodify -a -r -v -f my.ldif -D "cn=root,o=adirdev.com"
Bind Password:
ldapmodify: invalid format (line 2 of entry: cn=ARMAadmins, ou=Roles, o=adirdev.com)

NOTICE line 2 is NOT what its complaining about but actually is
dn: cn=ARMAadmins, ou=Roles, o=adirdev.com
and i know for sure i'm feeding it the same file. is that a bug?

i'm using ldap 2.0.11 with solaris

-----Original Message-----
From: Ankur Shah
Sent: Friday, July 27, 2001 12:40 PM
To: 'openldap-software@OpenLDAP.org'
Subject: RE: ldapadd

i figured out what the problem was. Apparently, i can't have 2 'o's (organizations) in my schema(?) Although, i dont quite understand why one should be restricted to defining just one 'o'. Anyway, i changed the base dn in slapd.conf and i'm working w/the o (o=adirtech.com) that i wanted to keep in the first place. now there's just one mystery, though. when i try to add more entries to the schema from the ldif file that i created, ldapadd/ldapmodify chokes on it, giving the following error:

#ldapmodify -a -r -v -f ARMAvision.ldif -D "cn=root,o=adirtech.com"
Bind Password:
ldapmodify: missing value on line 3 (attr is objectclass: top)

could anybody comment on whats wrong w/that. I read the RFC on LDIF and searched for the solution but couldn't find one.

thanks in advance
-- A

P.S. I still dont know why/when a server throws the "Resource currently unvailable" error. any help would be greatly appreciated.