Notice: Undefined index: ldap_enabled

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
fog
Posts: 4
Joined: Tue Sep 30, 2003 2:46 pm

Notice: Undefined index: ldap_enabled

Post by fog »

I get this message plastered across the top of the main page:

Notice: Undefined index: ldap_enabled in /home/httpd/htdocs/cacti2/include/functions.php on line 100

If I try to log in, the message is repeated once more, and whatever username / password I provide is rejected. This is really irritating me; do I need to include LDAP support somehow? (I can't find a reference to LDAP anywhere?)

Can someone help me along? This is driving me nuts.
eta0h

Exact same for me

Post by eta0h »

I am seeing the exact same thing here.

Let me know if you manage to figure it out.

eta
fog
Posts: 4
Joined: Tue Sep 30, 2003 2:46 pm

Post by fog »

Still no idea what's going on. But out of curiosity, what are you running it on? I'm using Apache2 on Gentoo; if you're running the same, it might be a more isolated issue that we're seeing?
eta0h

Post by eta0h »

I too am running Gentoo (linux-2.4.20-gentoo-r7), Apache2 - 2.0.47, php-4.3.3 and Cacti 0.8.3a.

I installed Apache via Portage and compiled cacti and php myself.
I suspect you are correct in that it is an isolated issue. Im looking forward to understanding what that might be.

Regards,
eta
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Try running the following SQL on your Cacti database:

Code: Select all

INSERT INTO `settings` VALUES ('ldap_enabled', '');
Just a side note, you should not receive this error in 0.8.4 whether you have this setting or not. This error was any oversight in my array checking code.

-Ian
eta0h

Post by eta0h »

rax
First off thanks for the help! Now, what am I doing wrong here?

Code: Select all

mysql> use cacti
Database changed
mysql> INSERT INTO `settings` VALUES ('ldap_enabled', '');
ERROR 1136: Column count doesn't match value count at row 1
Regards,
eta
eta0h

Post by eta0h »

Using a MySQL Gui tool, I managed to insert ldap_enabled into the VALUES colum of the settings table. That got rid of the error I was seeing at the login prompt, but not the fact that I can't login. Now any username/paswd combo I submit gets rejected as a bad username password.

Any suggestions are appreciated.
eta
fog
Posts: 4
Joined: Tue Sep 30, 2003 2:46 pm

Post by fog »

Ugh. Initially installing the ancient Gentoo version, then trying to upgrade the web side to the latest one doesn't seem to work out so great.

I'm 'caught up' with eta now -- no more ldap errors, but I still can't log in, even if I try to cheat and manually add users.

(The SQL error was because the table you're inserting into actually has about half a dozen fields. MySQL apparently insists that you put '' for each of them, not leave them blank. Using phpmyadmin and doing it by hand works well :))
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

What does Cacti do that doesn't allow you to login? Does it redirect you back to the login page or does it give you some sort of "access denied" message?

The "endless" login redirect problems used to be because the user had PHP's register_globals turned off. The newer 0.8.x versions of Cacti do not require this though. Just for reference, the Gentoo version would have this problem, so make sure you stay away from that.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests