|
|
| Author |
Message |
caio.cesar
Joined: 08 Oct 2008 Posts: 21 Location: Brazil
|
Posted: Tue Nov 11, 2008 6:59 am Post subject: Problem with LDAP |
|
|
I started LDAP service on cacti and when I try to log on the web console, the following error appears:
Fatal error: Call to undefined function: ldap_connect() in /var/www/html/auth_login.php on line 35
Can someone help me?
tks!
ps.: I added my LDAP server on that line 35... but I still got the same problem...
| Description: |
| here you can see the config in the AUTH. page... |
|
| Filesize: |
68.1 KB |
| Viewed: |
390 Time(s) |

|
| Description: |
| /var/www/html/auth_login.php |
|
 Download |
| Filename: |
auth.txt |
| Filesize: |
7.83 KB |
| Downloaded: |
8 Time(s) |
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9736 Location: MI, USA
|
Posted: Tue Nov 11, 2008 7:55 am Post subject: |
|
|
You either don't have the PHP-LDAP module installed or it is not built/configured correctly.
Create file called "phpinfo.php", place it in the root of Cacti. Here is the contents:
<?php phpinfo(); ?>
Point your browser to it http://<myCactiHost>/cacti/phpinfo.php
And look for the LDAP module. Once you are done, remove/delete that file.
TheWitness
|
|
| Back to top |
|
 |
caio.cesar
Joined: 08 Oct 2008 Posts: 21 Location: Brazil
|
Posted: Tue Nov 11, 2008 8:30 am Post subject: Php info |
|
|
I couldn't find anything from LDAP...
| Description: |
|
 Download |
| Filename: |
phpinfo.zip |
| Filesize: |
7.39 KB |
| Downloaded: |
9 Time(s) |
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12635 Location: Muenster, Germany
|
Posted: Tue Nov 11, 2008 3:53 pm Post subject: |
|
|
Then,
yum install php-ldap or
apt-get sth
or the like is required
Reinhard
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9736 Location: MI, USA
|
Posted: Tue Nov 11, 2008 4:05 pm Post subject: |
|
|
| gandalf wrote: | Then,
yum install php-ldap or
apt-get sth
or the like is required
Reinhard |
Don't make it too easy. People should "think" first
TheWitness
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12635 Location: Muenster, Germany
|
Posted: Tue Nov 11, 2008 4:18 pm Post subject: |
|
|
| TheWitness wrote: | People should "think" first  | Think, think?
Just out of curiosity, non-native speaker here, what was just the meaning of this strange word?
Not wanting to offend anyone. Just not liking to answer twice on one question
Reinhard
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9736 Location: MI, USA
|
Posted: Tue Nov 11, 2008 7:34 pm Post subject: |
|
|
| gandalf wrote: | | TheWitness wrote: | People should "think" first  | Think, think?
Just out of curiosity, non-native speaker here, what was just the meaning of this strange word?
Not wanting to offend anyone. Just not liking to answer twice on one question
Reinhard |
I'll have to think about this for a while, before answering. It may take a long time...
TheWitness
|
|
| Back to top |
|
 |
caio.cesar
Joined: 08 Oct 2008 Posts: 21 Location: Brazil
|
Posted: Wed Nov 12, 2008 8:01 am Post subject: |
|
|
Thank you gandalf, I had already installed this package... It's kind of working now.
I was posting in here just to get some help, sorry if I caused some kind of problem 4 you guys...
The problem is: when I log in with the user specified at LDAP DN, it connects successfully (then I just had to give him some permissions, no problem about that). But when I try to connect with any other user from my Active Directory Domain, cacti gives me this answer:
"Invalid User Name/Password Please Retype"
(sure, the password and the user are ok)
The major problem is, that I could only log in with local users and the user specified at LDAP DN... When I try to log in with other user domain, it doesn't even appears at "User Management"...
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9736 Location: MI, USA
|
Posted: Wed Nov 12, 2008 10:20 am Post subject: |
|
|
There are some special characters in passwords that currently do not work in 0.8.7b--. However, I have fixed this in the 0.8.7c code to be released soon. The fix is currently not in the Beta1, but is in SVN.
TheWitness
|
|
| Back to top |
|
 |
caio.cesar
Joined: 08 Oct 2008 Posts: 21 Location: Brazil
|
Posted: Wed Nov 12, 2008 12:11 pm Post subject: |
|
|
| ok! I'll try with a simple password... tks!
|
|
| Back to top |
|
 |
caio.cesar
Joined: 08 Oct 2008 Posts: 21 Location: Brazil
|
Posted: Wed Nov 12, 2008 12:45 pm Post subject: |
|
|
yeah, that's it: special caracters.
tks all!
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12635 Location: Muenster, Germany
|
Posted: Wed Nov 12, 2008 4:22 pm Post subject: |
|
|
| caio.cesar wrote: | | I was posting in here just to get some help, sorry if I caused some kind of problem 4 you guys... | Hey, guy. Let's have some fun!
Again, not meaning to offend anyone, and I've seen threads that "outperform" yours by a magnitude (to the wrong side, hehehe). And your problem was indeed a _real_ one.
Always welcome
Reinhard
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9736 Location: MI, USA
|
Posted: Wed Nov 12, 2008 7:00 pm Post subject: |
|
|
| gandalf wrote: | | caio.cesar wrote: | | I was posting in here just to get some help, sorry if I caused some kind of problem 4 you guys... | Hey, guy. Let's have some fun!
Again, not meaning to offend anyone, and I've seen threads that "outperform" yours by a magnitude (to the wrong side, hehehe). And your problem was indeed a _real_ one.
Always welcome
Reinhard |
I agree with the White Wizard, although I think he only remembers one life, that we would rather see someone making intelegent requests. He has much more patience than I. And as stated, yours was a real request.
My Tagline should give you some idea of what I due to people with simple (for a lack of a better/more appropriate word/phrase) questions. I attempt to get them to think.
TheWitness
|
|
| Back to top |
|
 |
|