Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: login paramaters  (Read 9349 times)

0 Members and 1 Guest are viewing this topic.

PJ_56

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
login paramaters
« 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 ?
« Last Edit: November 04, 2005, 08:31:29 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

PJ_56

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: login paramaters
« Reply #2 on: October 31, 2005, 04:04:26 pm »

I don't understant... How can i do with PHP langage and coppermine 1.3 ?
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: login paramaters
« Reply #3 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?
Logged

PJ_56

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: login paramaters
« Reply #4 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: login paramaters
« Reply #5 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.
Logged

PJ_56

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: login paramaters
« Reply #6 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 ?
Logged

Nibbler

  • Guest
Re: login paramaters
« Reply #7 on: November 02, 2005, 10:53:43 am »

Use the bridge system, it's the only sensible way to do it.
Logged

PJ_56

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: login paramaters
« Reply #8 on: November 02, 2005, 10:56:33 am »

It is in the Bridge directory ? Which file must i modify ?
Logged

Nibbler

  • Guest
Re: login paramaters
« Reply #9 on: November 02, 2005, 10:57:37 am »

Modify one that is similar to your system.
Logged

PJ_56

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: login paramaters
« Reply #10 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: login paramaters
« Reply #11 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.
Logged

PJ_56

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: login paramaters
« Reply #12 on: November 04, 2005, 08:20:06 am »

Ok, thanks, i'm going to try to find a solution. Thanks for your explications.
Logged

PJ_56

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: login paramaters
« Reply #13 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 ?
Logged

PJ_56

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Recreate the session cookie for coppermine
« Reply #14 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 ?
Logged

Nibbler

  • Guest
Re: Recreate the session cookie for coppermine
« Reply #15 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: login paramaters
« Reply #16 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 15 queries.