vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - [OzzModz] ACP Authentication (https://vborg.vbsupport.ru/showthread.php?t=312555)

ozzy47 06-28-2014 10:00 PM

[OzzModz] ACP Authentication
 
Another mod brought to you by,
https://vborg.vbsupport.ru/external/2015/01/1.png

This is a small mod that will allow admins to set up htaccess login for their ACP, without file edits, or cpanel.

It is a simple installation, just import the product XML, ozzmodz_secure_acp

You can edit the options under the settings, [OzzModz] ACP Authentication Settings

Once you set up the options, you can then share the username and password with all your members that are allowed to access the ACP.

Note: If you forget the username or the password, or have a problem logging in, just add the following to the includes/config.php right below the <?php tag :
PHP Code:

define('DISABLE_HOOKS'true); 

Then you can assess your ACP, and make the necessary adjustments to the mods settings, then remove that line from the includes/config.php

Note: If you have never edited your includes/config.php before, please read this first, Editing Your config.php File

First screenshot is what the log in box looks like.
Second screenshot is what the settings look like.
Third screenshot is what the error message looks like if the users presses cancel.

Complete Feature List
  • Option to disable the mod completely.
  • Option to set what the login username will be.
  • Option to set what the login password will be.

Frequently Asked Questions.

Q. Why do I need this mod?

A. This just adds a extra layer of security to your ACP, by asking for a additional username and password, in order to log in to it. Sure you can do this with file edits or in cpanel, but why bother, this makes it simple.

Q. Why did you make this mod?

A. It was something I was doing by editing the admincp/index.php file, but I would always forget to make the changes when I updated the site.

-------------------------------------------------------------------------------------------

If you like this mod please hit the https://vborg.vbsupport.ru/external/2015/08/1.png button to the right ---->

Please remember to click the, https://vborg.vbsupport.ru/external/2015/08/2.png button to the right if you installed the mod ---->

What does 'Marking As Installed' do ?

* It helps you to stay on top of updates - members who have installed modifications will be notified whenever new updates are available.

* For security issues - vbulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention.

* Marking a modification as installed also helps me know how many people are using my work, giving me extra incentive to provide more features and new modifications.

I appreciate the support!
-------------------------------------------------------------------------------------------

v1.0.0 Initial release. (6-29-14)

ozzy47 06-29-2014 06:55 PM

Reserved.

Firyou 06-29-2014 08:17 PM

This worked perfectly, thanks a lot ozzy! Very easy adding another layer of security to the site :)

installed and marked

ozzy47 06-29-2014 08:19 PM

Glad you like it, and thanks for marking as installed. :)

Alan_SP 06-29-2014 10:59 PM

Just to ask, this is another layer of security beside .htaccess? So we could set two additional passwords, one with your mod and one with .htaccess?

ozzy47 06-29-2014 11:01 PM

I have not tried that yet, not sure how it would work. Perhaps you can try it out and let us know. :)

Justinphx 06-30-2014 12:03 AM

Very nice Ozzy. This is a nice mod in addition to your ACP IP verification mod. Thanks.

ozzy47 06-30-2014 12:10 AM

Thanks, glad you like it, and thanks for marking as installed. :)

Max Taxable 06-30-2014 12:22 AM

Quote:

Originally Posted by ozzy47 (Post 2504547)
Thanks, glad you like it, and thanks for marking as installed. :)

HTML Code:

Warning: Illegal string offset 'do' in ..../includes/functions_online.php on line 516

ozzy47 06-30-2014 12:39 AM

Where are you seeing that error?

Max Taxable 06-30-2014 01:20 AM

Quote:

Originally Posted by ozzy47 (Post 2504553)
Where are you seeing that error?

On your own site in WOL. :D

ozzy47 06-30-2014 01:24 AM

Yeah that is not from this mod, I have noticed it occasionally, but have not been able to track it down, as it appears sporadically.

Bluemax712 06-30-2014 02:05 AM

Worked good on a 4.2.0 test system by itself

but when combining with the regular apache .htaccess file
it got hung in a loop when entering a bad password

The Apache error log kept logging this repeatedly:

authentication failure for ".../admincp/options.php": Password Mismatch,
referer: http://.../admincp/options.php?do=dooption

ozzy47 06-30-2014 02:07 AM

Yeah I kinda figured it would not work with regular htaccess. Thanks for testing it out. :)

LLent 07-02-2014 12:18 AM

Very nice Ozzy thanks for this

hope all is well

RichieBoy67 07-02-2014 12:39 AM

This makes things easy! Nice work Ozzy! I hate setting up htaccess passwords.

ozzy47 07-02-2014 07:34 PM

Quote:

Originally Posted by LLent (Post 2504801)
Very nice Ozzy thanks for this

hope all is well

Thanks, things are ok for now.

Quote:

Originally Posted by RichieBoy67 (Post 2504802)
This makes things easy! Nice work Ozzy! I hate setting up htaccess passwords.

Glad us like it, and thanks for marking as installed. :)

obglobal.net 07-21-2014 12:50 PM

It wants my new PW every 5 seconds. Followed the guidelines to a T.

Bummer

ozzy47 07-21-2014 12:59 PM

Quote:

Originally Posted by obglobal.net (Post 2507612)
It wants my new PW every 5 seconds. Followed the guidelines to a T.

Bummer

Are you sure you don't have some other form of .htaccess running as well? Perhaps a file edit or cpanel.

obglobal.net 07-21-2014 11:06 PM

Quote:

Originally Posted by ozzy47 (Post 2507615)
Are you sure you don't have some other form of .htaccess running as well? Perhaps a file edit or cpanel.

I do, but wasn't aware it'd be an issue. It's all good. I'll just burn it.

Thanks as always, Ozzy

