那些人/那些事…
如何在Debian中安装phpLDAPadmin
phpLDAPadmin是一款LDAP服务器的前端管理工具,它支持的LDAP产品包括OpenLDAP、MS ActiveDirectory、novell eDirectory和Sun Directory等,不过后三者都是商业软件,套件中已经提供了相当完善的前端管理工具,所以phpLDAPadmin还是跟OpenLDAP比较搭调。它的主要功能包括:
- LDAP tree browser (see screenshots)
- Template-based entry editing
- Copy LDAP entries (even copy between different servers)
- Recursively copy entire trees
- Delete LDAP entries
- Recursively delete entire trees
- View and edit image attributes (like jpegPhoto)
- Advanced LDAP schema browser
- Template-based entry creation
- LDAP searches (both simple and advanced)
- LDIF and DSML export
- LDIF import
- Rename LDAP entries
- Manage user password hashes (supports sha, crypt, md5, blowfish, md5crypt)
- Browse RootDSE LDAP information
- Automagically determine your LDAP server’s root DN
- Configurable authentication (anonymous, web login, or static)
- Friendly attribute translation (ie, display "Fax" instead of "facsimileTelephoneNumber")
- Binary attribute support
- Configurable support for aliases and referrals
- Automatically increment UID numbers
- Hyperlinks for mailto and href attribute values.
- Configurable read-only and read/write modes.
- Robust i18n support
- Available in 10 languages
phpLDAPadmin是一个网络应用程序,采用的编程语言是php,因而需要事先安装好Apache2、php5和openLDAP。本文假设已安装好apache2、php5和LDAP服务器,其IP: 192.168.100.1,LDAP服务器的管理员帐号为:cn=admin,dc=darkblue,dc=com
一、安装:
phpLDAPadmin需要用到apache2和php5-ldap和libapache2-mod-php5这三个组件,如果没有事先安装apache2和php5的话也没关系,Debian的包管理系统会帮你搞定它们的依赖关系。
alfie@server:~ # aptitude install phpldapadmin 接着将会出现配置对话框: "Which type of authentication you want to use?" : session 说明:session是三中方式中最安全的,因为ldap里面的信息很敏感,故选择该方式。 "Which web server would you like to reconfigure automatically?" : Apache2 only 说明:因为我们只安装了apache2这个软件包,故选择apache2 "Would you like to restart your webserver(s) now?" : yes 说明:安装phpLDAPadmin后,将会在/etc/apache2/conf.d/中生成一个链接: phpldapadmin ----> /etc/phpldapadmin/apache.conf 需要重启apache2才能使该配置文件生效
二、配置:
在Debian Etch中,apache2的配置有点特别,最主要的配置文件是/etc/apache2/apache2.conf,不再是httpd.conf,另外增加了好几个目录,例如conf.d和sites-available等,事实上是将一个大配置文件httpd.conf分解成多个小文件,按不同的功能放置到各个目录中;并由apache2取代httpd.conf,apache2.conf除了定义全局设置外,还有一个重要的作用就是“引用 ”(include)这些小文件,从而达到灵活配置的目的。
因为apache2.conf默认就已经include /etc/apache2/conf.d/,而该目录下有一个链接phpldapadmin指向/etc/phpldapadmin/apache.conf,如果没有特别的要求,保持默认的配置就可以了。至此配置完毕。
三、使用
在浏览器中输入http://192.168.100.1/phpldapadmin就可以访问OpenLDAP了。
| 打印文章 | 这篇文章由alfie于2008年10月25日 00:54发表在Debian。你可以订阅RSS 2.0 也可以发表评论或引用到你的网站。 |