On 7/13/07, Markus Pohle <markus.pohle@webunity.de> wrote:
Hi Alex,

pitty I need to switch to 1.5.1 - when will 1.5.1 officially be
released?

In a few weeks perhaps don't know for sure just use the snapshot for now is what
I recommend..

Any plans to integrate some more fixes than in the
1.5.1-snapshot you built for me?

Yes probably.

If not, I can stay with the snapshot.
If yes, I will wait till the official 1.5.1 release and migrate then.


One last thing... import command of apacheds-tools
The structure of the dump looks like these...

Yes this is an LDIF but use the (I think) -q switch or somethign to make the banner go away.

Alex


        _                     _          ____  ____    _____           _

       / \   _ __   __ _  ___| |__   ___|  _ \/ ___|  |_   _|__   ___ |
|___
      / _ \ | '_ \ / _` |/ __| '_ \ / _ \ | | \___ \    | |/ _ \ / _ \|
/ __|
     / ___ \| |_) | (_| | (__| | | |  __/ |_| |___) |   | | (_) | (_) |
\__ \
    /_/   \_\ .__/ \__,_|\___|_| |_|\___|____/|____/    |_|\___/
\___/|_|___/
            |_|





# ========================================================================
# ApacheDS Tools Version: null
# Partition Directory:
c:\Programme\apacheds-1.5.1-SNAPSHOT\var\partitions\DouglasHolding
# ========================================================================



#---------------------
# Entry: 2
#---------------------

dn: dc=VERWALTUNG,dc=DOUGLASHOLDING
dc: VERWALTUNG
objectclass: domain
objectclass: top
0.9.2342.19200300.100.1.25: verwaltung


#---------------------
# Entry: 3
#---------------------

dn: cn=users,dc=VERWALTUNG,dc=DOUGLASHOLDING
cn: users
2.5.4.3: users
objectclass: organizationalRole
objectclass: top


#---------------------
# Entry: 4
#---------------------

dn: uid=i.sampleuser,cn=users,dc=VERWALTUNG,dc=DOUGLASHOLDING
uid: i.sampleuser
mail: i.sampleuser@douglas.de
userpassword:: dmlw
sn: Sampleuser
cn: Sampleuser, Inna
givenname: Inna
preferredlanguage: de_DE
objectclass: organizationalPerson
objectclass: person
objectclass: inetOrgPerson
objectclass: top


#---------------------
# Entry: 5
#---------------------

dn: uid=m.arrows,cn=users,dc=VERWALTUNG,dc=DOUGLASHOLDING
uid: m.arrows
mail: m.arrows@douglas.de
userpassword:: dmlw
sn: Arrows
cn: Arrows, Martina
givenname: Martina
preferredlanguage: de_DE
objectclass: organizationalPerson
objectclass: person
objectclass: inetOrgPerson
objectclass: top



The command I execute is the following:
java -jar apacheds-tools.jar import -e -f douglasholding.ldif

The result is the following:
        _                     _          ____  ____    _____           _
       / \   _ __   __ _  ___| |__   ___|  _ \/ ___|  |_   _|__   ___ | |___
      / _ \ | '_ \ / _` |/ __| '_ \ / _ \ | | \___ \    | |/ _ \ / _ \|
/ __|
     / ___ \| |_) | (_| | (__| | | |  __/ |_| |___) |   | | (_) | (_) |
\__ \
    /_/   \_\ .__/ \__,_|\___|_| |_|\___|____/|____/    |_|\___/
\___/|_|___/
            |_|

log4j:WARN No appenders could be found for logger
(org.apache.directory.shared.ldap.codec.bind.SimpleAuthentication).
log4j:WARN Please initialize the log4j system properly.
Done!
0 users changed in 0 seconds


If I try the same thru LDAP Studio 0.8.0 with ldif import on the same
file I do get error message for entry 18:

#---------------------
# Entry: 18
#---------------------

#!RESULT ERROR
#!CONNECTION ldap://junior.douglas-informatik.de:10389
#!DATE 2007-07-13T18:11:55.265
#!ERROR [LDAP: error code 21 - failed to add entry
uid=00630014,cn=users,dc=VERWALTUNG,dc=DOUGLASHOLDING: Attribute value
'00630014, Saarbr?' for attribute 'cn' is syntactically incorrect]
dn: uid=00630014,cn=users,dc=VERWALTUNG,dc=DOUGLASHOLDING
uid: 00630014
mail: 00630014@douglas.de
userpassword:: RG91ZzIwMDY=
sn: 00630014
cn:: MDA2MzAwMTQsIFNhYXJicvxja2Vu
givenname:: U2FhcmJy/GNrZW4=
preferredlanguage: de_DE
objectclass: organizationalPerson
objectclass: person
objectclass: inetOrgPerson
objectclass: top

the correct cn for this is: cn=00630014, Saarbrcken


Seems there are two more problems:

1. import command of apacheds-tools do not work correct?
2. dump command of apacheds-tools do not export "Umlaute" ( )
correctly?

Can this be?


TIA
Markus



Alex Karasulu schrieb:
> Hi Markus,
>
> On 7/13/07, Markus Pohle <apacheds.users@webunity.de > wrote:
>>
>> Hi Alex,
>>
>> thx for building the trunk - I was able to download, install, run as
>> service. Also tested the apacheds-tools and they worked for dump.
>
>
> Great!
>
> But still two questions:
>>
>> - what file format does the import command require? ldif? or can I use
>> the file written thru dump command to use with import command?
>
>
> I think it should be an LDIF like the one generated through the dump
> command.
>
> - now that I have the built snapshot release, can I go and copy the two
>> files apacheds-tools.jar and
>> apacheds-schema-registries-1.5.1-SNAPSHOT.jar over my installed
>> apacheds-1.5.0 version and use this instead? will that work?
>
>
> It should not due to changes in the configuration files and the manifest of
> the tools jar.
>
> You might though be able to just install ads 1.5.1-SNAPSHOT then move the
> partition
> over from 1.5.0 to the 1.5.1-SNAPSHOT into the respective position.  See if
> this works.
> I think that's your best shot.
>
> Or do I
>> need to install this snapshot version on my windows 2003 server to make
>> the apacheds-tools work properly?
>
>
> Yes install the SNAPSHOT version.  Also you might be able to use the
> apacheds-tools
> in the 1.5.1-SNAPSHOT to dump what is inside 1.5.0 partitions.  Give that a
> try too.
>
> Alex
>

--

WEBUNITY - Internet, Consulting, Neue Medien
Markus Pohle (SCJP)

GPG Public Key Block available at:
http://www.webunity.de/markus.pohle@webunity.de.txt