obglobal.net 07-21-2014 11:11 PM

Well, I managed to do that by myself, so I'll consider the entire process a victory.

ozzy47 07-21-2014 11:15 PM

So you decided to do the protection without the mod?

obglobal.net 07-22-2014 12:05 AM

Quote:

Originally Posted by ozzy47 (Post 2507708)
So you decided to do the protection without the mod?

Not sure what you mean, man. I just flicked the mod off in the ACP

ozzy47 07-22-2014 12:10 AM

Right, the mod is off, but you are still using the other .htaccess protection you had in place instead of the mod.

obglobal.net 07-22-2014 01:15 AM

yes. cheerz

ozzy47 07-23-2014 08:18 PM

So what way are you doing the authentication?

ahobilam 09-18-2014 03:33 AM

Quote:

Once you set up the options, you can then share the username and password with all your members that are allowed to access the ACP.
Is it not danger to giving access to ACP for members?
How to Give access for few items only at ACP?
Is there a way to allow Super Moderators to manage only the USERS and its sub menu under ACP?
Thanks in advance.

ozzy47 09-18-2014 09:24 AM

Quote:

Originally Posted by ahobilam (Post 2515576)
Is it not danger to giving access to ACP for members?
How to Give access for few items only at ACP?
Thanks in advance.

Once you set up the options, you can then share the username and password with all your members that are allowed to access the ACP. Meaning any administrators. :)

Quote:

Originally Posted by ahobilam (Post 2515576)
Is there a way to allow Super Moderators to manage only the USERS and its sub menu under ACP?
Thanks in advance.

Not with this mod, this is just for securing your ACP, not adding any functionality. :)

ahobilam 09-18-2014 11:49 AM

Thanks for the response.
Quote:

Not with this mod, this is just for securing your ACP, not adding any functionality
Can you suggest any other Mod for this purpose?
Thanks

LLent 09-20-2014 01:08 PM

hey ozzy any chance you can make this individual so each admin can put there own password for this ???

Alan_SP 09-21-2014 12:22 AM

Quote:

Originally Posted by ahobilam (Post 2515607)
Can you suggest any other Mod for this purpose?

Create usergroup with admin privileges allowed, but give them only access to users' options when you put someone in that usergroup. Would this be OK for you?

ahobilam 09-21-2014 05:36 AM

Thanks for the response.
I tried with Admin privileges,
but it is allowing for everything but not allowing to edit the user profile.
https://dl.dropboxusercontent.com/u/...ermissions.jpg

alcazarx 09-21-2014 06:48 PM

Quote:

Originally Posted by LLent (Post 2515923)
hey ozzy any chance you can make this individual so each admin can put there own password for this ???

Me is not ozzy, but maybe allowed to answer too :rolleyes:

It would be possible, even without an extra login like this nice, awesome mod (*hint hint*).
Have seen this in an old CMS where Administrators had 2 passwords, one for the frontend and one for backend.
So theory is, to add another password field in the db (can be NULL or '' or something for non-admins) and change the login-function to check if user wants to login to ModCP/AdminCP, if yes use the second password field for authentication.
This password could be changed in the UserCP (only displayed for Mods/Admins).

Thanks.

Alan_SP 09-21-2014 08:34 PM

Quote:

Originally Posted by ahobilam (Post 2515987)
Thanks for the response.
I tried with Admin privileges,
but it is allowing for everything but not allowing to edit the user profile.

Maybe I wasn't clear in my explanation.

You need to create new usergroup. This usergroup should have admin privileges set to yes, i.e. like you made new type of admins.

After that, when you promote someone into this usergroup, give it only access to certain areas of ACP. Some areas goes by default, but many don't.

I didn't meant to suggest that you edit permissions already allowed to supermoderators. Also, there's permission for making certain usergroup supermoderator usergroup. In same group of permissions you make admin's usergroup. Actually, in that group of permissions there are only these two options.

DreadsUK 10-27-2014 11:52 AM

If i've lost the password, where can i find it in the ftp? thanks

ozzy47 10-27-2014 12:11 PM

Note: If you forget the username or the password, or have a problem logging in, just add the following to the includes/config.php right below the <?php tag :
PHP Code:

define('DISABLE_HOOKS'true); 

Then you can assess your ACP, and make the necessary adjustments to the mods settings, then remove that line from the includes/config.php

Note: If you have never edited your includes/config.php before, please read this first, Editing Your config.php File

DreadsUK 10-27-2014 12:12 PM

Quote:

Originally Posted by ozzy47 (Post 2520214)
Note: If you forget the username or the password, or have a problem logging in, just add the following to the includes/config.php right below the <?php tag :
PHP Code:

define('DISABLE_HOOKS'true); 

Then you can assess your ACP, and make the necessary adjustments to the mods settings, then remove that line from the includes/config.php

Note: If you have never edited your includes/config.php before, please read this first, Editing Your config.php File

thats already in there for some reason. still wont let me access without the password tho :(

ozzy47 10-27-2014 12:17 PM

Then it is not from this mod, you must have some other authentication going on.

But you can check the setting table, the settings, ozzmodz_secure_acp_username
and ozzmodz_secure_acp_password

DreadsUK 10-27-2014 06:15 PM

Quote:

Originally Posted by ozzy47 (Post 2520218)
Then it is not from this mod, you must have some other authentication going on.

But you can check the setting table, the settings, ozzmodz_secure_acp_username
and ozzmodz_secure_acp_password

managed to remember the password and it is this mod.

at the top of config is says this

Code:

<?php
//define('DISABLE_HOOKS', true);


ozzy47 10-27-2014 06:18 PM

Well yeah, the two // means that line is commented out, thus not disabling your mods. :)


All times are GMT. The time now is 07:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01501 seconds
  • Memory Usage 1,830KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete