Can't login into XP Webpublishing Assistent

ActiveNight

Joined: 2005-07-10
Posts: 71
Posted: Sat, 2005-10-29 14:25

I have integrated the G2 into my website... now I want to use the Webpublishing-Assistent for Windows XP. But I can't login.. it sais, that my login-datas are incorrect. Why?

Gallery version: 2.01

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-10-29 16:38

1. install and activate the publish xp and the gallery remote modules in site admin -> modules
2. browse to add item -> from publish xp and download and execute the .reg file
3. in windows, publish xp, use your gallery user name and password to login. do not use your windows account

see: codex.gallery2.org -> howtos

 
ActiveNight

Joined: 2005-07-10
Posts: 71
Posted: Sat, 2005-10-29 17:53

That's a joke..isn't it?
It's clear that i don't have to use my windows account ;-)
I integrated my g2 into my website and the publishing assistent don't seems to "know" the user passwords.
http://www.ms-chat.com/gallery_new.php

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-10-30 04:42

joke? nope, just ruling out basic mistakes.

your g2 is integrated in your website, but you can still access it directly.
try to access your g2 directly (browse to your g2 at http://www.ms-chat.com/gallery2/main.php) and download and execute the .reg file from add items from publish xp.

does that work?

 
ActiveNight

Joined: 2005-07-10
Posts: 71
Posted: Sun, 2005-10-30 19:34

I tried to login via http://www.waf-chat.de/gallery2/main.php?g2_view=core.UserAdmin&g2_subView=core.UserLogin&g2_return=http%3A%2F%2Fwww.waf-chat.de%2Fgallery2%2Fmain.php&g2_returnName=Album but to download the .reg-file from add items from publish xp, but it also there it sais, that my login-datas are incorrect. I can just login via my own login-file... it contains the following code:

Quote:
require_once(dirname(__FILE__) . '/gallery2/embed.php');
if (ereg("neu", $_SERVER["PHP_SELF"])) {
$embedPath = "/neu/";
}
else {
$embedPath = "/";
}
$ret = GalleryEmbed::init(array(
'embedUri' => 'embedGallery.php',
'embedPath' => $embedPath,
'relativeG2Path' => 'gallery2/',
'loginRedirect' => 'login.php',
'activeUserId' => $_SESSION["id"]));
if ($ret->isError()) {
$par = array('username' => $_SESSION["name"],
'email' => $_SESSION["email"],
'fullname' => $_SESSION["name"],
'hashedpassword' => md5($_SESSION["password"]),
'hashmethod' => 'md5');
$ret = GalleryEmbed::createUser($_SESSION["id"], $par);
if ($ret->isError()) {
echo 'Fehler: User konnte nicht estellt werden.'.$ret->getAsHtml();
exit();
}
}

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-10-30 19:53

you should still be able to login directly to your g2 standalone with the admin user you created during the g2 installation.

 
ActiveNight

Joined: 2005-07-10
Posts: 71
Posted: Sun, 2005-10-30 20:35

http://www.ms-chat.com/gallery2/main.php?g2_view=publishxp.DownloadRegistryFile
I installed this .reg...but the same error. Wrong login-information :(
With my "admin"-user it works.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-10-30 20:56

so the users that were created through GalleryEmbed don't work, but admin works.
then it certainly has to do with the password.
is your application actually using md5? with a salt?

 
ActiveNight

Joined: 2005-07-10
Posts: 71
Posted: Sun, 2005-10-30 21:27

Yes...there are only hashed passwords in the database. But I think it are no normal md5-hashed words!? What do you mean with "salt"?
In my login-script you can read:

Quote:
'hashedpassword' => md5($_SESSION["password"]),
'hashmethod' => 'md5');

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-10-30 22:52

what do you mean when you say "i think it are no normal md5-hashed words!?"
you hand over the hashed passwords from your application to g2. so you should know how your application hashes passwords.

@salt:
http://www.google.com/search?hl=en&q=md5+hash+with+salt&btnG=Google+Search

 
ActiveNight

Joined: 2005-07-10
Posts: 71
Posted: Mon, 2005-10-31 14:15

This is the register-part of my application. Yes..it's md5. But in the g2-user-database there are other passwords then in my own user-databse.

Quote:
require_once(dirname(__FILE__) . '/gallery2/embed.php');
if (ereg("neu", $_SERVER["PHP_SELF"])) {
$embedPath = "/neu/";
}
else {
$embedPath = "/";
}
$ret = GalleryEmbed::init(array(
'embedUri' => 'embedGallery.php',
'embedPath' => $embedPath,
'relativeG2Path' => 'gallery2/',
'loginRedirect' => 'login.php',
'activeUserId' => ''));
if ($ret->isError()) {
$par = array('username' => $row["uname"],
'email' => $row["email"],
'fullname' => $row["uname"],
'hashedpassword' => $row["pass"],
'hashmethod' => 'md5');
$ret = GalleryEmbed::createUser($row["id"], $par);
if ($ret->isError()) {
$smarty->assign("error", "Es ist ein Gallery2interner Fehler aufgetreten:<br />".$ret->asHtml());
$smarty->display("error.tpl");
exit();
}
}

Perhaps the g2 works with a salt and my own database without it?

 
ActiveNight

Joined: 2005-07-10
Posts: 71
Posted: Sat, 2005-11-19 13:58

Can anybody help me? I can't event login over my "native url" :(

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-11-19 20:53

please take a look at how it's done in other integrations.

 
ActiveNight

Joined: 2005-07-10
Posts: 71
Posted: Tue, 2006-01-03 19:45

It still doesn't work..
does anybody know how to use XP Publishing with an embeed Gallery2?

 
ptalindstrom

Joined: 2006-01-04
Posts: 33
Posted: Mon, 2006-08-21 20:46

i have had a lot of trouble with the XP publish....

thought i had it sorted out by modifying thier regsitry file which was incorrect

had it working but havent used it in ages on my mom's site

tried it today and see it is busted again... i can't login from publish wizard.. i get "web server error"...

i would say it really is not a very stable app.. seems like a nice idea though... but have spent many many hours trying to debug this.. figure uploading ZIPs is likely easier.. except would have been really nice for my Mom (who is computer illiterate) if the XP Publish was usable consistently

good luck,