FS#24921 - [krb5] Filenames of rc scripts and /etc/krb5/ not used

Attached to Project: Arch Linux
Opened by CC (ccom) - Tuesday, 28 June 2011, 10:07 GMT
Last edited by Stéphane Gaudreault (stephane) - Thursday, 30 June 2011, 18:17 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Stéphane Gaudreault (stephane)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The rc-scripts have the extension ".rc" which Arch packages generally do not have.
This task depends upon

Closed by  Stéphane Gaudreault (stephane)
Thursday, 30 June 2011, 18:17 GMT
Reason for closing:  Fixed
Additional comments about closing:  krb5-1.9.1-2 in [testing]
Comment by Stéphane Gaudreault (stephane) - Tuesday, 28 June 2011, 11:25 GMT
Will be renamed in the next update.
Comment by CC (ccom) - Wednesday, 29 June 2011, 14:20 GMT
Hi Stéphane,

there seems to be another problem: the krb5 package installs all configuration files into the /etc/krb5 directory, but krb5 doesn't use it, i.e., no modifications in /etc/krb5/krb5.conf or /etc/kdc.conf -- which contain wrong defaults -- show any effect. Grepping the binaries, it seems like krb5 is configured to use "/etc/krb5.keytab" and kdc to use "/var/lib/krb5kdc".

Thanks,
ccom
Comment by Stéphane Gaudreault (stephane) - Wednesday, 29 June 2011, 14:46 GMT
hum ... it is builded with "./configure --sysconfdir=/etc/krb5" so it should use this directory. I will look at this.
Comment by CC (ccom) - Wednesday, 29 June 2011, 15:17 GMT
I looked into it.

1) krb5 always looks for /etc/krb5.conf first (I still had Heimdal's version there)
2) sysconfdir is only used for krb5.conf, not for kdc.conf
3) kdc.conf is looked for in localstatedir

Hence, I suggest using /etc/krb5.conf instead of /etc/krb5/krb5.conf, and just using the current /var/lib/krb5kdc/ for kdc.conf; the package needs to create /var/lib/krb5kdc anyway.

Thanks,
ccom
Comment by Stéphane Gaudreault (stephane) - Thursday, 30 June 2011, 17:30 GMT
I am going to upload a new pkg with the following filename changes :

/etc/krb5/kdc.conf => /var/lib/krb5kdc/kdc.conf
/etc/krb5/krb5.conf => /etc/krb5.conf
/etc/rc.d/kadmind.rc => /etc/rc.d/krb5-kadmind
/etc/rc.d/krb5-kdc.rc => /etc/rc.d/krb5-kdc

Loading...