[389-users] Can't create DSInstances as user (uid !=0) with 389-ds-base-1.3.0.2-1.fc18.x86_64 on FC18

Mark Reynolds mareynol at redhat.com
Mon Feb 11 00:24:51 UTC 2013


Hi Luca,

Yes please file a ticket at:  https://fedorahosted.org/389/newticket

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 at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/389-users

-- 
Mark Reynolds
Red Hat, Inc
mreynolds at redhat.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/389-users/attachments/20130210/4ab28ddc/attachment.html>


More information about the 389-users mailing list