Local users forced password change problem

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
PBbreak
Posts: 6
Joined: Wed Nov 10, 2010 3:31 am

Local users forced password change problem

Post by PBbreak »

Hello All,

We recently started to use LDAP to authenticate some users, but after activating LDAP, forced password change page is not displayed for local users, they directly login to their monitoring page.

Is there something we are missing or there is a bug on Cacti. Anybody have an idea?

PB
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Local users forced password change problem

Post by phalek »

Forced Password Change as well as the genreal password change feature is not available when using LDAP authentication. Cacti does not offer any method/functionality to actually update the LDAP information, it only implements a Read-only access to LDAP
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
PBbreak
Posts: 6
Joined: Wed Nov 10, 2010 3:31 am

Re: Local users forced password change problem

Post by PBbreak »

Thanks phalek but we do not want LDAP authenticated users to change their password using Cacti. We have two type of authentication now, LDAP for users to login with their own credentials, and some local accounts for groups. We only want locally created users(whom passwords are stored locally in Cacti db) to change their password. It was possible before activating LDAP.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Local users forced password change problem

Post by phalek »

Got it, then I assume this functionality has been disabled un-intentionally for local users, too. It's probably disabled globally when changing the auth mode from local to ldap ...

you can change this behaviour by editing the file auth_login.php: and change the lines 184 to 189 to this:

Code: Select all

/* handle "force change password" */
if (($user["must_change_password"] == "on") && ( (read_config_option("auth_method") == 1) || (get_request_var_post("realm") == "local") ) ) {
  $_SESSION["sess_change_password"] = true;
}
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
PBbreak
Posts: 6
Joined: Wed Nov 10, 2010 3:31 am

Re: Local users forced password change problem

Post by PBbreak »

Phalek, thank you so much. Forced password change is now working as expected for local users and no problem at LDAP authentication.

PB
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests