Add entry without beeing logged in

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
stadskle
Regular
Posts: 7
Joined: Mon Apr 10, 2006 6:07 pm

Add entry without beeing logged in

Post by stadskle »

Is it possible to configure Serendipity so that this is possible?

Thanks in advance.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Add entry without beeing logged in

Post by garvinhicking »

That would be a HUGE security problem if anyone could add entries to your blog and access your backend without credentials. I would really only suggest to do this in an intranet blog.

There would be ways to create a plugin for you that logs you into s9y automatically without any user response. Or you could just edit your serendipity_config_local.inc.php file and insert this at the end:

Code: Select all

$serendipity['serendipityUser'] = 'Anon';
$_SESSION['serendipityPassword'] = '';
$_SESSION['serendipityAuthedUser'] = true;
$_SESSION['serendipityAuthorid'] = $serendipity['authorid'] = 1;
$_SESSION['serendipityUserlevel'] = $serendipity['serendipityUserlevel'] = 255;
You have been warned, though. :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
stadskle
Regular
Posts: 7
Joined: Mon Apr 10, 2006 6:07 pm

Post by stadskle »

Thank you!

I'm not planning on doing it. But it was necessary to know when developing our plugin.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Yes, a plugin can basically override any authentication because it can call any serendipity function without checking the authentication. :)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply