2012年(30)
分类:
2012-04-21 19:54:05
原文地址:cacti使用OpenLDAP认证 作者:ning_lianjie
若要实现cacti的OpenLDAP认证,需要php的支持,在编译php的时候添加--with-ldap
如果是rpm安装的php,则可以尝试yum install php-ldap
yum install php-ldap
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package php-ldap.x86_64 0:5.1.6-27.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
php-ldap x86_64 5.1.6-27.el5 base 38 k
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 38 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): php-ldap-5.1.6-27. 100% |=========================| 38 kB 00:01
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: php-ldap ######################### [1/1]
Installed: php-ldap.x86_64 0:5.1.6-27.el5
Complete!
然后重启httpd服务,使其支持php-ldap
/etc/init.d/httpd restart
以下内容是在cacti中的配置
uid=
dc=dh,dc=cn
(&(objectClass=account)(uid=
修改后如果出现不能登陆的问题
可以尝试下面的方法:
用户认证问题,解决办法
mysql
use cacti
update settings set value=1 where name='auth_method';
其效果就是将“登录认证”的方式,改成基本认证。