From: GG on
Hello Vladimir and NG,

I added samba.schema and removed the "" and it imported ldif without
saying anything about groups now :-)

There are some warnings I am attaching.

It moans about
str2entry: invalid value for attributeType objectClass #3 (syntax
1.3.6.1.4.1.1466.115.121.1.38)
slapadd: could not parse entry (line=11937)
and if I look at the ldif I find this
dn: uid=someuid,dc=Filiali,dc=People,dc=domain,dc=it

and other error
slapadd: could not parse entry (line=11116)
<= str2entry: str2ad(mailHost): attribute type undefined
this is the line in ldfi...

dn: uid=otheruid,dc=Esterni,dc=People,dc=domain,dc=it
cn: otheruid

But the line is always the dn:
uid=someuid,dc=SomeSubDc,dc=People,dc=domain,dc=it

but reading mailHost: I have a line in many accounts with maildir and
mail host etc that I don't need any more; shall I remove lines
containing mail attributes? (mytextools.com is great but I suppose
there must be some regular expression too)

I did a slapcat from destination server and it imported groups but no
actual users.

I removed mail alternate attibutes (not mail: as it used for creating
alias from ldap into mail server) anyway the error seems to be in the
DN. it needs a dn but it gives this error
str2entry: invalid value for attributeType objectClass #3 (syntax
1.3.6.1.4.1.1466.115.121.1.38)
slapadd: could not parse entry (line=1)

importing a single user from a partial ldif..


Giorgio

On 4/8/10, Vladimir Psenicka <vladimir.psenicka(a)prodeco.cz> wrote:
> 1. comments to slapd.conf:
>
> if slapd.conf.destination is on your new server, then you are missing
> samba schema in your slapd.conf.destination.
>
> slapd.conf on new server:
> ....
> include         /etc/ldap/schema/samba.schema
> ....
>
> Get samba.schema from your current samba instalation on new server. It
> should be in somewhere in: /usr/share/doc/samba-doc/examples/LDAP/
>
> 2. comments on error importing ldif:
>
> slapadd-ing.LOG:
>
> slapadd: dn="dc=People,dc=GG-s-Domain,dc=it" (line=26): (64) value of
> naming attribute 'dc' is not present in entry
>
> which is in gg-edited.ldif:
>
> dn: dc=People,dc=GG-s-Domain,dc=it
> objectClass: dcObject
> objectClass: organizationalUnit
> ou: "People"
> dc: "People"
> structuralObjectClass: organizationalUnit
> entryUUID: 067e823e-5845-1027-9dc5-fa88d05ed16f
> creatorsName: cn=Manager,dc=GG-s-Domain,dc=it
> createTimestamp: 20030801082225Z
> entryCSN: 2003080108:22:25Z#0x0001#0#0000
> modifiersName: cn=Manager,dc=GG-s-Domain,dc=it
> modifyTimestamp: 20030801082225Z
>
> Can you try delete quotes in ou: "People" and dc: "People" and try to
> import ldif again? Or you can try delete objectClass: dcObject and dc:
> "People". In our ldap we haven't objectClass: dcObject in dn:
> ou=Users,dc=pavouk,dc=cz
>
> my ldif:
>
> dn: ou=Users,dc=pavouk,dc=cz
> objectClass: organizationalUnit
> ou: Users
> structuralObjectClass: organizationalUnit
> entryUUID: 00014016-c3a2-1029-9d4e-9147cb3e97d5
> creatorsName: cn=Manager,dc=pavouk,dc=cz
> createTimestamp: 20050927125727Z
> entryCSN: 20050927125727.000000Z#000001#000#000000
> modifiersName: cn=Manager,dc=pavouk,dc=cz
> modifyTimestamp: 20050927125727Z
>
>
>
>
> Dne 7.4.2010 16:14, GG napsal(a):
> > Hello Vladimir and anyone else reading :-) !
> >
> > Attaching these files:
> >
> > - gg-edited.ldif
> > - slapd.conf.destination.txt
> > - slapd.conf.source.txt
> > - ldap.conf.destination.txt
> > - ldap.conf.source.txt
> > - slapadd-ing.LOG this was the log while importing ldif
> >
> >
> > NET SID ETC
> > net setlocalsid S-1-5-21-1168...........-..................-................2
> > net setdomainsid S-1-5-21-1168...........-..................-................1
> >
> > does net setlocal and domain sid have sense or should it be
> > net setdomainsid
> > twice with different sids?
> >
> > Thanks very much!
> >
> > Giorgio
> >
[truncated]