phpbb 2.0.21 to cpg 1.4.9 bridge, cookie not passing phpbb 2.0.21 to cpg 1.4.9 bridge, cookie not passing
 

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]

Main Menu

phpbb 2.0.21 to cpg 1.4.9 bridge, cookie not passing

Started by Formula, September 01, 2006, 04:57:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Formula

Problems:  The first issue that I am having is that Coppermine can't read my cookies.
phpbb cookie domain: .peoplesynch.com
phpbb cookie name: phpbb2mysql

I've tried switching to the domain www.peoplesynch.com and peoplesynch.com, clearing my cookies, and relogging in with no success. Also, I tried using http://peoplesynch.com/cpg149/ instead of http://www.peoplesynch.com/cpg149/ with all versions of my cookie domain.

I've been reading through your previous solutions for the past couple of days and couldn't find a solution that worked for me.  I still think I have a cookie error, but I just can't seem to figure it out.

The second issue is that when I click Login in on Coppermine, it redirects to a page at the forum level that is ucp.php.  Is this a file that I'm supposed to copy into the folder, I read through the documentation and didn't notice it or I just don't remember seeing it.  The problem with this is that my index.php will parse error 404 urls and try to make sense out of them to direct the user to the correct page, and it thinks that ucp.php is a user, and sends you to a fake users page.

Thanks!!!

Here are my install stats:


Coppermine install: http://www.peoplesynch.com/Functions/cpg149/
Forum install: http://www.peoplesynch.com/Functions/forum
Coppermine version: cpg 1.4.9
Forum version: PHPBB 2.0.21
Test user account: test / test
Login here: http://www.peoplesynch.com/Functions/forum/login.php


BridgeManager settings:
Forum URL:  http://www.peoplesynch.com/Functions/forum
Relative path to your BBS's config file:  ../forum/ 
Use post-based groups?:  0 




USER:
------------------
Array
(
    [ID] => 14cfc9271849dc7a45293d4abf09ec62
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 0
    [user_name] => Guest
    [groups] => Array
        (
           
  • => 3
            )

        [group_quota] => 0
        [can_rate_pictures] => 1
        [can_send_ecards] => 0
        [can_post_comments] => 0
        [can_upload_pictures] => 0
        [can_create_albums] => 0
        [pub_upl_need_approval] => 1
        [priv_upl_need_approval] => 1
        [upload_form_config] => 0
        [num_file_upload] => 5
        [num_URI_upload] => 3
        [custom_user_upload] => 0
        [disk_max] => 0
        [disk_min] => 0
        [ufc_max] => 0
        [ufc_min] => 0
        [has_admin_access] => 0
        [group_name] => Guests
        [can_see_all_albums] => 0
        [group_id] => 3
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg149_filetypes; (0.001s)
        [1] => select * from cpg149_plugins order by priority asc; (0.002s)
        [2] => SELECT * FROM cpg149_bridge (0.002s)
        [3] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg149_usergroups WHERE group_id in (3) (0.002s)
        [4] => SELECT group_name FROM  cpg149_usergroups WHERE group_id= 3 (0.001s)
        [5] => DELETE FROM cpg149_banned WHERE expiry < '2006-09-01 14:38:59' (0.002s)
        [6] => SELECT * FROM cpg149_banned WHERE (ip_addr='67.163.*.*' OR ip_addr='67.163.*.*' OR user_id=0) AND brute_force=0 (0.006s)
        [7] => SELECT aid FROM cpg149_albums WHERE visibility != '0' AND visibility !='10000' AND visibility NOT IN (3) (0.001s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

    ==========================
    POST :
    ------------------
    Array
    (
    )

    ==========================
    Page generated in 0.125 seconds - 8 queries in 0.017 seconds - Album set : ; Meta set: ;

Nibbler

If you get redirected to ucp.php then you must be using the php 2.2 bridge file. This will not work with php 2.0.21. You need to use the option marked for 2.0.18 or higher.

Formula

Cool, that got the login redirect to work.  It's still not reading the cookie correctly though.  I just tried making the phpbb cookie www.peoplesynch.com, and peoplesynch.com (with the new bridge), and it still isn't being picked up by coppermine.  Coppermine is setting its cookie to Host:www.peoplesynch.com where phpbb is setting its cookie to Domain:.peoplesynch.com or .www.peoplesynch.com.

Thanks for the previous fast reply!

Nibbler


Formula

yep, all my new users work, when I ported my old login system to phpbb, I must not have filled in some of the correct fields.  Thanks for this cool program and great support.  :)

case solved.