Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
#149128 01/09/2002 2:45 PM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
This integrates a htaccess password popup with your board. Members will be able to enter their login/password for the board into the htaccess to gain access. When their password is changed on the board, their htaccess password will automatically be changed as well. You can turn it on or off from the cp, as well as enable/disable a registration login/pass so people can register.

This is beta because I am not sure i have pinned down all the places/ways a member's password can be changed.

http://www.jordodesigns.com/UBBhtaccess.zip

Sponsored Links
#149129 01/09/2002 2:49 PM
Joined: Dec 2001
Posts: 26
Junior Member
Junior Member
Offline
Joined: Dec 2001
Posts: 26
cool I will be adding this tonight

Thanks

#149130 01/09/2002 3:00 PM
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
I assume this only works on unix servers?

#149131 01/09/2002 3:15 PM
Joined: Dec 2001
Posts: 12
Junior Member
Junior Member
Offline
Joined: Dec 2001
Posts: 12
cool gonna install this l8r

#149132 01/09/2002 3:57 PM
Joined: Feb 2001
Posts: 251
Member
Member
Offline
Joined: Feb 2001
Posts: 251
Very COOL gonna install it asap

Sponsored Links
#149133 01/09/2002 4:53 PM
Joined: May 2000
Posts: 1,356
Addict
Addict
Joined: May 2000
Posts: 1,356
change .htpasswd to htpasswd.cgi for security. most of the servers will give this file unless it is protected. if you name it .cgi, most of the servers will generate an error message...

.htaccess is a standard name but htpasswd not. the password file's name can be anything.

Also, you can write

Code
[/code]

as

[code]


#149134 01/09/2002 5:58 PM
Joined: Apr 2001
Posts: 73
Member
Member
Offline
Joined: Apr 2001
Posts: 73
hmmm

i dont understand

What do you do with this hack ?

the htaccess = login member ?

euh ?


KillerBee

Bzzzzzzzz
#149135 01/10/2002 7:49 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
It requests the username + password to access the CGI-BIN dir, which includes ultimatebb.cgi and cp.cgi.

Nice hack, too bad I have a WinNT server.

#149136 01/10/2002 1:17 PM
Joined: Sep 2001
Posts: 46
Member
Member
Offline
Joined: Sep 2001
Posts: 46
did this work out?

'cos mine didn't
i couldn't login using my username and password.

and i think that the encoded password is wrong also. how can i fix this?

#149137 01/10/2002 2:26 PM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
jeologic - can you crack that encryption? smile


SubZero5 - what type of server are you using? also, make sure that the path you have set in your board configuration is the absolute path, not a relative path. on some servers you can run a ubb using a relative path in there, but this hack will not work if you have a relative path in your config.

Sponsored Links
#149138 01/10/2002 2:37 PM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
quote:
Originally posted by jordo:
jeologic - can you crack that encryption? smile

Jordo please check that http://www.webextractions.f2s.com/cgi-bin/makepass/password.cgi and tell me what you think, is the same system that you use ? (the script can be downloaded)

-Chuck


Do you believe in love at first sight,
or should I walk by again?
#149139 01/10/2002 2:46 PM
Joined: May 2000
Posts: 1,356
Addict
Addict
Joined: May 2000
Posts: 1,356
quote:
Originally posted by jordo:
jeologic - can you crack that encryption? smile



crypt() is a one way system for now. but you can not guarantee the future secure your system and you'll not have a headache...

#149140 01/10/2002 2:48 PM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
its similar, minescule differences. i was asking seriously, can you crack this encryption. im unfamiliar with what the crypt() routine uses.

#149141 01/10/2002 3:17 PM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
crypt() has been in use in Unix systems for decades.

It's secure.


UBB.classic: Love it or hate it, it was mine.
#149142 01/11/2002 12:51 PM
Joined: Sep 2001
Posts: 46
Member
Member
Offline
Joined: Sep 2001
Posts: 46
quote:
Originally posted by jordo:
SubZero5 - what type of server are you using? also, make sure that the path you have set in your board configuration is the absolute path, not a relative path. on some servers you can run a ubb using a relative path in there, but this hack will not work if you have a relative path in your config.



at my testing system: Win2kProf & apache 1.3.20 (win32)(server is on Fat32) with mod_perl/1.25_01-dev, mod_ssl/2.8.4, openssl/0.9.6a, php 4.1.1

the password file wasn't found it said. in the server logs...

and at hypermart 's server.. i couldn 't login..

[ 01-11-2002 11:53 AM: Message edited by: SubZero5 ]

#149143 01/11/2002 1:54 PM
Joined: Sep 2001
Posts: 46
Member
Member
Offline
Joined: Sep 2001
Posts: 46
found a bug..
found a bug..

if the $vars_config{BBName} sontains spaces, the .htaccess file doesn't work. gives a http 500 error (o similar thing like that..)

this is what apache gives me via its logs..:
quote:
.htaccess: AuthName takes one argument, The authentication realm (e.g. "Members Only")
-=> to fix this

* * * * * * * * * * * * * * * * * * * *
* open cp_lib.cgi and find..:
* * * * * * * * * * * * * * * * * * * *

$handle->print("AuthName $vars_config{BBName}n");

* * * * * * * * * * * * * * * * * * * *
* replace it with..:
* * * * * * * * * * * * * * * * * * * *

$handle->print("AuthName "$vars_config{BBName}"n");

[ 01-11-2002 01:04 PM: Message edited by: SubZero5 ]

#149144 01/11/2002 2:33 PM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
hmm i had fixed that one in the instructions, just hadnt put them back in the zip, doh. fixed in the zip now.

on your hypermart server you will need the absolute path set in your bb config, if you are getting failed pass msgs then you have a relative path set.

#149145 01/11/2002 5:24 PM
Joined: Jan 2002
Posts: 8
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 8
the hack work i have ni error

But if i clic on CANCER many time i can post an see topic and forum

Its normal ?

#149146 01/11/2002 5:42 PM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
that is not normal. clicking cancel or entering an incorrect pass 3 times should direct you to an access denied page. it sounds like your server is setup incorrectly, so i would suggest contacting your hosting company if you are on a hosted solution.

#149147 01/11/2002 6:28 PM
Joined: Jan 2002
Posts: 8
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 8
hmmmm

the hack create a .htaccess ??

#149148 01/12/2002 2:15 PM
Joined: Aug 2001
Posts: 11
Junior Member
Junior Member
Offline
Joined: Aug 2001
Posts: 11
so i am a little confused here!! yet again lol

does this hack work with win2k servers???

cos if it does why won't the pop-up window appear????

[ 01-12-2002 01:16 PM: Message edited by: swipecard72 ]

#149149 01/12/2002 3:08 PM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
this hack works on apache only (though there may be additions to other servers to add htaccess). that said im not sure how well htaccess works on win32 apache, but it doesnt work on IIS or any other servers than apache.

#149150 01/13/2002 7:56 AM
Joined: Aug 2001
Posts: 11
Junior Member
Junior Member
Offline
Joined: Aug 2001
Posts: 11
so is it posible to get httaccess for win2k servers and omnihttp as i am hosting on my own server

#149151 01/13/2002 8:37 PM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
im not entirely sure, but i doubt it...

#149152 01/14/2002 12:21 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Nice hack Jordo, I'll try it later.

#149153 01/14/2002 7:38 PM
Joined: Jan 2002
Posts: 8
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 8
hmmm

i reinstall the hack 3x and i have no error

I delete also tempory file internet and cookies
But when i come to login the htaccess show me a window and i clic on cancer many time and the page load



the file .htaccess is on cgi-bin directory
the file .htpasswd is on cgi-bin/Members directory

someone have same error of me ???

#149154 01/18/2002 2:59 PM
Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
I get this:

