<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 01/30/2013 01:21 AM, Carsten Grzemba wrote:
<blockquote cite="mid:ff0c8d5c43fa.5108e613@contac-dt.de"
type="cite"><br>
<br>
<span>Am 29.01.13 schrieb <b class="name">Rich Megginson </b>
<a class="moz-txt-link-rfc2396E" href="mailto:rmeggins@redhat.com"><rmeggins@redhat.com></a>:</span>
<blockquote cite="mid:5107FBE7.60101@redhat.com" class="iwcQuote"
style="border-left: 1px solid #00F; padding-left: 13px;
margin-left: 0;" type="cite">
<div class="mimepart text html"><span>
<p>
<meta content="text/html; charset=UTF-8"
http-equiv="Content-Type">
<table>
<tbody>
<tr>
<td text="#000000" bgcolor="#FFFFFF">
<p> On 01/29/2013 09:39 AM, Carsten Grzemba wrote:
</p>
<blockquote
cite="mid:fefce0c17cb5.5108093b@contac-dt.de"
type="cite">The problem is that the scripts use
a env variable USER which is commonly not set in
Solaris (there is LOGNAME common). It try to
work arround this by setting this in:<br>
<br>
/etc/opt/csw/default/dirsrv<br>
<br>
<br>
So I guess if USER not set will the perl
function (DSutil.pm)<br>
<br>
sub getLogin {<br>
return (getpwuid($>))[0] || $ENV{USER} ||
confess "Error: could not determine the current
user ID: $!";<br>
}<br>
</blockquote>
<br>
Looks like we have two bugs here:<br>
1) getpwuid does not return the expected value<br>
2) should look for $ENV{LOGNAME} on Solaris in
addition to USER<br>
<br>
Do we have tickets for these issues?</td>
</tr>
</tbody>
</table>
</p>
</span></div>
</blockquote>
So far I know: No. <br>
At least the error message should be fixed.<br>
For the LOGNAME vs. USER environment problem I do not know a
simple solution:<br>
Should we really evaluate both?<br>
</blockquote>
<br>
I see another error on this line - should be $ENV{"USER"}<br>
<br>
We could do a conditional build for Solaris e.g. something like
this:<br>
$userEnvVar = "USER";<br>
if (@solaris@) { $userEnvVar = "LOGNAME"; }<br>
...<br>
<span> sub getLogin {<br>
return (getpwuid($>))[0] || $ENV{$userEnvVar} || confess
"Error: could not determine the current user ID: $!";</span><br>
<br>
<blockquote cite="mid:ff0c8d5c43fa.5108e613@contac-dt.de"
type="cite"><br>
Carsten<br>
<span>
<table>
<tbody>
<tr>
<td bgcolor="#FFFFFF"><br>
</td>
</tr>
</tbody>
</table>
</span>
<blockquote cite="mid:5107FBE7.60101@redhat.com" class="iwcQuote"
style="border-left: 1px solid #00F; padding-left: 13px;
margin-left: 0;" type="cite">
<div class="mimepart text html"><span>
<p>
<table>
<tbody>
<tr>
<td text="#000000" bgcolor="#FFFFFF"><br>
<br>
<blockquote
cite="mid:fefce0c17cb5.5108093b@contac-dt.de"
type="cite"><br>
not work and than the function (DSCreate.pm)<br>
<br>
sub get_initconfigdir {<br>
# determine initconfig_dir<br>
if (getLogin eq 'root') {<br>
return "/etc/opt/csw/default";<br>
} else {<br>
return "$ENV{HOME}/.dirsrv";<br>
}<br>
}<br>
also not return the correct value. I will fix
this tomorrow.<br>
<br>
~Carsten<br>
<br>
<span>Am 29.01.13 schrieb <a
moz-do-not-send="true"
href="mailto:Jovan.VUKOTIC@sungard.com:">Jovan.VUKOTIC@sungard.com:</a></span>
<blockquote cite="mid:
<31712051F6CB4B489954AC38B582F40D4AD2E4C4@emea-tc2-mb02.internal.sungard.corp"
class="iwcQuote" style="border-left: 1px solid
#00F; padding-left: 13px; margin-left: 0;"
type="cite">
<div class="mimepart multipart related"><span
xmlns="http://www.w3.org/TR/REC-html40"
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:w="urn:schemas-microsoft-com:office:word">
<p>
<meta content="text/html; charset=UTF-8"
http-equiv="Content-Type">
<meta content="Microsoft Word 14
(filtered medium)" name="Generator">
<!--[if !mso]&gt;&lt;style&gt;v\:* {behavior:url();}
o\:* {behavior:url();}
w\:* {behavior:url();}
.shape {behavior:url();}
&lt;/style&gt;&lt;![endif]-->
<style>&lt;!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--&gt;</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<table>
<tbody>
<tr>
<td link="blue" vlink="purple"
lang="EN-US">
<p> </p>
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I
have attempted to
install1.2.10.7 version of
the server:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">%
pkgutil -c CSW389-ds-base<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">package
installed
catalog<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">CSW389-ds-base
1.2.10.7,REV=2012.05.02
SAME<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">On
Solaris, configuration
directory for opencsw
packages are at <o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">/etc/opt/csw<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">In
particular, for DS, all
instances are at<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">/etc/opt/csw/dirsrv/<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">The
strange thing is that for
the given instance, the
setup script did create <o:p></o:p></span></p>
<p class="MsoNormal"
style="text-indent:.5in"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">/etc/opt/csw/dirsrv/slapd-instance-name
<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">directory
even after the failure I
described,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">as
well as all the
directories under <o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">/var/opt/csw/lib<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">/var/opt/csw/lock<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">/var/opt/csw/log<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I
really do not know why it
is looking in root’s home
for dirsrv-instance-name<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks,<br>
Jovan <o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a moz-do-not-send="true"
href="mailto:389-users-bounces@lists.fedoraproject.org">389-users-bounces@lists.fedoraproject.org</a>
[<a moz-do-not-send="true"
href="mailto:389-users-bounces@lists.fedoraproject.org">mailto:389-users-bounces@lists.fedoraproject.org</a>]
<b>On Behalf Of </b>Carsten
Grzemba<br>
<b>Sent:</b> Tuesday,
January 29, 2013 5:06 PM<br>
<b>To:</b> General
discussion list for the
389 Directory server
project.<br>
<b>Subject:</b> Re:
[389-users]
setup-ds-admin.pl failure<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi, <br>
<br>
I see you use my packages
from <a
moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="http://www.opencsw.org" target="1">www.opencsw.org</a>. Which
package version you have
installed?<br>
Please sent the output of:<br>
# pkgutil -c CSW389-ds-base<br>
<br>
~Carsten<br>
<br>
Am 29.01.13 schrieb <a
moz-do-not-send="true"
href="mailto:Jovan.VUKOTIC@sungard.com:">Jovan.VUKOTIC@sungard.com:</a><o:p></o:p></p>
<div>
<table
class="MsoNormalTable"
border="0" cellpadding="0">
<tbody>
<tr>
<td
style="padding:.75pt
.75pt .75pt .75pt">
<div>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi,<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">It is not the
first instance
of 389DS I have
attempted to
install on
Solaris, but the
first one that
failed and the
reason is<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-indent:.5in">Could
not open the
script template
file
'//.dirsrv/dirsrv-<i>instance_name</i><o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I was running
the script as
root, but have
never read or
heard of any
template file
required. The
only template
files I have
seen so far were
at<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">/opt/csw/share/dirsrv/script-templates.<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I have also
turned on
debugging with
(–dd ) to try to
pick up more
information, but
have not found
anything that
could help me
out (krian-inst
is an
instance_name of
389DS instance):<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Entry cn=rfc
2829 u
syntax,cn=mapping,cn=sasl,cn=config
is added<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">+Entry cn=uid
mapping,cn=mapping,cn=sasl,cn=config
is added<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">+Processing
/opt/csw/share/dirsrv/data/template-pampta.ldif
...<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">+Entry cn=PAM
Pass Through
Auth,cn=plugins,cn=config
is added<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">+Processing
/opt/csw/share/dirsrv/data/template-bitwise.ldif
...<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">+Entry
cn=Bitwise
Plugin,cn=plugins,cn=config
is added<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">+Processing
/opt/csw/share/dirsrv/data/template-dnaplugin.ldif
...<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">+Entry
cn=Distributed
Numeric
Assignment
Plugin,cn=plugins,cn=config
is added<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">+Processing
/opt/csw/share/dirsrv/updates/50replication-plugins.ldif
...<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">+Entry
cn=Legacy
Replication
Plugin,cn=plugins,cn=config
is added<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">+Entry
cn=Multimaster
Replication
Plugin,cn=plugins,cn=config
is added<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">+changeOwnerMode:
changed mode of
/etc/opt/csw/dirsrv/slapd-krian-inst/dse.ldif
to 660<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">+changeOwnerMode:
changed
ownership of
/etc/opt/csw/dirsrv/slapd-krian-inst/dse.ldif
to user 60001
group 60001<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">+changeOwnerMode:
changed mode of
/etc/opt/csw/dirsrv/slapd-krian-inst/dse_original.ldif
to 440<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">+changeOwnerMode:
changed
ownership of
/etc/opt/csw/dirsrv/slapd-krian-inst/dse_original.ldif
to user 60001
group 60001<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">+changeOwnerMode:
changed mode of
/etc/opt/csw/dirsrv/slapd-krian-inst/certmap.conf
to 440<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">+changeOwnerMode:
changed
ownership of
/etc/opt/csw/dirsrv/slapd-krian-inst/certmap.conf
to user 60001
group 60001<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">+changeOwnerMode:
changed mode of
/etc/opt/csw/dirsrv/slapd-krian-inst/slapd-collations.conf
to 440<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">+changeOwnerMode:
changed
ownership of
/etc/opt/csw/dirsrv/slapd-krian-inst/slapd-collations.conf
to user 60001
group 60001<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Could not
open the script
template file
'//.dirsrv/dirsrv-krian-inst'.
Error: No such
file or
directory<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Error: Could
not create
directory server
instance
'krian-inst'.<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Exiting . . .<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Log file is
'/tmp/setupdlCUbY.log<o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><b><span
style="font-size:9.0pt;color:#1F497D;mso-fareast-language:EN-GB"
lang="EN-GB">Jovan
Vukotić</span></b><span
style="font-size:9.0pt;color:#1F497D;mso-fareast-language:EN-GB"
lang="EN-GB"> • Senior
Software
Engineer •
Ambit Treasury
Management •
SunGard •
Banking •
Bulevar
Milutina
Milankovića
136b,
Belgrade,
Serbia • tel:
+381.11.6555-66-1
• <a
moz-do-not-send="true"
href="mailto:jovan.vukotic@sungard.com">jovan.vukotic@sungard.com</a></span><o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a
href="http://www.capitalize-on-change.com/?email=70150000000Y1Et"
moz-do-not-send="true" target="1"><span style="border:solid windowtext
1.0pt;padding:0in;text-decoration:none"><img alt="Image removed by
sender.
Description:
Description:
Description:
Description:
Description:
coc-signature-03-2012"
id="Picture_x0020_3" moz-do-not-send="true"
src="https://webmail.contac.lan/iwc/svc/wmap/attach/image001.jpg?token=7lEkobp3k9&mbox=INBOX&uid=2324&number=5&type=image&subtype=jpeg&process=html%2Cjs%2Clink%2Ctarget%2Cbinhex"
border="0"
height="54"
width="289"></span></a><o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span
style="font-size:9.0pt;color:#595959;mso-fareast-language:EN-GB"
lang="EN-GB">Join
the online
conversation
with SunGard’s
customers,
partners and
Industry
experts and
find an event
near you at: </span></b><span
style="color:#1F497D"><a
href="http://www.capitalize-on-change.com/?email=70150000000Y1Et"
moz-do-not-send="true" target="1"><b><span
style="font-size:9.0pt;mso-fareast-language:EN-GB"
lang="EN-GB">www.sungard.com/ten</span></b></a></span><b><span
style="font-size:9.0pt;color:#1F497D;mso-fareast-language:EN-GB"
lang="EN-GB">.
</span></b><o:p></o:p></p>
<p
class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</p>
</span></div>
</blockquote>
</blockquote>
<br>
</td>
</tr>
</tbody>
</table>
</p>
</span></div>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
389 users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a>
<a class="moz-txt-link-freetext" href="https://admin.fedoraproject.org/mailman/listinfo/389-users">https://admin.fedoraproject.org/mailman/listinfo/389-users</a></pre>
</blockquote>
<br>
</body>
</html>