Done
https://fedorahosted.org/389/ticket/578
Bye,
luca
----- Original Message -----
From: "Mark Reynolds" <mareynol(a)redhat.com>
To: "General discussion list for the 389 Directory server project."
<389-users(a)lists.fedoraproject.org>
Cc: "Luca Menegus" <luca.menegus(a)dbmsrl.com>
Sent: Monday, February 11, 2013 1:24:51 AM
Subject: Re: [389-users] Can't create DSInstances as user (uid !=0) with
389-ds-base-1.3.0.2-1.fc18.x86_64 on FC18
Hi Luca,
If you don't have an account, then I can create the ticket for
you.
Thanks for the contribution!
Mark
On 02/10/2013 11:30 AM, Luca Menegus wrote:
> Hi all,
> I need to run some integration test against 389 DS on our CI-system but
> when
> I introduced a new F18 CI-slave creation of new ds instances with
> setup-ds.pl started to fail.
> Problem seems to be that setup-ds.pl tries to update systemd releted conf
> even when run as a user.
> Simply skipping systemd stuff when user is not root fixes the
problem:
> in /usr/lib64/dirsrv/perl/DSCreate.pm update sub updateSystemD to include a
> uid check
> [...]
> sub updateSystemD {
> my $inf = shift;
> my $unitdir = "/usr/lib/systemd/system";
> my $confbasedir = "/etc/systemd/system";
> my $confdir = "$confbasedir/dirsrv.target.wants";
> if (!$unitdir or !$confdir or ! -d $unitdir or ! -d $confdir
>>>> or
> !(getLogin() eq 'root') <<<<<) {
> debug(3, "no systemd - skipping\n");
> return ();
> }
> [...]
> DS Version: 389-ds-base-1.3.0.2-1.fc18.x86_64
> Shell I open a bug or is this mail enough?
> Regards,
> Luca
> Luca Menegus
> D.B.M. S.r.l
> Via Enrico Noe, 23 - 20133 Milano (MI) Italy.
> Phone: +39 02 26600525
> Mobile: +39 3346220663
>
> --
> 389 users mailing list 389-users(a)lists.fedoraproject.org
>
https://admin.fedoraproject.org/mailman/listinfo/389-users
--
Mark Reynolds
Red Hat, Inc mreynolds(a)redhat.com