[prev in list] [next in list] [prev in thread] [next in thread] 

List:       forgerock-opendj
Subject:    Re: [Opendj] make-ldif usage
From:       Nicolas Capponi <nicolas.capponi () forgerock ! com>
Date:       2014-10-06 13:23:15
Message-ID: CAK0RTW2YznA7ZwsAhVrc4eafbgCL6Rv3TLk9R7sryKaPgt53gw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/related)]

[Attachment #4 (multipart/alternative)]


Hello,

  You must use empty lines to separate entries in your template, not line
beginning with '#' (which indicates a comment).
  Replace all '#' lines by empty lines and it should work. I succeeded to
generate a LDIF file with your template after replacing the '#' lines.

Regards,
Nicolas

On Mon, Oct 6, 2014 at 1:19 PM, Cuvelier, Thibaut <thibaut.cuvelier@atos.net
> wrote:

>  Hello,
>
>
>
> I have just used the template given in the draft documentation (url that
> you give) and it's not working.
>
>
>
> Here is the template code:
>
>
>
> define suffix=dc=example,dc=com
>
> define maildomain=example.com
>
> define numusers=50
>
> define numorgs=10
>
> #
>
> branch: [suffix]
>
> objectClass: top
>
> objectClass: domain
>
> #
>
> branch: ou=People,[suffix]
>
> objectClass: top
>
> objectClass: organizationalUnit
>
> subordinateTemplate: orgunit:[numorgs]
>
> description: This is the People container
>
> telephoneNumber: +33 00010002
>
> #
>
> template: orgunit
>
> subordinateTemplate: person:[numusers]
>
> rdnAttr: ou
>
> ou: Org-<sequential:0>
>
> objectClass: top
>
> objectClass: organizationalUnit
>
> description: This is the {ou} organizational unit
>
> #
>
> template: person
>
> rdnAttr: uid
>
> objectClass: top
>
> objectClass: person
>
> objectClass: organizationalPerson
>
> objectClass: inetOrgPerson
>
> givenName: <first>
>
> sn: <last>
>
> cn: {givenName} {sn}
>
> initials: {givenName:1}<random:chars:ABCDEFGHIJKLMNOPQRSTUVWXYZ:1>{sn:1}
>
> employeeNumber: <sequential:0>
>
> uid: user.{employeeNumber}
>
> mail: {uid}@[maildomain]
>
> userPassword: password
>
> telephoneNumber: <random:telephone>
>
> homePhone: <random:telephone>
>
> pager: <random:telephone>
>
> mobile: <random:telephone>
>
> street: <random:numeric:5> <file:streets> Street
>
> l: <file:cities>
>
> st: <file:states>
>
> postalCode: <random:numeric:5>
>
> postalAddress: {cn}${street}${l}, {st}  {postalCode}
>
> description: This is the description for {cn}.
>
>
>
> Here is the command and the error:
>
> C:\apps\opendj-ldap-toolkit-3.0.0-SNAPSHOT\bat>makeldif.bat -o
> ./generated.ldif -r ../config ../config/test.template
>
> An error occurred while parsing template file:  Tag First referenced on
> line
>
> 30 of the template file is not allowed for use in branch definitions
>
>
>
> If you see there is objectClass in the template the problem in on the <
> first > tag
>
>
>
> Kind regards, Cordialement, Met vriendelijke groeten,
>
> *[image: Description: cid:629331314@05092011-0C14]*
>
> *Thibaut Cuvelier*
>
> M: +32 (0) 498 905 470
>
>
>
> *From:* opendj-bounces@forgerock.org [mailto:opendj-bounces@forgerock.org]
> *On Behalf Of *Mark Craig
> *Sent:* Monday, October 06, 2014 1:10 PM
> *To:* OpenDJ discussion list
> *Subject:* Re: [Opendj] make-ldif usage
>
>
>
> Hello,
>
>
>
> The makeldif command in the SDK is not quite the same as the make-ldif
> command delivered with the server.
>
>
>
> If you are using a nightly build of the SDK, see the draft documentation
> at http://opendj.forgerock.org/doc/dev-guide/index.html#makeldif-1 and,
> more importantly,
> http://opendj.forgerock.org/doc/dev-guide/index.html#makeldif-template-5
>
>
>
> One of the recent changes is that branch definitions now need objectClass
> attributes.
>
>
>
> Hope this helps.
>
>
>
> Regards,
>
> Mark
>
>
>
> On 06 Oct 2014, at 12:06, Cuvelier, Thibaut <thibaut.cuvelier@atos.net>
> wrote:
>
>
>
>   Dear,
>
>
>
> I have downloaded opendj-ldap-toolkit-3.0.0-20141003.022503-628 and tried
> to execute make-ldif script as I have to create a test data to test our
> access management.
>
>
>
> I downloaded the file, unzipped it and created a config directory where I
> have put a first.names & last.names file.
>
> Finally I took a copy of the make-ldif template from the following page:
> http://opendj.forgerock.org/opendj-server/doc/webhelp/admin-guide/make-ldif-template-5.html
>  (here attached).
>
> 1.       Running it under cmd-prompt (windows) in the bat directory:
> makeldif.bat -o ./generated.ldif -r ../config ../config/test.template
>
> Get the error:
>
> An error occurred while parsing template file:  Unexpected template line "
> " encountered on line 4 of the template file
>
>
>
> 2.       I corrected it by putting ‘#' in front of the empty line
>
>
>
> 3.       Run it again and got:
>
> An error occurred while parsing template file:  Tag First referenced on
> line 26 of the template file is not allowed for use in branch definitions.
>
>
>
> Is it possible to receive a correct template or to explain me what is the
> problem?
>
>
>
>
>
> Kind regards, Cordialement, Met vriendelijke groeten,
>
> Thibaut Cuvelier
>
>
>
> This e-mail and the documents attached are confidential and intended
> solely for the addressee; it may also be privileged. If you receive this
> e-mail in error, please notify the sender immediately and destroy it. As
> its integrity cannot be secured on the Internet, Atos' liability cannot be
> triggered for the message content. Although the sender endeavours to
> maintain a computer virus-free network, the sender does not warrant that
> this transmission is virus-free and will not be liable for any damages
> resulting from any virus transmitted. On all offers and agreements under
> which Atos Belgium N.V./S.A. supplies goods and/or services of whatever
> nature, the General Terms and Conditions from Atos Belgium N.V./S.A .
> exclusively apply. The General Terms and Conditions shall be promptly
> submitted to you on your request.
>
> Atos Belgium N.V/S.A
> Da Vincilaan 5
> B-1930 Zaventem
> RPR-RPM Brussels
> BTW/TVA: BE 0401 848 135
>
> <test.template>_______________________________________________
> OpenDJ mailing list
> OpenDJ@forgerock.org
> https://lists.forgerock.org/mailman/listinfo/opendj
>
>
>  This e-mail and the documents attached are confidential and intended
> solely for the addressee; it may also be privileged. If you receive this
> e-mail in error, please notify the sender immediately and destroy it. As
> its integrity cannot be secured on the Internet, Atos' liability cannot be
> triggered for the message content. Although the sender endeavours to
> maintain a computer virus-free network, the sender does not warrant that
> this transmission is virus-free and will not be liable for any damages
> resulting from any virus transmitted. On all offers and agreements under
> which Atos Belgium N.V./S.A. supplies goods and/or services of whatever
> nature, the General Terms and Conditions from Atos Belgium N.V./S.A .
> exclusively apply. The General Terms and Conditions shall be promptly
> submitted to you on your request.
>
> Atos Belgium N.V/S.A
> Da Vincilaan 5
> B-1930 Zaventem
> RPR-RPM Brussels
> BTW/TVA: BE 0401 848 135
>
> _______________________________________________
> OpenDJ mailing list
> OpenDJ@forgerock.org
> https://lists.forgerock.org/mailman/listinfo/opendj
>
>

[Attachment #7 (text/html)]

<div dir="ltr">Hello,<div><br></div><div>   You must use empty lines to separate \
entries in your template, not line beginning with &#39;#&#39; (which indicates a \
comment).</div><div>   Replace all &#39;#&#39; lines by empty lines and it should \
work. I succeeded to generate a LDIF file with your template after replacing the \
&#39;#&#39; lines.</div><div><br></div><div>Regards,</div><div>Nicolas</div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 6, 2014 at 1:19 PM, \
Cuvelier, Thibaut <span dir="ltr">&lt;<a href="mailto:thibaut.cuvelier@atos.net" \
target="_blank">thibaut.cuvelier@atos.net</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hello,<u></u><u></u></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> \
<u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I \
have just used the template given in the draft documentation (url that you give) and \
it's not working.<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> \
<u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Here \
is the template code:<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> \
<u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">define \
suffix=dc=example,dc=com<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">define \
maildomain=<a href="http://example.com" \
target="_blank">example.com</a><u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">define \
numusers=50<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">define \
numorgs=10<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">#<u></u><u></u></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">branch: \
[suffix]<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">objectClass: \
top<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">objectClass: \
domain<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">#
 <u></u><u></u></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">branch: \
ou=People,[suffix]<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">objectClass: \
top<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">objectClass: \
organizationalUnit<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">subordinateTemplate: \
orgunit:[numorgs]<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">description: \
This is the People container<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">telephoneNumber: \
+33 00010002<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">#
 <u></u><u></u></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">template: \
orgunit<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">subordinateTemplate: \
person:[numusers]<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">rdnAttr: \
ou<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">ou: \
Org-&lt;sequential:0&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">objectClass: \
top<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">objectClass: \
organizationalUnit<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">description: \
This is the {ou} organizational unit<u></u><u></u></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">#
 <u></u><u></u></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">template: \
person<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">rdnAttr: \
uid<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">objectClass: \
top<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">objectClass: \
person<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">objectClass: \
organizationalPerson<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">objectClass: \
inetOrgPerson<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">givenName: \
&lt;first&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">sn: \
&lt;last&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">cn: \
{givenName} {sn}<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">initials: \
{givenName:1}&lt;random:chars:ABCDEFGHIJKLMNOPQRSTUVWXYZ:1&gt;{sn:1}<u></u><u></u></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">employeeNumber: \
&lt;sequential:0&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">uid: \
user.{employeeNumber}<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">mail: \
{uid}@[maildomain]<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">userPassword: \
password<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">telephoneNumber: \
&lt;random:telephone&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">homePhone: \
&lt;random:telephone&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">pager: \
&lt;random:telephone&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">mobile: \
&lt;random:telephone&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">street: \
&lt;random:numeric:5&gt; &lt;file:streets&gt; Street<u></u><u></u></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">l: \
&lt;file:cities&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">st: \
&lt;file:states&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">postalCode: \
&lt;random:numeric:5&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">postalAddress: \
{cn}${street}${l}, {st}   {postalCode}<u></u><u></u></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">description: \
This is the description for {cn}.<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> \
<u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Here \
is the command and the error:<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">C:\apps\opendj-ldap-toolkit-3.0.0-SNAPSHOT\bat&gt;makeldif.bat \
-o ./generated.ldif -r ../config \
../config/test.template<u></u><u></u></span></p><span class=""> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">An \
error occurred while parsing template file:   Tag First referenced on \
line<u></u><u></u></span></p> </span><p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">30 \
of the template file is not allowed for use in branch \
definitions<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> \
<u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">If \
you see there is objectClass in the template the problem in on the &lt; first &gt; \
tag<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> \
<u></u></span></p> <div><span class="">
<p class="MsoNormal"><span lang="NL-BE" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Kind \
regards, Cordialement, Met vriendelijke groeten,<u></u><u></u></span></p> </span><p \
class="MsoNormal"><b><span \
style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1f497d"><img \
width="128" height="3" src="cid:image001.gif@01CFE168.1A6CA590" alt="Description: \
cid:629331314@05092011-0C14"></span></b><b><span lang="NL-BE" \
style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u><u></u></span></b></p>
 <p class="MsoNormal"><b><span lang="ES-TRAD" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thibaut \
Cuvelier</span></b><b><span lang="ES-TRAD" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u><u></u></span></b></p>
 <p class="MsoNormal"><span lang="ES-TRAD" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">M: \
+32 (0) 498 905 470<u></u><u></u></span></p> </div>
<p class="MsoNormal"><u></u>  <u></u></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a \
href="mailto:opendj-bounces@forgerock.org" \
target="_blank">opendj-bounces@forgerock.org</a> [mailto:<a \
href="mailto:opendj-bounces@forgerock.org" \
target="_blank">opendj-bounces@forgerock.org</a>] <b>On Behalf Of </b>Mark Craig<br>
<b>Sent:</b> Monday, October 06, 2014 1:10 PM<br>
<b>To:</b> OpenDJ discussion list<br>
<b>Subject:</b> Re: [Opendj] make-ldif usage<u></u><u></u></span></p>
</div>
</div><span class="">
<p class="MsoNormal"><u></u>  <u></u></p>
<p class="MsoNormal">Hello,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u>  <u></u></p>
</div>
<div>
<p class="MsoNormal">The makeldif command in the SDK is not quite the same as the \
make-ldif command delivered with the server.<u></u><u></u></p> </div>
<div>
<p class="MsoNormal"><u></u>  <u></u></p>
</div>
<div>
<p class="MsoNormal">If you are using a nightly build of the SDK, see the draft \
documentation at  <a \
href="http://opendj.forgerock.org/doc/dev-guide/index.html#makeldif-1" \
target="_blank">http://opendj.forgerock.org/doc/dev-guide/index.html#makeldif-1</a> \
and, more importantly,  <a \
href="http://opendj.forgerock.org/doc/dev-guide/index.html#makeldif-template-5" \
target="_blank">http://opendj.forgerock.org/doc/dev-guide/index.html#makeldif-template-5</a><u></u><u></u></p>
 </div>
<div>
<p class="MsoNormal"><u></u>  <u></u></p>
</div>
<div>
<p class="MsoNormal">One of the recent changes is that branch definitions now need \
objectClass attributes.<u></u><u></u></p> </div>
<div>
<p class="MsoNormal"><u></u>  <u></u></p>
</div>
<div>
<p class="MsoNormal">Hope this helps.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u>  <u></u></p>
</div>
<div>
<p class="MsoNormal">Regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Mark<u></u><u></u></p>
</div>
</span><div>
<p class="MsoNormal"><u></u>  <u></u></p>
<div><span class="">
<div>
<p class="MsoNormal">On 06 Oct 2014, at 12:06, Cuvelier, Thibaut &lt;<a \
href="mailto:thibaut.cuvelier@atos.net" \
target="_blank">thibaut.cuvelier@atos.net</a>&gt; wrote:<u></u><u></u></p> </div>
<p class="MsoNormal"><br>
<br>
<u></u><u></u></p>
</span><div><span class="">
<div>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Dear,<u></u><u></u></span></p>
 </div>
<div>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">  \
<u></u><u></u></span></p> </div>
<div>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">I \
have downloaded opendj-ldap-toolkit-3.0.0-20141003.022503-628 and tried to execute \
make-ldif script as I have to create a test data to test our access \
management.<u></u><u></u></span></p> </div>
<div>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">  \
<u></u><u></u></span></p> </div>
<div>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">I \
downloaded the file, unzipped it and created a config directory where I have put a \
first.names &amp; last.names file.<u></u><u></u></span></p> </div>
<div>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Finally \
I took a copy of the make-ldif template from the following page:<span>  </span><a \
href="http://opendj.forgerock.org/opendj-server/doc/webhelp/admin-guide/make-ldif-template-5.html" \
target="_blank">http://opendj.forgerock.org/opendj-server/doc/webhelp/admin-guide/make-ldif-template-5.html</a><span> \
</span>(here  attached).<u></u><u></u></span></p>
</div>
</span><p class="MsoNormal" style="margin-left:0cm">
<u></u><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><span>1.<span \
style="font:7.0pt &quot;Times New Roman&quot;">             \
</span></span></span><u></u><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Running \
it under cmd-prompt (windows) in the bat directory: makeldif.bat -o ./generated.ldif \
-r ../config ../config/test.template<u></u><u></u></span></p><span class=""> <div>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Get \
the error:<u></u><u></u></span></p> </div>
<div>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">An \
error occurred while parsing template file:   Unexpected template line &quot; &quot; \
encountered on line 4 of the template file<u></u><u></u></span></p> </div>
<div>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">  \
<u></u><u></u></span></p> </div>
</span><p class="MsoNormal" style="margin-left:0cm">
<u></u><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><span>2.<span \
style="font:7.0pt &quot;Times New Roman&quot;">             \
</span></span></span><u></u><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">I \
corrected it by putting ‘#' in front of the empty line<u></u><u></u></span></p> \
<div> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">  \
<u></u><u></u></span></p> </div>
<p class="MsoNormal" style="margin-left:0cm">
<u></u><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><span>3.<span \
style="font:7.0pt &quot;Times New Roman&quot;">             \
</span></span></span><u></u><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Run \
it again and got:<u></u><u></u></span></p><span class=""> <div>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">An \
error occurred while parsing template file:   Tag First referenced on line 26 of the \
template file is not allowed for use in branch definitions.<u></u><u></u></span></p> \
</div> <div>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">  \
<u></u><u></u></span></p> </div>
<div>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Is it \
possible to receive a correct template or to explain me what is the \
problem?<u></u><u></u></span></p> </div>
<div>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">  \
<u></u><u></u></span></p> </div>
<div>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">  \
<u></u><u></u></span></p> </div>
<div>
<p class="MsoNormal"><span \
style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Kind \
regards, Cordialement, Met vriendelijke groeten,</span><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><u></u><u></u></span></p>
 </div>
<div>
<p class="MsoNormal"><span \
style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Thibaut \
Cuvelier</span><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><u></u><u></u></span></p>
 </div>
<div>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">  \
<u></u><u></u></span></p> </div>
<div>
<p class="MsoNormal">This e-mail and the documents attached are confidential and \
intended solely for the addressee; it may also be privileged. If you receive this \
e-mail in error, please notify the sender immediately and destroy it. As its \
integrity cannot  be secured on the Internet, Atos' liability cannot be triggered for \
the message content. Although the sender endeavours to maintain a computer virus-free \
network, the sender does not warrant that this transmission is virus-free and will \
not be liable for any  damages resulting from any virus transmitted. On all offers \
and agreements under which Atos Belgium N.V./S.A. supplies goods and/or services of \
whatever nature, the General Terms and Conditions from Atos Belgium N.V./S.A . \
exclusively apply. The General Terms  and Conditions shall be promptly submitted to \
you on your request.<br> <br>
Atos Belgium N.V/S.A<span>  </span><br>
Da Vincilaan 5<span>  </span><br>
B-1930 Zaventem<br>
RPR-RPM Brussels<br>
BTW/TVA: BE 0401 848 135<span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><u></u><u></u></span></p>
 </div>
<p class="MsoNormal"><span \
style="font-size:9.0pt;font-family:&quot;Helvetica&quot;,&quot;sans-serif&quot;">&lt;test.template&gt;_______________________________________________<br>
 OpenDJ mailing list<br>
<a href="mailto:OpenDJ@forgerock.org" target="_blank">OpenDJ@forgerock.org</a><br>
<a href="https://lists.forgerock.org/mailman/listinfo/opendj" \
target="_blank">https://lists.forgerock.org/mailman/listinfo/opendj</a><u></u><u></u></span></p>
 </span></div>
</div>
<p class="MsoNormal"><u></u>  <u></u></p>
</div>
</div><span class="">
This e-mail and the documents attached are confidential and intended solely for the \
addressee; it may also be privileged. If you receive this e-mail in error, please \
notify the sender immediately and destroy it. As its integrity cannot be secured on \
the Internet,  Atos' liability cannot be triggered for the message content. Although \
the sender endeavours to maintain a computer virus-free network, the sender does not \
warrant that this transmission is virus-free and will not be liable for any damages \
resulting from any  virus transmitted. On all offers and agreements under which Atos \
Belgium N.V./S.A. supplies goods and/or services of whatever nature, the General \
Terms and Conditions from Atos Belgium N.V./S.A . exclusively apply. The General \
Terms and Conditions shall be  promptly submitted to you on your request.<br>
<br>
Atos Belgium N.V/S.A <br>
Da Vincilaan 5 <br>
B-1930 Zaventem<br>
RPR-RPM Brussels<br>
BTW/TVA: BE 0401 848 135
</span></div>

<br>_______________________________________________<br>
OpenDJ mailing list<br>
<a href="mailto:OpenDJ@forgerock.org">OpenDJ@forgerock.org</a><br>
<a href="https://lists.forgerock.org/mailman/listinfo/opendj" \
target="_blank">https://lists.forgerock.org/mailman/listinfo/opendj</a><br> \
<br></blockquote></div><br></div>

--90e6ba6152be37a50d0504c0fc71--


["image001.gif" (image/gif)]

_______________________________________________
OpenDJ mailing list
OpenDJ@forgerock.org
https://lists.forgerock.org/mailman/listinfo/opendj


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic