1
ldapguru
Re: Xoops Authentication Service hack
  • 2004/5/26 18:31

  • ldapguru

  • Just popping in

  • Posts: 13

  • Since: 2002/10/16


Hi,

I did look at CAS and was impressed... But i am a Project liberty Advocate. CAS is very very good... But I'm working on embedding the project liberty framework into XOOPS. Could you please get in touch with me so we could share notes...

I've worked with both CAS and Liberty. (I have absolutely no compalaints about CAS. i love it). But since the industry is moving towards a liberty framework I am leaning towards the libert specs myself.


Rohan Pinto
rpinto@ldapguru.org
http://www.project-liberty.org



2
ldapguru
Re: xoops and sticky URL's
  • 2003/12/31 5:09

  • ldapguru

  • Just popping in

  • Posts: 13

  • Since: 2002/10/16


Thanks for pointing out the error. It's fixed now.

Cheers !!



3
ldapguru
Re: xoops and sticky URL's
  • 2003/12/31 2:48

  • ldapguru

  • Just popping in

  • Posts: 13

  • Since: 2002/10/16


Guess It'd be a good idea to post the code to use sticky URL's here itself, so that i can eliminate stale-unused registrations on my site.

backup your existing mainfile.php
copy the following code into your existing mainfile.php
<?
include(
"parameters/whoisit.inc.php"); 
if (!(empty(
$serverName))) 

include(
"parameters/".$serverName."/mainfile.php"); 
}
define("WHERE_IS_PERSO","parameters/".$serverName."/"); 
?>


Now create a directory called "parameters" under your XOOPS root directory.

Place the file 'whoisit.inc.php" in the directory "parameters"

<?

if (!(isset(
$serverName))) 

$serverName $SERVER_NAME
$serverName str_replace(".org","",$serverName);
$serverName str_replace(".net","",$serverName); 
$serverName str_replace(".com","",$serverName); 


?>


now create directories in "parameters" that reflect your domain name or subdomainname or URL

place your ORIGINAL mainfile.php in these directories.

you can customize mainfile.php within each directory to reflect the components that you want. ie: URL, absolute path etc..


Now this method is just one of the simple ways to use sticky URL's.

The method that I have in production uses a lil more complex method which includes modifying the apache virtualserver parameters. I could post a document to that effect if someone wants me to...



4
ldapguru
Re: xoops and sticky URL's
  • 2003/12/31 2:42

  • ldapguru

  • Just popping in

  • Posts: 13

  • Since: 2002/10/16


Thats what i used to do a long long time ago. Now I just have 1 XOOPS engine powering all my domains. neat eh !!



5
ldapguru
xoops and sticky URL's
  • 2003/12/31 2:24

  • ldapguru

  • Just popping in

  • Posts: 13

  • Since: 2002/10/16


Hi I always wanted to be able to have several URL's being served with varied content from the same backend XOOPS engine. I have a method that could be implemented very easily such that content served from the same backend XOOPS engine can be represented using URL's that stick.

The method has 2 parts to it.
1. A sticky URl that changes after the user clicks on any particular link.

2. a sticky URL that sticks throughout the entire valid browser session.

Well, both these methods work prefectly fine. I am working on session management such that the session cookie contains parameters for all the various domains (URL's) that the user could choose and make then automatically signon to all domains at once.

The SSO (single Signon) components are in a beta stage and I shall post a release note when it's complete.

The Sticky URL's work just fine (LOL... No iFrames or Frames in use). You can see them in action at the following URL's

http://corp.ldapguru.org
http://products.ldapguru.org
http://partners.ldapguru.org
http://www.ldapguru.org

And the CORE XOOPS engine that serves these various URL's / Domains athttp://www.ldapguru.net.

The modular code can be downloaded from my site ( for registered users. So go ahead register yourself athttp://www.ldapguru.net/register.php and download the code.

Please do not abuse the system as this code has been implemented on my live site and not on a development or staging server.




TopTop



Login

Who's Online

202 user(s) are online (124 user(s) are browsing Support Forums)


Members: 0


Guests: 202


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits