Author Topic: Album protection  (Read 4410 times)

0 Members and 1 Guest are viewing this topic.

Offline didier

  • album.pl User
  • *
  • Posts: 7
  • Karma: +0/-0
  • no,no...
Album protection
« on: November 12, 2002, 03:38:35 »
First, very good job for this album !
I'm strating with perl so  excuse my (Stupid ???) questions !
-I run V6.0 Beta. It's almost running but I still couldn't figure how get the admin, debug and config menu.
If I try with ...album.pl?function=admin.....nothing ?
What wrong there ?
-I like to have 2 "area" in the album : 1 protected, the other public ? I use mcc1.2 (looks the same than YaBB :j2use.com). How could I use my members db if it's possible ?
-Sory but....what's actually a "flat file" (I told you  ;) ?

Thinks for your help !
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Album protection
« Reply #1 on: November 12, 2002, 05:26:21 »
Hi didier,

Here goes:

1. If you've changed your config codes in album.cfg or through the configuration screen, you'll have to use the new (modified) codes. The "admin," "config," etc values are the defaults, but if you've changed them, you have to use the changed values.

2. You should be able to use a local album.cfg for this. So just create a file called album.cfg in the album(s) you want to protect, and make sure it contains:

Code: [Select]
protect_album=1

I'm not familiar with mcc1.2, so there's a *very* good chance authentication won't work, which is probably why you asked about flat file authentication... If you can send me some info on mcc1.2, I may be able to add it as an authentication type...

3. Here's some info on flat file authentication: http://perl.cdnarmy.ca/cgi-bin/yabb/YaBB.cgi?board=album.pl_archive;action=display;num=1025443136

I hope that helps, but if not, just let me know.

Cheers
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline didier

  • album.pl User
  • *
  • Posts: 7
  • Karma: +0/-0
  • no,no...
Re: Album protection
« Reply #2 on: November 13, 2002, 07:41:47 »
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Album protection
« Reply #3 on: November 13, 2002, 15:07:33 »
Ok, I think I've got it. You've mis-spelled "function" (must be the German spelling :)). So try http://www.xxx.com/cgi/album/album.pl?function=login and see what happens.

As for #3, you have to have some entries in auth_db.txt, or else there are no valid users defined! Who would you try to log in as?

Hopefully that'll be some progress. Thanks for the MCC link...

Cheers
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline didier

  • album.pl User
  • *
  • Posts: 7
  • Karma: +0/-0
  • no,no...
Re: Album protection
« Reply #4 on: November 17, 2002, 22:59:47 »
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Album protection
« Reply #5 on: November 18, 2002, 05:16:26 »
Yeah, there's no registration for auth_db.txt in album.pl. :( It's one of those "missing" things, but where most people integrate with YaBB/UBB, it hasn't come up that often...
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline didier

  • album.pl User
  • *
  • Posts: 7
  • Karma: +0/-0
  • no,no...
Re: Album protection
« Reply #6 on: November 21, 2002, 08:22:17 »
Hi Mike,
I'm still trying to protect a part f my album(s).
As I use J2use (similar as YaBB), I already have protected areas. So actually, I have the possibility to link the album I want to protect thrue my protected area. I don't want to use the flat profile.
After several test, I found out I have to get  album.pl; album.cfg and album_strings.txt in this protected area to be able to run it.
So I run the script twice.
It seams to run but I don't find this solution to be the best !

I send you a profile of my members.db from "mcc" :
admin|password|$apr1$eelik2ki$/MfIw.7f7zG.uSSMUivwe.|1||04/11/02 - 7 - 19/10/02||1|Administrator|xxx@xxx.com

Think I could use that ??

Thanks !
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Album protection
« Reply #7 on: November 21, 2002, 08:44:25 »
So members.db just contains a list of users (one per line) in the format you outlined below? You mention above that the password is encrypted, do you know any more about that?

Thanks
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline didier

  • album.pl User
  • *
  • Posts: 7
  • Karma: +0/-0
  • no,no...
Re: Album protection
« Reply #8 on: November 22, 2002, 02:32:59 »
that's right. The password is MD5 - Apache encrypted (in my case).
Can it help ?
Cheers
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Album protection
« Reply #9 on: November 22, 2002, 09:23:30 »
Yep, good to know it's MD5, that's pretty standad and easy to deal with...
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline didier

  • album.pl User
  • *
  • Posts: 7
  • Karma: +0/-0
  • no,no...
Re: Album protection
« Reply #10 on: November 25, 2002, 02:34:37 »
G'day Mike,

Sory for the late answer. I was busy at home !
May I hope you are gonna try to integrat  the members.db from j2use ?

I was just wondering if I should install YaBB....

Cheers
Didier
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Album protection
« Reply #11 on: November 25, 2002, 03:24:18 »
Sorry, I haven't had time to look at it yet... If you're moving to YaBB, I wouldn't try to stop you... ;)

Not sure when I'll have a chance to look at this...
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline didier

  • album.pl User
  • *
  • Posts: 7
  • Karma: +0/-0
  • no,no...
Re: Album protection
« Reply #12 on: November 26, 2002, 00:05:34 »
I can belive you're pretty busy ....no problem....I'll maybe  try YaBB  ;)
Thanks for all
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »