coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: PJ_56 on October 31, 2005, 03:32:44 PM

Title: login paramaters
Post by: PJ_56 on October 31, 2005, 03:32:44 PM
Hello !

Is it possible to transfer the login and the password since another Web page to automate the connection ?
Any idea ?
Title: Re: login paramaters
Post by: Joachim Müller on October 31, 2005, 03:56:45 PM
http://coppermine-gallery.net/demo/cpg13x/docs/index.htm#integrating
Title: Re: login paramaters
Post by: PJ_56 on October 31, 2005, 04:04:26 PM
I don't understant... How can i do with PHP langage and coppermine 1.3 ?
Title: Re: login paramaters
Post by: Tranz on October 31, 2005, 04:06:43 PM
So you want to integrate with a custom system that is not listed in that page in the URL GauGau gave?
Title: Re: login paramaters
Post by: PJ_56 on October 31, 2005, 04:19:15 PM
My system work whith easy php. I want to integrate cpg in my web site which is with some restricted accesses.
The table of the users was filled with all the registered people on my site. The aim is that the users are not identified a second time.
Title: Re: login paramaters
Post by: Joachim Müller on October 31, 2005, 08:57:16 PM
you'd have to come up with a custom bridge file that "hooks" to your custom user authentification app. Coppermine provides the API.
Title: Re: login paramaters
Post by: PJ_56 on November 02, 2005, 08:50:05 AM
I have the impression that it is planned for forums php only. Is it possible to modify the file login.php or index.php of coppermine ? Or to send the user and password from an other php file ?
Title: Re: login paramaters
Post by: Nibbler on November 02, 2005, 10:53:43 AM
Use the bridge system, it's the only sensible way to do it.
Title: Re: login paramaters
Post by: PJ_56 on November 02, 2005, 10:56:33 AM
It is in the Bridge directory ? Which file must i modify ?
Title: Re: login paramaters
Post by: Nibbler on November 02, 2005, 10:57:37 AM
Modify one that is similar to your system.
Title: Re: login paramaters
Post by: PJ_56 on November 02, 2005, 12:31:23 PM
It's not very easy... Is there any other solution ? I must recover the user name via the url of the navigator to do the connection with coppermine.
Please, help.
Title: Re: login paramaters
Post by: Joachim Müller on November 02, 2005, 07:53:45 PM
look, we don't know your custom user authentification script, so we can not come up with a bridge file for your purposes. If you were able to code a custom user authentification script by yourself you're certainly capable to look at some bridge files, find out how they work and come up with your own bridge file. After all, there's no difference how your user authentification script stores user data (inside a database or a plain text file). The bridge basically makes coppermine read the cookie from your other app that provides user authentification, then it needs to read the user data source (database tables or plain text files) and compare the cookie data and user data from the lookup. If you have no idea what I'm talking about I suggest choosing another user autentification scheme (i.e. dropping your existing one) or hiring someone to create a bridge file for you.
Sending authentification by URL (GET method) is very unsecure and not recommended anyway.
Title: Re: login paramaters
Post by: PJ_56 on November 04, 2005, 08:20:06 AM
Ok, thanks, i'm going to try to find a solution. Thanks for your explications.
Title: Re: login paramaters
Post by: PJ_56 on November 09, 2005, 01:58:45 PM
When i try to create a cookie for coppermine i've got this error :

Warning: Cannot modify header information - headers already sent by (output started at c:\www\gallerie\cpg134\p_boot.php:3) in c:\www\gallerie\cpg134\p_boot.php on line 17

What does it means ?
Title: Recreate the session cookie for coppermine
Post by: PJ_56 on November 09, 2005, 02:01:01 PM
How can i do to create a cookie to connect coppermine gallery automaticly ? What are the informations that i must declare into this cookie ?
Title: Re: Recreate the session cookie for coppermine
Post by: Nibbler on November 09, 2005, 02:07:38 PM
Coppermine is open source software, read the source and that will tell you all you need to know.
Title: Re: login paramaters
Post by: Joachim Müller on November 09, 2005, 06:07:37 PM
you don't create a cookie for coppermine - the script does this already. Just make sure you have specified the cookie name properly in coppermine's config. Merged the two threads that deal with the same issue.