Re: [CentOS] Updated krb5 rpm package altered existing krb5.conf - No go

2018-06-21 Thread Götz Reinicke


> Am 18.06.2018 um 16:33 schrieb m...@tdiehl.org:
> 
> On Mon, 18 Jun 2018, G?tz Reinicke wrote:
> 
>> 
>> 
>>> Am 15.06.2018 um 01:04 schrieb Gordon Messmer :
>>> 
>>> On 06/14/2018 09:30 AM, m...@tdiehl.org wrote:
 On Thu, 14 Jun 2018, Richard Grainger wrote:
 
> I looked at the spec file in the source RPM for the krb5-libs package
> and it it has the correct %config(noreplace) directive next to that
> file in the %files section, so this is mysterious.
 
 I too can confirm this behavior.
>>> 
>>> # rpm -qa krb\* --triggers
>>> triggerun scriptlet (using /bin/sh) -- krb5-libs < 1.15.1-13
>>> if ! grep -q 'includedir /etc/krb5.conf.d' /etc/krb5.conf ; then
>>>sed -i '1i # Other applications require this directory to perform krb5 
>>> configuration.\nincludedir /etc/krb5.conf.d/\n' /etc/krb5.conf
>>> fi
>>> 
>>> 
>>> Looks like that's the culprit.
>> 
>> 
>> Good to know, but writing a rpmnew or rpmsave file would be nice to check 
>> against the life used file.
> 
> Agreed! IMO this is a packaging bug. Triggers do not drop rpmsave files. I 
> suspect the chances of getting
> Red Hat to fix it are slim to none. Fixing it would most likely break other 
> things for them.
> 
>> 
>> The samba people are aware of that problem regarding the include line and 
>> are working on a patch ? the support at SerNet told me.
> 
> I agree they are aware of it but I suspect it is a low priority thing given
> they have known about this since 2016-12-29.
> 
> I do think it would be relatively easy for SerNet to patch around in their
> paid for rpms. alas I do not have the budget for them. :-(
> 
> The bug is available at https://bugzilla.samba.org/show_bug.cgi?id=12488 
> 

Patched https://bugzilla.samba.org/show_bug.cgi?id=11573 


/Götz
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Updated krb5 rpm package altered existing krb5.conf - No go

2018-06-18 Thread me

On Mon, 18 Jun 2018, G?tz Reinicke wrote:





Am 15.06.2018 um 01:04 schrieb Gordon Messmer :

On 06/14/2018 09:30 AM, m...@tdiehl.org wrote:

On Thu, 14 Jun 2018, Richard Grainger wrote:


I looked at the spec file in the source RPM for the krb5-libs package
and it it has the correct %config(noreplace) directive next to that
file in the %files section, so this is mysterious.


I too can confirm this behavior.


# rpm -qa krb\* --triggers
triggerun scriptlet (using /bin/sh) -- krb5-libs < 1.15.1-13
if ! grep -q 'includedir /etc/krb5.conf.d' /etc/krb5.conf ; then
sed -i '1i # Other applications require this directory to perform krb5 
configuration.\nincludedir /etc/krb5.conf.d/\n' /etc/krb5.conf
fi


Looks like that's the culprit.



Good to know, but writing a rpmnew or rpmsave file would be nice to check 
against the life used file.


Agreed! IMO this is a packaging bug. Triggers do not drop rpmsave files. I 
suspect the chances of getting
Red Hat to fix it are slim to none. Fixing it would most likely break other 
things for them.



The samba people are aware of that problem regarding the include line and are 
working on a patch ? the support at SerNet told me.


I agree they are aware of it but I suspect it is a low priority thing given
they have known about this since 2016-12-29.

I do think it would be relatively easy for SerNet to patch around in their
paid for rpms. alas I do not have the budget for them. :-(

The bug is available at https://bugzilla.samba.org/show_bug.cgi?id=12488

Regards,

--
Tom m...@tdiehl.org
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Updated krb5 rpm package altered existing krb5.conf - No go

2018-06-18 Thread Götz Reinicke


> Am 15.06.2018 um 01:04 schrieb Gordon Messmer :
> 
> On 06/14/2018 09:30 AM, m...@tdiehl.org wrote:
>> On Thu, 14 Jun 2018, Richard Grainger wrote:
>> 
>>> I looked at the spec file in the source RPM for the krb5-libs package
>>> and it it has the correct %config(noreplace) directive next to that
>>> file in the %files section, so this is mysterious.
>> 
>> I too can confirm this behavior. 
> 
> # rpm -qa krb\* --triggers
> triggerun scriptlet (using /bin/sh) -- krb5-libs < 1.15.1-13
> if ! grep -q 'includedir /etc/krb5.conf.d' /etc/krb5.conf ; then
> sed -i '1i # Other applications require this directory to perform krb5 
> configuration.\nincludedir /etc/krb5.conf.d/\n' /etc/krb5.conf
> fi
> 
> 
> Looks like that's the culprit.


Good to know, but writing a rpmnew or rpmsave file would be nice to check 
against the life used file.

The samba people are aware of that problem regarding the include line and are 
working on a patch … the support at SerNet told me.

Regards . Götz



___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Updated krb5 rpm package altered existing krb5.conf - No go

2018-06-14 Thread Gordon Messmer

On 06/14/2018 09:30 AM, m...@tdiehl.org wrote:

On Thu, 14 Jun 2018, Richard Grainger wrote:


I looked at the spec file in the source RPM for the krb5-libs package
and it it has the correct %config(noreplace) directive next to that
file in the %files section, so this is mysterious.


I too can confirm this behavior. 


# rpm -qa krb\* --triggers
triggerun scriptlet (using /bin/sh) -- krb5-libs < 1.15.1-13
if ! grep -q 'includedir /etc/krb5.conf.d' /etc/krb5.conf ; then
    sed -i '1i # Other applications require this directory to perform 
krb5 configuration.\nincludedir /etc/krb5.conf.d/\n' /etc/krb5.conf

fi


Looks like that's the culprit.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Updated krb5 rpm package altered existing krb5.conf - No go

2018-06-14 Thread me

On Thu, 14 Jun 2018, Richard Grainger wrote:


On Wed, Jun 13, 2018 at 6:56 PM G?tz Reinicke
 wrote:


/etc/krb5.conf


I looked at the spec file in the source RPM for the krb5-libs package
and it it has the correct %config(noreplace) directive next to that
file in the %files section, so this is mysterious.


I too can confirm this behavior. I do not know why it gets modified but
adding the include line breaks self compiled samba DC installations because
of the difference in kerberos types used with samba and Red Hat.

I suspect that this should be filed as a bug in upstream bugzilla since
it does not look like Centos modified the krb5-libs spec file.

Presently, to work around the problem, I have ansible fix the file after
updates.

Regards,

--
Tom m...@tdiehl.org
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Updated krb5 rpm package altered existing krb5.conf - No go

2018-06-14 Thread Richard Grainger
On Wed, Jun 13, 2018 at 6:56 PM Götz Reinicke
 wrote:

> /etc/krb5.conf
>
I looked at the spec file in the source RPM for the krb5-libs package
and it it has the correct %config(noreplace) directive next to that
file in the %files section, so this is mysterious.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Updated krb5 rpm package altered existing krb5.conf - No go

2018-06-13 Thread Götz Reinicke


> Am 13.06.2018 um 17:55 schrieb Richard Grainger :
> 
> On Wed, Jun 13, 2018 at 3:54 PM Götz Reinicke
>  wrote:
>> 
>> Hi,
>> 
>> I did an centos update from 7.4 to 7.5 and the krb5 package altered the 
>> existing and used config file! That should be a no go from my pov, as in my 
>> setup it broke some services which had a problem with the includedir line 
>> which was added.
> 
> Which config file?


/etc/krb5.conf

Regards . Götz



___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Updated krb5 rpm package altered existing krb5.conf - No go

2018-06-13 Thread Richard Grainger
On Wed, Jun 13, 2018 at 3:54 PM Götz Reinicke
 wrote:
>
> Hi,
>
> I did an centos update from 7.4 to 7.5 and the krb5 package altered the 
> existing and used config file! That should be a no go from my pov, as in my 
> setup it broke some services which had a problem with the includedir line 
> which was added.

Which config file?
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos