“Ldap”的版本间的差异
来自Alex's wiki
(→安装php-ldap扩展) |
(→安装php-ldap扩展) |
||
第11行: | 第11行: | ||
{SSHA}Tt7VVYAJAwrwN0IKEf14j5Lj1BXO2U9k<br /> | {SSHA}Tt7VVYAJAwrwN0IKEf14j5Lj1BXO2U9k<br /> | ||
− | ==安装php- | + | ==安装php-ldap扩展(这是基于LNMP里的PHP的扩展,LDAP未用到)== |
[http://www.sijitao.net/1851.html 不重新编译为PHP增加LDAP模块的支持] | [http://www.sijitao.net/1851.html 不重新编译为PHP增加LDAP模块的支持] | ||
<source lang=bash> | <source lang=bash> | ||
第25行: | 第25行: | ||
vi /usr/local/php/etc/php.ini | vi /usr/local/php/etc/php.ini | ||
#然后添加 extension = "ldap.so" | #然后添加 extension = "ldap.so" | ||
+ | </source> | ||
+ | |||
+ | ==PHPLDAPADMIN配置== | ||
+ | <source lang=bash> | ||
+ | Listen 8011 | ||
+ | <VirtualHost *:8011> | ||
+ | ServerName openldap.imback.net | ||
+ | DocumentRoot /usr/share/phpldapadmin | ||
+ | Alias /phpldapadmin /usr/share/phpldapadmin/htdocs | ||
+ | Alias /ldapadmin /usr/share/phpldapadmin/htdocs | ||
+ | |||
+ | <Directory /usr/share/phpldapadmin/htdocs> | ||
+ | Order Deny,Allow | ||
+ | Allow from all | ||
+ | Allow from 127.0.0.1 192.168.1.0/24 | ||
+ | Allow from ::1 | ||
+ | </Directory> | ||
+ | </VirtualHost> | ||
</source> | </source> |
2016年12月10日 (六) 04:28的版本
OpenLDAP学习笔记
CentOS 5.5 安装记录 - (7) LDAP安装和基本配置
Centos6 yum安装openldap+phpldapadmin+TLS+双主配置
LDAP管理工具:phpLDAPadmin 的安装配置
yum install openldap openldap-servers openldap-clients openldap-devel compat-openldap --setopt=protected_multilib=false
passwd
{SSHA}Tt7VVYAJAwrwN0IKEf14j5Lj1BXO2U9k
安装php-ldap扩展(这是基于LNMP里的PHP的扩展,LDAP未用到)
cd /home/package/lnmp/lnmp1.2-full/src/php-5.5.25/ext/ldap /usr/local/php/bin/phpize cp -frp /usr/lib64/libldap* /usr/lib/ ./configure -with-ldap -with-php-config=/usr/local/php/bin/php-config make make install ls -l /usr/local/php/lib/php/extensions/no-debug-non-zts-20121212/ vi /usr/local/php/etc/php.ini #然后添加 extension = "ldap.so"
PHPLDAPADMIN配置
Listen 8011 <VirtualHost *:8011> ServerName openldap.imback.net DocumentRoot /usr/share/phpldapadmin Alias /phpldapadmin /usr/share/phpldapadmin/htdocs Alias /ldapadmin /usr/share/phpldapadmin/htdocs <Directory /usr/share/phpldapadmin/htdocs> Order Deny,Allow Allow from all Allow from 127.0.0.1 192.168.1.0/24 Allow from ::1 </Directory> </VirtualHost>