# Dialup Admin for Freeradius

**URL:** <https://forums.suse.com/t/dialup-admin-for-freeradius/26662>\
**Category:** SLES Networking\
**Created:** [February 6, 2015, 3:40pm UTC](https://forums.suse.com/t/dialup-admin-for-freeradius/26662 "2015-02-06T15:40:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Gill](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@John\_Gill](https://forums.suse.com/u/John_Gill)\
**Post date:** [February 6, 2015, 3:40pm UTC](https://forums.suse.com/t/dialup-admin-for-freeradius/26662/1 "2015-02-06T15:40:40Z")

</div>

Hi,

Running Sles11sp3 on a XEN VM with Freeradius 2.1x  
I am trying to get the dialupadmin web component working.

I have install and configured the freeradius and tested with a dummy user and all is good.  
I then created a link as follows: radius # ln -s /usr/share/dialup\_admin/htdocs /srv/www/htdocs/dialup  
Apache2 has also been started.  
I have also created 2 index.html and index.php and firefox displays the pages correctly.  
The permissions look correct but I think I might have missed something…

When I point Firefox to [http://127.0.0.1/dialup/index.html](http://127.0.0.1/dialup/index.html) I get a 403 error (permissions error)  
I have tried many variations of the url, but no joy…

Any ideas, recommendations, suggestions or complaints will be appreciated.  
Regards  
John

---

<div class="post-metadata">

**Author:** ![John\_Gill](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@John\_Gill](https://forums.suse.com/u/John_Gill)\
**Post date:** [February 9, 2015, 1:57pm UTC](https://forums.suse.com/t/dialup-admin-for-freeradius/26662/2 "2015-02-09T13:57:07Z")

</div>

mmmh, after much digging thru various log files, I now find that the issue is with Apache with the following error:  
Symbolic link not allowed or link target not accessible /srv/www/htdocs/dialup  
My link to the dialup\_admin seems to be right but …

As always, suggestions, comments or complains etc

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [February 9, 2015, 2:11pm UTC](https://forums.suse.com/t/dialup-admin-for-freeradius/26662/3 "2015-02-09T14:11:39Z")

</div>

Does your Apache httpd configuration allow symlinks to be followed? Try a  
hard link for a silly test:

```auto
rm /srv/www/htdocs/dialup
ln /srv/www/htdocs/dialup_admin/htdocs /srv/www/htdocs/dialup
```

Alowing symlinks is done via an AllowOverride line (as I recall) in the  
configuration files located under /etc/apache2 (again, from memory) but  
can also probably be set from Yast if that’s the UI you’re using for  
configuration currently.

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below…

---

<div class="post-metadata">

**Author:** ![John\_Gill](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@John\_Gill](https://forums.suse.com/u/John_Gill)\
**Post date:** [February 9, 2015, 3:18pm UTC](https://forums.suse.com/t/dialup-admin-for-freeradius/26662/4 "2015-02-09T15:18:19Z")

</div>

Hi ab,

I removed the symbolic link and tried a hard link… This failed because “hard link not allowed for directory”  
When I tried ln -F /usr/share/dialup\_admin/htdocs /srv/www/htdocs I get “Operation not permitted”  
I also tried the "override option in the /etc/apache2/httpd.conf and when I stopped and started apache2  
the apache complained about “Directory index forbidden by options directive”

Regards  
John

---

<div class="post-metadata">

**Author:** ![John\_Gill](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@John\_Gill](https://forums.suse.com/u/John_Gill)\
**Post date:** [February 9, 2015, 3:44pm UTC](https://forums.suse.com/t/dialup-admin-for-freeradius/26662/5 "2015-02-09T15:44:18Z")

</div>

moan, groan, \*\*\*\*\*, complain … (so many conf files)  
Ok, now edited the file /etc/apache2/default-server.conf and changed the following  
Options none =\> Options Indexes FollowSymLinks  
AllowOverride none =\> AllowOverride all  
Order allow,deny =\> Order deny,allow

Stop and start apache2 and the webadmin page appears (YAH!!)  
I might have opened a can of worms with security, so if I should change anything, please let me know …

Regards  
John

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [February 9, 2015, 3:45pm UTC](https://forums.suse.com/t/dialup-admin-for-freeradius/26662/6 "2015-02-09T15:45:22Z")

</div>

Hi John,

> and when I stopped and started apache2 the apache complained about “Directory index forbidden by options directive”

so it seems you’re on the right path. Setting up the web server to properly “serve” an application may require more than a single configuration change and should be documented in the application’s manual.

Is there, by chance, a “.htaccess” file in /usr/share/dialup\_admin/htdocs (which should be reachable as /srv/www/htdocs/.htaccess as well)? Then you might simply need to allow that file to take effect (in the main server configuration), instead of adding all required settings in the main config.

A different approach might be to set up a separate, “virtual” server and set the DocumentRoot to /usr/share/dialup\_admin/htdocs - then any additional settings required for your application won’t affect the whole web server. You will have to add either an additional IP address or DNS name to distinctively reach that virtual server.

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![John\_Gill](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@John\_Gill](https://forums.suse.com/u/John_Gill)\
**Post date:** [February 9, 2015, 3:55pm UTC](https://forums.suse.com/t/dialup-admin-for-freeradius/26662/7 "2015-02-09T15:55:37Z")

</div>

There is no “.htaccess” file so I guess the /etc/apache/default-server.conf" is the way to go.

Thanks ab and Jens for you input.

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [February 9, 2015, 3:57pm UTC](https://forums.suse.com/t/dialup-admin-for-freeradius/26662/8 "2015-02-09T15:57:16Z")

</div>

On 02/09/2015 06:24 AM, John Gill wrote:[color=blue]

> I removed the symbolic link and tried a hard link… This failed because  
> “hard link not allowed for directory”[/color]

Doh… I always forget about that one. My bad.  
[color=blue]

> When I tried ln -F /usr/share/dialup\_admin/htdocs /srv/www/htdocs I get  
> “Operation not permitted”[/color]

You were likely trying to overwrite an existing directory in this case  
unless you first removed /srv/www/htdocs, but no matter since you’ve moved  
past this.  
[color=blue]

> I also tried the "override option in the /etc/apache2/httpd.conf and  
> when I stopped and started apache2  
> the apache complained about “Directory index forbidden by options  
> directive”[/color]

Okay, so progress. Now add the default “file” to be accessed; perhaps  
this is index.html, or index.php, or similar. If you add it to the  
address bar in your browser then the DirectoryIndex feature will not need  
to be used and things should load up. Of course, you probably do not want  
to specify index.whatever each time you access the site, so making the  
DirectoryIndex work is a good idea.

In the default httpd.conf (or linked-in file from httpd.conf) there is  
probably a block which specifies the allowed options for this  
directory. You can either change these options, or allow overrides and  
then use an .htaccess file within your ‘htdocs’ directory to allow these  
options to work. Generally speaking if you own the server I’d just add an  
exception to the rule via a block:

```auto
<Directory /usr/share/dialup_admin/htdocs>
Options +Indexes
</Directory>
```

(or something like that)

Be sure to restart httpd to apply the change.

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below…
