特殊:Badtitle/NS100:InstallingphpLDAPadmin:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第7行: | 第7行: | ||
== Configuration == | == Configuration == | ||
You've several choices when it comes to configuring phpldapadmin. You can use the included apache script (/etc/phpldapadmin/apache.conf), or you can copy /usr/share/phpldapadmin to you webroot, in which case you can have multiple installations. Here I describe the latter. | You've several choices when it comes to configuring phpldapadmin. You can use the included apache script (/etc/phpldapadmin/apache.conf), or you can copy /usr/share/phpldapadmin to you webroot, in which case you can have multiple installations. Here I describe the latter. | ||
Make a copy of the installation directory | Make a copy of the installation directory <pre><nowiki> | ||
<pre><nowiki> | |||
cp /usr/share/phpldapadmin /var/www/myphpldapadmin | cp /usr/share/phpldapadmin /var/www/myphpldapadmin | ||
</nowiki></pre> | </nowiki></pre> | ||
Since we're setting up for multiple installs, we'll give each one a different config file | Since we're setting up for multiple installs, we'll give each one a different config file<pre><nowiki> | ||
<pre><nowiki> | |||
cp /etc/phpldapadmin/config.php /etc/phpldapadmin/first.config.php | cp /etc/phpldapadmin/config.php /etc/phpldapadmin/first.config.php | ||
rm /var/www/myphpldapadmin/config/config.php | rm /var/www/myphpldapadmin/config/config.php | ||
第18行: | 第16行: | ||
chmod +r /etc/phpldapadmin/first.config.php | chmod +r /etc/phpldapadmin/first.config.php | ||
</nowiki></pre> | </nowiki></pre> | ||
Now customize the config file. You'll probably need to change the following lines: | Now customize the config file. You'll probably need to change the following lines:<pre><nowiki> | ||
<pre><nowiki> | |||
$config->custom->session['blowfish'] = ''; //Add a random string for encryption purposes | $config->custom->session['blowfish'] = ''; //Add a random string for encryption purposes | ||
$ldapservers->SetValue($i,'server','name','My LDAP Server'); // The name to display | $ldapservers->SetValue($i,'server','name','My LDAP Server'); // The name to display |
2007年12月6日 (四) 10:38的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/InstallingphpLDAPadmin }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/af | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|Afrikaans| [[::InstallingphpLDAPadmin/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/ar | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|العربية| [[::InstallingphpLDAPadmin/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/az | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|azərbaycanca| [[::InstallingphpLDAPadmin/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/bcc | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|جهلسری بلوچی| [[::InstallingphpLDAPadmin/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/bg | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|български| [[::InstallingphpLDAPadmin/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/br | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|brezhoneg| [[::InstallingphpLDAPadmin/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/ca | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|català| [[::InstallingphpLDAPadmin/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/cs | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|čeština| [[::InstallingphpLDAPadmin/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/de | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|Deutsch| [[::InstallingphpLDAPadmin/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/el | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|Ελληνικά| [[::InstallingphpLDAPadmin/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/es | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|español| [[::InstallingphpLDAPadmin/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/fa | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|فارسی| [[::InstallingphpLDAPadmin/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/fi | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|suomi| [[::InstallingphpLDAPadmin/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/fr | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|français| [[::InstallingphpLDAPadmin/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/gu | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|ગુજરાતી| [[::InstallingphpLDAPadmin/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/he | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|עברית| [[::InstallingphpLDAPadmin/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/hu | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|magyar| [[::InstallingphpLDAPadmin/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/id | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|Bahasa Indonesia| [[::InstallingphpLDAPadmin/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/it | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|italiano| [[::InstallingphpLDAPadmin/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/ja | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|日本語| [[::InstallingphpLDAPadmin/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/ko | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|한국어| [[::InstallingphpLDAPadmin/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/ksh | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|Ripoarisch| [[::InstallingphpLDAPadmin/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/mr | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|मराठी| [[::InstallingphpLDAPadmin/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/ms | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|Bahasa Melayu| [[::InstallingphpLDAPadmin/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/nl | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|Nederlands| [[::InstallingphpLDAPadmin/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/no | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|norsk| [[::InstallingphpLDAPadmin/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/oc | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|occitan| [[::InstallingphpLDAPadmin/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/pl | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|polski| [[::InstallingphpLDAPadmin/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/pt | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|português| [[::InstallingphpLDAPadmin/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/ro | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|română| [[::InstallingphpLDAPadmin/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/ru | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|русский| [[::InstallingphpLDAPadmin/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/si | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|සිංහල| [[::InstallingphpLDAPadmin/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/sq | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|shqip| [[::InstallingphpLDAPadmin/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/sr | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|српски / srpski| [[::InstallingphpLDAPadmin/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/sv | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|svenska| [[::InstallingphpLDAPadmin/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/th | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|ไทย| [[::InstallingphpLDAPadmin/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/tr | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|Türkçe| [[::InstallingphpLDAPadmin/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/vi | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|Tiếng Việt| [[::InstallingphpLDAPadmin/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/yue | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|粵語| [[::InstallingphpLDAPadmin/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/zh | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|中文| [[::InstallingphpLDAPadmin/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/zh-hans | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|中文(简体)| [[::InstallingphpLDAPadmin/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingphpLDAPadmin | UbuntuHelp:InstallingphpLDAPadmin | {{#if: | :}}InstallingphpLDAPadmin}}/zh-hant | • {{#if: UbuntuHelp:InstallingphpLDAPadmin|中文(繁體)| [[::InstallingphpLDAPadmin/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:InstallingphpLDAPadmin|:InstallingphpLDAPadmin|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :InstallingphpLDAPadmin/zh | | {{#ifexist: InstallingphpLDAPadmin/zh | | {{#ifeq: {{#titleparts:InstallingphpLDAPadmin|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:InstallingphpLDAPadmin|1|-1|}} | zh | | }}
Installation
apt-get install phpldapadmin
Configuration
You've several choices when it comes to configuring phpldapadmin. You can use the included apache script (/etc/phpldapadmin/apache.conf), or you can copy /usr/share/phpldapadmin to you webroot, in which case you can have multiple installations. Here I describe the latter.
Make a copy of the installation directory
cp /usr/share/phpldapadmin /var/www/myphpldapadmin
Since we're setting up for multiple installs, we'll give each one a different config file
cp /etc/phpldapadmin/config.php /etc/phpldapadmin/first.config.php rm /var/www/myphpldapadmin/config/config.php ln -s /etc/phpldapadmin/first.config.php /var/www/myphpldapadmin/config/config.php chmod +r /etc/phpldapadmin/first.config.php
Now customize the config file. You'll probably need to change the following lines:
$config->custom->session['blowfish'] = ''; //Add a random string for encryption purposes $ldapservers->SetValue($i,'server','name','My LDAP Server'); // The name to display $ldapservers->SetValue($i,'server','host','127.0.0.1'); // Address of the LDAP server $ldapservers->SetValue($i,'server','port','389'); // Port number $ldapservers->SetValue($i,'server','base',array('dc=example,dc=com')); // Base dn
The config file is *very* well commented, and a little reading should get you all you need.