Backtrace: ubb_lib_filehandle.cgi:294 -> sub UBB::FileHandle::tracer
Backtrace: ubb_lib_filehandle.cgi:382 -> sub UBB::FileHandle::_open
Backtrace: ubb_lib_filehandle.cgi:67 -> sub UBB::FileHandle::_open_file
Backtrace: ubb_lib_filehandler.cgi:116 -> sub UBB::FileHandle::new
Backtrace: cp_lib.cgi:1110 -> sub UBB::FileHandler: shocked

#149155 01/18/2002 5:54 PM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
Variables - if you have a vars_htaccess.cgi in that dir make sure it is chmodded correctly (777) if not upload a blank file and chmod it.

#149156 01/18/2002 7:32 PM
Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
No, the same problem. chmod 777 on a blanc vars_htaccess.cgi

#149157 01/21/2002 10:50 PM
Joined: Sep 2001
Posts: 46
Member
Member
Offline
Joined: Sep 2001
Posts: 46
this is what my htaccess file looks like at hypermart..:[code][/code]and no it doesn't accept my password.

ps: i have members that have spaces in their login names. can it still be a problem if they try to log in?

[ 01-21-2002 09:56 PM: Message edited by: SubZero5 ]

#149158 01/22/2002 1:06 AM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
on hypermart you need the real absolute path, some things like ubb will run with the relative paths, but the full path is something like /data1/hypermart.net/yourusername/

#149159 01/23/2002 11:28 AM
Joined: Sep 2001
Posts: 46
Member
Member
Offline
Joined: Sep 2001
Posts: 46
thanks for the help laugh

by the way some of my members have spaces in their login names. will this affect their logins? will they have problems when they want to login?

and an addition..:
i would like to make people to login to my board via that login and password box. is it possible?

[ 01-23-2002 11:50 AM: Message edited by: SubZero5 ]

#149160 01/23/2002 3:15 PM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
quote:
Originally posted by SubZero5:
by the way some of my members have spaces in their login names. will this affect their logins? will they have problems when they want to login?

and an addition..:
i would like to make people to login to my board via that login and password box. is it possible?



spaces in names are fine. im not sure what you mean by the second question... do you mean have the htaccess log them into the board as well? if that is what you mean, then no, it cant work like that.

#149161 01/26/2002 1:45 PM
Joined: Jan 2002
Posts: 2
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 2
dear jordo,

i am unable to download your file ubbhtaccess.zip. do you have another url/ftp address?

also, my website requires the user to enter FIRST a member only area by entering their password into the popup controlled by htaccess, then enter the UBB SECOND. so i need the UBB login to accept the password from htaccess, not htaccess to accept the UBB login. will your proggy do this?

many thanks for help!

#149162 03/07/2002 6:17 AM
Joined: Mar 2002
Posts: 5
Junior Member
Junior Member
Offline
Joined: Mar 2002
Posts: 5
does it work without modifications for ubb 6.2.1 ??

thx in advance wink

#149163 03/08/2002 1:28 PM
Joined: Mar 2002
Posts: 5
Junior Member
Junior Member
Offline
Joined: Mar 2002
Posts: 5
quote:
Originally posted by clive:
does it work without modifications for ubb 6.2.1 ??

thx in advance wink

anyone?? confused

#149164 03/08/2002 3:42 PM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
it does on 6.2.0 so it should on 6.2.1...

#149165 03/08/2002 9:58 PM
Joined: May 2001
Posts: 13
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 13
Let me put a bit of a spin on this hack and ask this question: Can this hack be used to control access to HTML pages =other= than UBB? For example, my board is open for general viewing. I want to create pages for graphics tutorials for my members only. Can I use the hack to allow access to these pages for members only? What I ultimately want is for the member to type in their UBB L/P into the htaccess popup and then be directed to the appropriate tutorial page. (which would not even be a part of UBB)

#149166 03/08/2002 11:17 PM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
this puts a .htaccess file in the non-cgi directory, so any files in that directory will be protected by the htaccess password popup. that includes any html pages in that dir.

#149167 03/09/2002 9:58 AM
Joined: May 2001
Posts: 13
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 13
Thanks for the quick reply, sir! I'm going to give it a whirl. smile

Page 1 of 2 1 2

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)