AuthDNS-Talk

Summary: Talk page for AuthDNS.
Maintainer: Petko
Users: +2 -1 (View / Edit)

This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.

I (think I) followed the AuthUser / AuthDNS guidelines, trying to use it in our Uniserver Standalone Intranet Enterprise Wiki, to automatically access certain pages for our local businesses by IP address. My localhost/wiki/?n=SiteAdmin.AuthDNS page doesn't work as expected, yet. Is there any more documentation about 'config.php' or elsewhere fixes to solve this?

My Equilibrium Setup

Thanks for any help! Jazzvox

First of all, is AuthUser working as expected? Have you set IDs and passwords which allow you to login and edit/view the wiki? Second, have you written your IP addresses and usernames correctly in the SiteAdmin.AuthDNS page? If you browse http://localhost/, your own IP address is likely 127.0.0.1. Third, you need to access the address localhost/wiki/?action=authdns. --Petko December 05, 2011, at 06:12 AM

  • First of all, is AuthUser working as expected? √
  • Have you set IDs and passwords which allow you login and edit/view the wiki? √

Second, have you written your IP addresses and usernames in the SiteAdmin.AuthDNS page?

    Auth DNS - List of known IP addresses and hostnames: 12.345.67.89: @filiale1 (xxx my ISP-IP / Fritz.box)

If you browse http://localhost/, your own IP address is likely 127.0.0.1.

    We can't use this private address in our case, maybe I have to use LDAP or Hostname?
    Both http://localhost/127.0.0.1 and http://localhost/12.345.67.89 give me a 404 IIS page
    As my Appache is on Port 81: http://localhost:81/127.0.0.1 gives me a 404 blank page
    Maybe I'm getting sth. wrong? Uniserver Standalone on a Windows Device...

No, you don't go to http://localhost:81/127.0.0.1, you need to set in SiteAdmin.AuthDNS 127.0.0.1: @filiale1 for example. You can see your IP address if you edit your WikiSandbox, enter {$LastModifiedHost} and save the WikiSandbox. The address you see should be used in SiteAdmin.AuthDNS. --Petko

The user who last saved this page had this IP address: {$LastModifiedHost}.

The user who last saved this page had this IP address: 85.171.160.186.

    Using {$LastModifiedHost} in my local wiki's sandbox shows this IP address: ::1
    On this page, my static IP is displayed correctly, as 12.345.67.89 Jazzvox Dec 05, 2011, 18:00 CET

Oh, your server is probably running on an IPv6 network. IPv6 addresses are currently not supported. I'll try to release a new version of AuthDNS in the next few days which should fix this. It will need testing. --Petko December 05, 2011, at 08:51 AM

    IPv6 ≡ Router Software ??
    It's my "wiki for testing purposes" Standalone on a local WIN7-32 Pro Device.
    Tomorrow I'll be testing the "original wiki", Uniserver in a Virtual WIN Device on a local LINUX server.
    I will have some help from our Network-Guy, he deals with the Server settings, Logs and all ... not me!
    If there's anything we can do to assist in your process of development ... please just ask!
    (webmaster AT jacob-boehme DOT de) Jazzvox Dec 05, 2011, 17:47 CET

Third, you need to access the address localhost/wiki/?action=authdns.

    This doesn't work either. I just get redirected to ?n=Main.HomePage?action=login Jazzvox Dec 05, 2011, 13:34 CET

Sorry, the Cookbook:Standalone recipe is not a complete server software, it doesn't even supply IP addresses to PmWiki and cannot be used with AuthDNS. It is intended to be used as a very lightweight server for a single computer, in order to run a personal wiki/PIM. Such installation will not be completely compatible with an online wiki site, so it is not even recommended to use the Standalone server for testing before publication. --Petko December 18, 2011, at 03:32 PM

    The wiki in production: Standalone Uniserver in a Virtual WIN Device on a local LINUX server. Intranet, what else to use?
    Thought we just need some php.ini and/or apache settings, which is obviously possible in Uniserver.
    Maybe AuthUser#LDAP can do the job? May I send my phpinfo.php (IPv6 is set to active)?.
    Much thanks for Your friendly support! --Jazzvox December 19, 2011, at 12:01 PM

The Uniserver (Apache), behind the layers of a virtual Windows device, may not have access to all the information a real server would have. If this is on a local Linux server, I would install the Apache server for Linux. You may even already have it installed. Read the documentation of your Linux distribution, and you should use the install procedures/programs of that distribution. --Petko December 24, 2011, at 03:50 AM

I am sorry, but without testing an installation like yours in realtime, I don't know how to debug it. But since the wiki is on a local network, why don't you just leave it open for editing by anyone? These are your colleagues you should trust, just monitor the Site.AllRecentChanges page, if someone breaks something, to fix it. --Petko December 24, 2011, at 03:50 AM

In addition: Is there any way to use config.php for AuthDNS?

To make sure settings are loaded early. This works for all AuthUser settings..

Example: $AuthDNS['@filiale1'] = '192.168.0.*'; or $AuthDNS['192.168.0.*'] = '@filiale1', '@filiale2';

or even $AuthUser['@filiale1'] = '192.168.0.*'; --Jazzvox

This is currently not possible. --Petko December 18, 2011, at 03:32 PM

Talk page for the AuthDNS recipe (users).