架设LDAPweb界面YALA
tar xjvf yala-0.32.tar.bz2
1.cp config.inc.php.example config.inc.php
2 . vi config.inc.php 在这一行改成自己yala所在的路径
define("UNIX_PATH", "/usr/local/apache/htdocs/yala");
3 .cp conf.d/ldap-servers.inc.php.example conf.d/ldap-servers.inc.php
define("LDAP_SERVER", "192.168.2.13"); 改成LDAP服务器的IP或者名字
define("LDAP_PORT", "389"); LDAP开放的端口
define("LDAP_BASEDN", "dc=examble,dc=com"); LDAPBASE
define("LDAP_BINDDN", "cn=root,dc=examble,dc=com");LDAPBASEDN
# No good reason to use LDAPv2, unless an old PHP or LDAP Server
define("LDAP_VERSION", "3");LDAP的版本,现在都是版本3了。
# Use TLS to encrypt the ldap connection. Must be supported by server.
define("LDAP_TLS", FALSE);
4 . cp entry_type-config.inc.php.example entry_type-config.inc.php 新建用户需要这个文件
5 . cp conf.d/attr_desc-config.inc.php.example conf.d/attr_desc-config.inc.php
6 . 如果界面出现乱码的话,首先看http.conf文件,再看yala/include/header.inc,改 charset=utf-8
以上是我在centos4.4的版本上做得,我本来 httpdphp是用rpm方式安装的,后来YALA显示不出来,就改用源代码安装httpphp,就可以显示了,可能是版本不兼容吧!!
注意:如果httpd使用rpm装的话,就要装php-ldap包,如果是编译的话,就要加上--with-ldap=prefix