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

RE: problems with slapadd



Hi !
 
   You are setting a value to the "owner" attribute which does not follow the syntax defined for it
in the "core.schema":
 
attributetype (2.5.4.32 NAME 'owner'
           DESC 'RFC2256: owner (of the object)'
           SUP distingishedName )
 
   It must follow the format of a DN (identifying the "owner" of that entry).
-----Original Message-----
From: Charlie Pauch [mailto:perlldap@wrkcs.net]
Sent: martes, 02 de diciembre de 2003 15:16
To: openldap-software@OpenLDAP.org
Subject: problems with slapadd

 
----- Original Message -----
Sent: Friday, November 28, 2003 2:19 PM
Subject: problems with slapadd

Hi.  I am trying to migrate from ldap v2 to v3.  The new strictures of schema checking and DN rules are kind of a rude awakening, but I'm trying to deal.  Long story short, I have my old db in ldif form, trying to add it with slapadd, and here's what happens:
 
slapadd startup: initiated.
backend_startup: starting "dc=wrkcs,dc=net"
=> ldbm_cache_open( "/usr/local/var/openldap-data/id2entry.gdbm", 18, 600 )
<= ldbm_cache_open (opened 0)
=> str2entry
>>> dnPrettyNormal: <dc=wrkcs, dc=net>
<<< dnPrettyNormal: <dc=wrkcs,dc=net>, <dc=wrkcs,dc=net>
<= str2entry(dc=wrkcs,dc=net) -> 0x81101a8
(dry) added: "dc=wrkcs,dc=net"
=> str2entry
>>> dnPrettyNormal: <cn=Manager, dc=wrkcs, dc=net>
<<< dnPrettyNormal: <cn=Manager,dc=wrkcs,dc=net>, <cn=manager,dc=wrkcs,dc=net>
<= str2entry(cn=Manager,dc=wrkcs,dc=net) -> 0x81101a8
(dry) added: "cn=Manager,dc=wrkcs,dc=net"
=> str2entry
>>> dnPrettyNormal: <uid=cpauch, dc=wrkcs, dc=net>
<<< dnPrettyNormal: <uid=cpauch,dc=wrkcs,dc=net>, <uid=cpauch,dc=wrkcs,dc=net>
>>> dnPretty: <Charlie Pauch>
str2entry: invalid value for syntax 1.3.6.1.4.1.1466.115.121.1.12
slapadd: could not parse entry (line=29)
slapadd shutdown: initiated
ldbm backend syncing
ldbm flushing db (/usr/local/var/openldap-data/id2entry.gdbm)
ldbm closing db (/usr/local/var/openldap-data/id2entry.gdbm)
ldbm backend done syncing
====> cache_release_all
slapadd shutdown: freeing system resources.
 
here is the ldif:
dn: dc=wrkcs, dc=net
dc: wrkcs
o: WRKCSnet
objectclass: organization
objectclass: dcObject
 
dn: cn=Manager, dc=wrkcs, dc=net
cn: Manager
sn: Manager
objectclass: person
 
dn: uid=cpauch, dc=wrkcs, dc=net
objectclass: person
objectclass: inetLocalMailRecipient
objectclass: posixAccount
uid: cpauch
gidnumber: 100
homedirectory: /home/cpauch
loginshell: /bin/bash
uidnumber: 501
mailroutingaddress: cpauch@wrkcs.net
spambounce: yes
dialupaccess: true
owner: Charlie Pauch
sn: Pauch
userpassword: xxxxxxx
cn: Charlie Pauch
maillocaladdress: charlie.pauch@wrkcs.net
 
as you can see, it add's the first two, then wont' add the user.  I've been going nuts over this for days.   What is wrong with my entry?  Where am I going wrong?  Any help would be appreciated
 
Charlie Pauch
WRK System Administrator