#2 phpCAS fails if $_SERVER['SERVER_NAME'] is not set

closed
None
5
2004-07-13
2004-07-13
teedog
No

If server_name is not defined in the webserver's config
files, $_SERVER['SERVER_NAME'] is empty, causing phpCAS
to fail.

Here is a simple patch to make phpCAS use
$_SERVER['HTTP_HOST'] in case $_SERVER['SERVER_NAME']
is empty.

Discussion

  • teedog

    teedog - 2004-07-13

    make phpCAS use $_SERVER['HTTP_HOST'] if $_SERVER['SERVER_NAME'] is empty

     
  • Pascal Aubry

    Pascal Aubry - 2004-07-13
    • assigned_to: nobody --> aubryp
    • status: open --> closed
     
  • Pascal Aubry

    Pascal Aubry - 2004-07-13

    Logged In: YES
    user_id=849523

    Hi,

    Your patch has been integrated into version 0.4.12.

    Thank you very much, hope this helps for tikiwiki CAS-
    compliance.

    FMI, what web server do you use that does not set
    SERVER_NAME?

    and BTW, what is your real name so I can add you to the list
    of contributors?

    PA

     
  • teedog

    teedog - 2004-07-14

    Logged In: YES
    user_id=807810

    Hi PA,

    It is Terence Chiu here, we corresponded earlier about
    phpCAS. :)

    Actually, I am using a standard Apache2 installation in
    Gentoo Linux. The default configuration file has the server
    name line commented out, that is why my SERVER_NAME was not
    set. Not a big deal.

    phpCAS is now integrated into Tiki and working very well, as
    far as I can tell. You can try it out in Tiki 1.9-RC2. I
    plan to add support for allowing users in Tiki to validate
    against different CAS servers in the future.

    Terence

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks