Freeradius config delete on update opensuse 11.4

Hi all

I have an openSUSE 11.4 with freeradius and dhcp. In the last two freeradius updates with official openSUSE packages (using yast), the file “default” (where i have my configs) has been replaced for the “original” file (/etc /raddb/sites-available). This caused me many problems until I discovered where the problem was.

Why do this? Is it wrong for updates? Why openSuse updates overwrite my file “default” in /etc /raddb/sites-available?

Thank you in advance

Bests
Pablo

You should wait for people knowing more about *freeradius, *because I do not know anything about it. But my first impression is that you might have configured your freeradius in the wrong place. To me it seems that a file named default contains default vallues as a fallback when no local configuration is made, And as such that file belongs to the unconfigurable part of the product (and thus must be reloaded on any install of the product). Are you sure you used the correct configuration tool(s), or, when these are not available, did read the documentation (man pages?) thouroughly enough to configure correctly?

Just a guess base on the name default.

It is the first time I set up it in OpenSuse, I set up it by modifying the files directly, I did not use any configuration tool.

In Debian or CentOS always used this file “default”, I understand that Suse should be done in the same way. You can check that this file is used:

AD authentication on Dell PowerConnect switches using FreeRadius/LDAP on CentOS - Spiceworks

Implementing AAA through Freeradius with MySQL on Fedora 14

Best
Pablo

As said, iit was only an impression from my side.

I dd not think that it will be different on openSUSE (you seem to use many different ways of writing this, this is the correct one) from other distros.

The fact that you used it elsewhere is of course no prove that you did it “correct” (that is as the designers of FreeRadius designed it). I think the FreeRadius documentation should tell you. But it may be a badly documented product.

Hi
One things about openSUSE is it uses YaST for most configuration
options, if you manually tweak config files you need to expect they may
be overwritten during an update. If you use YaST this shouldn’t happen.

If not happy, then suggest you raise a bug with the packagers;
https://build.opensuse.org/package/show?package=freeradius-server&project=network%3Aaaa

Look down the page under ‘My Actions’ and click the ‘Report Bug’ link.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.6-2.10-desktop
up 3 days 20:44, 4 users, load average: 0.28, 0.20, 0.12
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Dear Malcom,

I think it is not possible to configure a freeradius server from yast2.

I repeat, the “default” file is always used to configure a RADIUS server, if there is another option or openSuse is different, please someone tell me how and do not guess.

I will also report it as a bug.

Thanks for your input.

Bests
Pablo

On 2012-09-21 14:55, malcolmlewis wrote:

> Hi
> One things about openSUSE is it uses YaST for most configuration
> options, if you manually tweak config files you need to expect they may
> be overwritten during an update. If you use YaST this shouldn’t happen.

It should not happen in neither case.

If a file can be silently replaced on updates, it should contain a comment mentioning this; if
the comment does not exist, it is a bug that the OP should report in bugzilla.

If the file should not be edited, but another file instead, then this should be in the
comments, and if not, report in bugzilla.

Normally, when a config file is replaced by an update (be it yast, zypper, apper, rpm) the old
config file is renamed as default.rpmsave. Pablo, have you verified this? If this did not
happen, again you must fill a bugzilla.

:slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Hi
As pointed out in my earlier post…

The spec file indicates;


%attr(640,root,radiusd) %{_sysconfdir}/raddb/sites-available/*

Normally it has a %config (noreplace) prefix…


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.6-2.10-desktop
up 22:59, 4 users, load average: 0.30, 0.10, 0.07
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

On 2012-09-24 18:04, malcolmlewis wrote:

> Hi
> As pointed out in my earlier post…
>
> The spec file indicates;
>


> %attr(640,root,radiusd) %{_sysconfdir}/raddb/sites-available/*
> 

> Normally it has a %config (noreplace) prefix…

Sorry, I don’t know spec syntax :slight_smile:

I assume that if it has “noreplace” it means that the file can not be replaced by an update.
I’m unsure if you say it has that clause or not.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Hi
This explains it;
http://www-uxsup.csx.cam.ac.uk/~jw35/docs/rpm_config.html


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.6-2.10-desktop
up 1 day 0:35, 5 users, load average: 0.32, 0.24, 0.18
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Thanks, I’ve reported a bug

Bug 781756 - network:aaa/freeradius-server: Bug