<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Darling Ubuntu</title>
	<atom:link href="http://haria1988.blog.ubuntu.org.cn/feed/" rel="self" type="application/rss+xml" />
	<link>http://haria1988.blog.ubuntu.org.cn</link>
	<description>Ubuntu使用心得加要点记录</description>
	<lastBuildDate>Sat, 16 Jan 2010 12:48:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Server版Ubuntu安装桌面环境时，避免安装不必要的包的方法</title>
		<link>http://haria1988.blog.ubuntu.org.cn/2010/01/16/server%e7%89%88ubuntu%e5%ae%89%e8%a3%85%e6%a1%8c%e9%9d%a2%e7%8e%af%e5%a2%83%e6%97%b6%ef%bc%8c%e9%81%bf%e5%85%8d%e5%ae%89%e8%a3%85%e4%b8%8d%e5%bf%85%e8%a6%81%e7%9a%84%e5%8c%85%e7%9a%84%e6%96%b9/</link>
		<comments>http://haria1988.blog.ubuntu.org.cn/2010/01/16/server%e7%89%88ubuntu%e5%ae%89%e8%a3%85%e6%a1%8c%e9%9d%a2%e7%8e%af%e5%a2%83%e6%97%b6%ef%bc%8c%e9%81%bf%e5%85%8d%e5%ae%89%e8%a3%85%e4%b8%8d%e5%bf%85%e8%a6%81%e7%9a%84%e5%8c%85%e7%9a%84%e6%96%b9/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 02:35:54 +0000</pubDate>
		<dc:creator>haria1988</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://haria1988.blog.ubuntu.org.cn/2010/01/16/server%e7%89%88ubuntu%e5%ae%89%e8%a3%85%e6%a1%8c%e9%9d%a2%e7%8e%af%e5%a2%83%e6%97%b6%ef%bc%8c%e9%81%bf%e5%85%8d%e5%ae%89%e8%a3%85%e4%b8%8d%e5%bf%85%e8%a6%81%e7%9a%84%e5%8c%85%e7%9a%84%e6%96%b9/</guid>
		<description><![CDATA[sudo apt-get install ubuntu-desktop &#8211;no-install-recommends
]]></description>
			<content:encoded><![CDATA[<p>sudo apt-get install ubuntu-desktop &#8211;no-install-recommends</p>
]]></content:encoded>
			<wfw:commentRss>http://haria1988.blog.ubuntu.org.cn/2010/01/16/server%e7%89%88ubuntu%e5%ae%89%e8%a3%85%e6%a1%8c%e9%9d%a2%e7%8e%af%e5%a2%83%e6%97%b6%ef%bc%8c%e9%81%bf%e5%85%8d%e5%ae%89%e8%a3%85%e4%b8%8d%e5%bf%85%e8%a6%81%e7%9a%84%e5%8c%85%e7%9a%84%e6%96%b9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>将系统的软件包重新初始化成默认的状态</title>
		<link>http://haria1988.blog.ubuntu.org.cn/2009/12/04/%e5%b0%86%e7%b3%bb%e7%bb%9f%e7%9a%84%e8%bd%af%e4%bb%b6%e5%8c%85%e9%87%8d%e6%96%b0%e5%88%9d%e5%a7%8b%e5%8c%96%e6%88%90%e9%bb%98%e8%ae%a4%e7%9a%84%e7%8a%b6%e6%80%81/</link>
		<comments>http://haria1988.blog.ubuntu.org.cn/2009/12/04/%e5%b0%86%e7%b3%bb%e7%bb%9f%e7%9a%84%e8%bd%af%e4%bb%b6%e5%8c%85%e9%87%8d%e6%96%b0%e5%88%9d%e5%a7%8b%e5%8c%96%e6%88%90%e9%bb%98%e8%ae%a4%e7%9a%84%e7%8a%b6%e6%80%81/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 11:31:36 +0000</pubDate>
		<dc:creator>haria1988</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://haria1988.blog.ubuntu.org.cn/2009/12/04/%e5%b0%86%e7%b3%bb%e7%bb%9f%e7%9a%84%e8%bd%af%e4%bb%b6%e5%8c%85%e9%87%8d%e6%96%b0%e5%88%9d%e5%a7%8b%e5%8c%96%e6%88%90%e9%bb%98%e8%ae%a4%e7%9a%84%e7%8a%b6%e6%80%81/</guid>
		<description><![CDATA[将系统的软件包重新初始化成默认的状态。
sudo dpkg-reconfigure -phigh -a
把系统的包依赖关系重新初始化，可以用下面的命令来实现。
sudo apt-get install -f
]]></description>
			<content:encoded><![CDATA[<p>将系统的软件包重新初始化成默认的状态。</p>
<p>sudo dpkg-reconfigure -phigh -a</p>
<p>把系统的包依赖关系重新初始化，可以用下面的命令来实现。</p>
<p>sudo apt-get install -f</p>
]]></content:encoded>
			<wfw:commentRss>http://haria1988.blog.ubuntu.org.cn/2009/12/04/%e5%b0%86%e7%b3%bb%e7%bb%9f%e7%9a%84%e8%bd%af%e4%bb%b6%e5%8c%85%e9%87%8d%e6%96%b0%e5%88%9d%e5%a7%8b%e5%8c%96%e6%88%90%e9%bb%98%e8%ae%a4%e7%9a%84%e7%8a%b6%e6%80%81/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu9.10 AMD64 安装Flash 插件</title>
		<link>http://haria1988.blog.ubuntu.org.cn/2009/11/22/ubuntu9-10-amd64-%e5%ae%89%e8%a3%85flash-%e6%8f%92%e4%bb%b6/</link>
		<comments>http://haria1988.blog.ubuntu.org.cn/2009/11/22/ubuntu9-10-amd64-%e5%ae%89%e8%a3%85flash-%e6%8f%92%e4%bb%b6/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 07:44:55 +0000</pubDate>
		<dc:creator>haria1988</dc:creator>
				<category><![CDATA[Ubuntu心得]]></category>

		<guid isPermaLink="false">http://haria1988.blog.ubuntu.org.cn/?p=100</guid>
		<description><![CDATA[tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
mkdir -p ~/.mozilla/plugins/
mv libflashplayer.so ~/.mozilla/plugins/
tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
]]></description>
			<content:encoded><![CDATA[<p>tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz</p>
<p>mkdir -p ~/.mozilla/plugins/</p>
<p>mv libflashplayer.so ~/.mozilla/plugins/</p>
<div id="_mcePaste" style="overflow: hidden;width: 1px;height: 1px">tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz</div>
<div id="_mcePaste" style="overflow: hidden;width: 1px;height: 1px">tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz</div>
<div id="_mcePaste" style="overflow: hidden;width: 1px;height: 1px">tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz</div>
<div id="_mcePaste" style="overflow: hidden;width: 1px;height: 1px">tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz</div>
<div id="_mcePaste" style="overflow: hidden;width: 1px;height: 1px">tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz</div>
<div id="_mcePaste" style="overflow: hidden;width: 1px;height: 1px">tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz</div>
<div id="_mcePaste" style="overflow: hidden;width: 1px;height: 1px">tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz</div>
<div id="_mcePaste" style="overflow: hidden;width: 1px;height: 1px">tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz</div>
]]></content:encoded>
			<wfw:commentRss>http://haria1988.blog.ubuntu.org.cn/2009/11/22/ubuntu9-10-amd64-%e5%ae%89%e8%a3%85flash-%e6%8f%92%e4%bb%b6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RHEL下安装和配置catmail</title>
		<link>http://haria1988.blog.ubuntu.org.cn/2009/11/15/rhel%e4%b8%8b%e5%ae%89%e8%a3%85%e5%92%8c%e9%85%8d%e7%bd%aecatmail/</link>
		<comments>http://haria1988.blog.ubuntu.org.cn/2009/11/15/rhel%e4%b8%8b%e5%ae%89%e8%a3%85%e5%92%8c%e9%85%8d%e7%bd%aecatmail/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 04:52:45 +0000</pubDate>
		<dc:creator>haria1988</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://haria1988.blog.ubuntu.org.cn/?p=98</guid>
		<description><![CDATA[mkdir catmail
mv /opt/nfsShare/catmail.zip /opt/nfsShare/catmail
unzip catmail.zip
mv  /opt/nfsShare/catmail /var/www/
tar zxvf  ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz
mv ZendOptimizer-3.3.9-linux-glibc23-i386 ZendOptimizer
mv ZendOptimizer /usr/lib/
vim /etc/php.ini
#added
zend_extension=&#8221;/usr/lib/ZendOptimizer/data/5_1_x_comp/ZendOptimizer.so&#8221;
chmod 775 /var/www/catmail/choices.ini.php
chmod 777 /var/www/catmail/shared/config/
chmod 777 /var/www/catmail/storage/
chmod 777 /var/www/catmail/install/
chmod 775 /var/www/catmail/installer.php
 
mysql -uroot -ppassword
create database catmail;
/etc/init.d/httpd restart
ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz
ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz
]]></description>
			<content:encoded><![CDATA[<p>mkdir catmail</p>
<p>mv /opt/nfsShare/catmail.zip /opt/nfsShare/catmail</p>
<p>unzip catmail.zip</p>
<p>mv  /opt/nfsShare/catmail /var/www/</p>
<p>tar zxvf  ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz</p>
<p>mv ZendOptimizer-3.3.9-linux-glibc23-i386 ZendOptimizer</p>
<p>mv ZendOptimizer /usr/lib/</p>
<p>vim /etc/php.ini</p>
<p>#added</p>
<p>zend_extension=&#8221;/usr/lib/ZendOptimizer/data/5_1_x_comp/ZendOptimizer.so&#8221;</p>
<p>chmod 775 /var/www/catmail/choices.ini.php</p>
<p>chmod 777 /var/www/catmail/shared/config/</p>
<p>chmod 777 /var/www/catmail/storage/</p>
<p>chmod 777 /var/www/catmail/install/</p>
<p>chmod 775 /var/www/catmail/installer.php<br />
<span> </span></p>
<p>mysql -uroot -ppassword</p>
<p>create database catmail;</p>
<p>/etc/init.d/httpd restart</p>
<div id="_mcePaste" style="overflow: hidden;width: 1px;height: 1px">ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz</div>
<div id="_mcePaste" style="overflow: hidden;width: 1px;height: 1px">ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz</div>
]]></content:encoded>
			<wfw:commentRss>http://haria1988.blog.ubuntu.org.cn/2009/11/15/rhel%e4%b8%8b%e5%ae%89%e8%a3%85%e5%92%8c%e9%85%8d%e7%bd%aecatmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>openldap 初始化配置</title>
		<link>http://haria1988.blog.ubuntu.org.cn/2009/11/14/openldap-%e5%88%9d%e5%a7%8b%e5%8c%96%e9%85%8d%e7%bd%ae/</link>
		<comments>http://haria1988.blog.ubuntu.org.cn/2009/11/14/openldap-%e5%88%9d%e5%a7%8b%e5%8c%96%e9%85%8d%e7%bd%ae/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 07:03:37 +0000</pubDate>
		<dc:creator>haria1988</dc:creator>
				<category><![CDATA[知识积累]]></category>

		<guid isPermaLink="false">http://haria1988.blog.ubuntu.org.cn/?p=96</guid>
		<description><![CDATA[vim /etc/openldap/slapd.conf
#the config file is at here
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include        /etc/openldap/schema/core.schema
include        /etc/openldap/schema/cosine.schema
include        /etc/openldap/schema/inetorgperson.schema
include        /etc/openldap/schema/nis.schema
include        /etc/openldap/schema/corba.schema
include        /etc/openldap/schema/misc.schema
include        /etc/openldap/schema/openldap.schema
#include        /etc/openldap/schema/samba.schema
# Allow LDAPv2 client connections.  This is NOT the default.
allow bind_v2
# Do not enable referrals until AFTER you have [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #000080"><strong>vim /etc/openldap/slapd.conf</strong></span></p>
<p>#the config file is at here</p>
<p>#<br />
# See slapd.conf(5) for details on configuration options.<br />
# This file should NOT be world readable.<br />
#<br />
include        /etc/openldap/schema/core.schema<br />
include        /etc/openldap/schema/cosine.schema<br />
include        /etc/openldap/schema/inetorgperson.schema<br />
include        /etc/openldap/schema/nis.schema<br />
<span style="color: #ff0000">include        /etc/openldap/schema/corba.schema<br />
include        /etc/openldap/schema/misc.schema<br />
include        /etc/openldap/schema/openldap.schema<br />
#include        /etc/openldap/schema/samba.schema</span></p>
<p># Allow LDAPv2 client connections.  This is NOT the default.<br />
allow bind_v2</p>
<p># Do not enable referrals until AFTER you have a working directory<br />
# service AND an understanding of referrals.<br />
#referral    ldap://root.openldap.org</p>
<p>pidfile        /var/run/openldap/slapd.pid<br />
argsfile    /var/run/openldap/slapd.args</p>
<p># Load dynamic backend modules:<br />
# modulepath    /usr/lib/openldap</p>
<p># modules available in openldap-servers-overlays RPM package:<br />
# moduleload accesslog.la<br />
# moduleload auditlog.la<br />
# moduleload denyop.la<br />
# moduleload dyngroup.la<br />
# moduleload dynlist.la<br />
# moduleload lastmod.la<br />
# moduleload pcache.la<br />
# moduleload ppolicy.la<br />
# moduleload refint.la<br />
# moduleload retcode.la<br />
# moduleload rwm.la<br />
# moduleload smbk5pwd.la<br />
# moduleload syncprov.la<br />
# moduleload translucent.la<br />
# moduleload unique.la<br />
# moduleload valsort.la</p>
<p># modules available in openldap-servers-sql RPM package:<br />
# moduleload back_sql.la</p>
<p># The next three lines allow use of TLS for encrypting connections using a<br />
# dummy test certificate which you can generate by changing to<br />
# /etc/pki/tls/certs, running &#8220;make slapd.pem&#8221;, and fixing permissions on<br />
# slapd.pem so that the ldap user or group can read it.  Your client software<br />
# may balk at self-signed certificates, however.<br />
# TLSCACertificateFile /etc/pki/tls/certs/ca-bundle.crt<br />
# TLSCertificateFile /etc/pki/tls/certs/slapd.pem<br />
# TLSCertificateKeyFile /etc/pki/tls/certs/slapd.pem</p>
<p># Sample security restrictions<br />
#    Require integrity protection (prevent hijacking)<br />
#    Require 112-bit (3DES or better) encryption for updates<br />
#    Require 63-bit encryption for simple bind<br />
# security ssf=1 update_ssf=112 simple_bind=64</p>
<p># Sample access control policy:<br />
#    Root DSE: allow anyone to read it<br />
#    Subschema (sub)entry DSE: allow anyone to read it<br />
#    Other DSEs:<br />
#        Allow self write access<br />
#        Allow authenticated users read access<br />
#        Allow anonymous users to authenticate<br />
#    Directives needed to implement policy:<br />
# access to dn.base=&#8221;" by * read<br />
# access to dn.base=&#8221;cn=Subschema&#8221; by * read<br />
# access to *<br />
#    by self write<br />
#    by users read<br />
#    by anonymous auth<br />
#<br />
# if no access controls are present, the default policy<br />
# allows anyone and everyone to read anything but restricts<br />
# updates to rootdn.  (e.g., &#8220;access to * by * read&#8221;)<br />
#<br />
# rootdn can always read and write EVERYTHING!</p>
<p>#######################################################################<br />
# ldbm and/or bdb database definitions<br />
#######################################################################</p>
<p>database    bdb<br />
suffix        <span style="color: #ff0000">&#8220;dc=roty,dc=com&#8221;</span><br />
rootdn        <span style="color: #ff0000">&#8220;cn=root,dc=roty,dc=com&#8221;</span><br />
# Cleartext passwords, especially for the rootdn, should<br />
# be avoided.  See slappasswd(8) and slapd.conf(5) for details.<br />
# Use of strong authentication encouraged.<span style="color: #ff0000"> </span><br />
<span style="color: #ff0000">rootpw        {crypt}ijFYNcSNctBYg</span></p>
<p># The database directory MUST exist prior to running slapd AND<br />
# should only be accessible by the slapd and slap tools.<br />
# Mode 700 recommended.<br />
directory    /var/lib/ldap</p>
<p># Indices to maintain for this database<br />
index objectClass                       eq,pres<br />
index ou,cn,mail,surname,givenname      eq,pres,sub<br />
index uidNumber,gidNumber,loginShell    eq,pres<br />
index uid,memberUid                     eq,pres,sub<br />
index nisMapName,nisMapEntry            eq,pres,sub</p>
<p># Replicas of this database<br />
#replogfile /var/lib/ldap/openldap-master-replog<br />
#replica host=ldap-1.example.com:389 starttls=critical<br />
#     bindmethod=sasl saslmech=GSSAPI<br />
#     authcId=host/ldap-master.example.com@EXAMPLE.COM</p>
<p><strong><span style="color: #000080">mv /etc/openldap/DB_CONFIG.example /var/lib/ldap/DB_CONFIG</span></strong></p>
<p><strong><span style="color: #000080">ldapsearch -x -b &#8221; -s base &#8216;(objectclass=*)&#8217; namingContexts</span></strong></p>
<p><strong><span style="color: #000080">vim roty.ldif</span></strong></p>
<p>#added to roty.ldif</p>
<p><span style="color: #ff0000">dn: dc=roty,dc=com<br />
objectclass: dcObject<br />
objectclass: organization<br />
o: Roty.com<br />
dc: roty</span></p>
<p><span style="color: #ff0000">dn: cn=root,dc=roty,dc=com<br />
objectclass: organizationalRole<br />
cn: root</span></p>
<p><strong><span style="color: #000080">ldapadd -x -D cn=root,dc=roty,dc=com -W -f roty.ldif</span></strong></p>
<p><strong><span style="color: #000080"> </span><span style="color: #000080">cd /var/www/phpldapadmin/config/</span></strong></p>
<p><strong><span style="color: #000080">mv config.php.sample config.php</span></strong></p>
<p><strong><span style="color: #000080">vim config.php</span></strong></p>
<p><span style="color: #000000">#the file list at here</span></p>
<p>&lt;?php<br />
/** NOTE **<br />
** Make sure that &lt;?php is the FIRST line of this file!<br />
** IE: There should NOT be any blank lines or spaces BEFORE &lt;?php<br />
**/</p>
<p>/**<br />
* The phpLDAPadmin config file<br />
* See: http://phpldapadmin.sourceforge.net/wiki/index.php/Config.php<br />
*<br />
* This is where you can customise some of the phpLDAPadmin defaults<br />
* that are defined in config_default.php.<br />
*<br />
* To override a default, use the $config-&gt;custom variable to do so.<br />
* For example, the default for defining the language in config_default.php<br />
*<br />
* $this-&gt;default-&gt;appearance['language'] = array(<br />
*  &#8216;desc&#8217;=&gt;&#8217;Language&#8217;,<br />
*  &#8216;default&#8217;=&gt;&#8217;auto&#8217;);<br />
*<br />
* to override this, use $config-&gt;custom-&gt;appearance['language'] = &#8216;en_EN&#8217;;<br />
*<br />
* This file is also used to configure your LDAP server connections.<br />
*<br />
* You must specify at least one LDAP server there. You may add<br />
* as many as you like. You can also specify your language, and<br />
* many other options.<br />
*<br />
* NOTE: Commented out values in this file prefixed by //, represent the<br />
* defaults that have been defined in config_default.php.<br />
* Commented out values prefixed by #, dont reflect their default value, you can<br />
* check config_default.php if you want to see what the default is.<br />
*<br />
* DONT change config_default.php, you changes will be lost by the next release<br />
* of PLA. Instead change this file &#8211; as it will NOT be replaced by a new<br />
* version of phpLDAPadmin.<br />
*/</p>
<p>/*********************************************/<br />
/* Useful important configuration overrides  */<br />
/*********************************************/</p>
<p>/* If you are asked to put PLA in debug mode, this is how you do it: */<br />
#  $config-&gt;custom-&gt;debug['level'] = 255;<br />
#  $config-&gt;custom-&gt;debug['syslog'] = true;<br />
#  $config-&gt;custom-&gt;debug['file'] = &#8216;/tmp/pla_debug.log&#8217;;</p>
<p>/* phpLDAPadmin can encrypt the content of sensitive cookies if you set this<br />
to a big random string. */<br />
// $config-&gt;custom-&gt;session['blowfish'] = null;</p>
<p>/* The language setting. If you set this to &#8216;auto&#8217;, phpLDAPadmin will attempt<br />
to determine your language automatically. Otherwise, available lanaguages<br />
are: &#8216;ct&#8217;, &#8216;de&#8217;, &#8216;en&#8217;, &#8216;es&#8217;, &#8216;fr&#8217;, &#8216;it&#8217;, &#8216;nl&#8217;, and &#8216;ru&#8217;<br />
Localization is not complete yet, but most strings have been translated.<br />
Please help by writing language files. See lang/en.php for an example. */<br />
// $config-&gt;custom-&gt;appearance['language'] = &#8216;auto&#8217;;</p>
<p>/* The temporary storage directory where we will put jpegPhoto data<br />
This directory must be readable and writable by your web server. */<br />
// $config-&gt;custom-&gt;jpeg['tmpdir'] = &#8216;/tmp&#8217;;     // Example for Unix systems<br />
#  $config-&gt;custom-&gt;jpeg['tmpdir'] = &#8216;c:\\temp&#8217;; // Example for Windows systems</p>
<p>/* Set this to (bool)true if you do NOT want a random salt used when<br />
calling crypt().  Instead, use the first two letters of the user&#8217;s<br />
password.  This is insecure but unfortunately needed for some older<br />
environments. */<br />
#  $config-&gt;custom-&gt;password['no_random_crypt_salt'] = true;</p>
<p>/* PHP script timeout control. If php runs longer than this many seconds then<br />
PHP will stop with an Maximum Execution time error. Increase this value from<br />
the default if queries to your LDAP server are slow. The default is either<br />
30 seconds or the setting of max_exection_time if this is null. */<br />
// $config-&gt;custom-&gt;session['timelimit'] = 30;</p>
<p>/* Our local timezone<br />
This is to make sure that when we ask the system for the current time, we<br />
get the right local time. If this is not set, all time() calculations will<br />
assume UTC if you have not set PHP date.timezone. */<br />
// $config-&gt;custom-&gt;appearance['timezone'] = null;<br />
#  $config-&gt;custom-&gt;appearance['timezone'] = &#8216;Australia/Melbourne&#8217;;</p>
<p>/*********************************************/<br />
/* Commands                                  */<br />
/*********************************************/</p>
<p>/* Command availability ; if you don&#8217;t authorize a command the command<br />
links will not be shown and the command action will not be permitted.<br />
For better security, set also ACL in your ldap directory. */<br />
/*<br />
$config-&gt;custom-&gt;commands['cmd'] = array(<br />
&#8216;entry_internal_attributes_show&#8217; =&gt; true,<br />
&#8216;entry_refresh&#8217; =&gt; true,<br />
&#8216;oslinks&#8217; =&gt; true,<br />
&#8217;switch_template&#8217; =&gt; true<br />
);</p>
<p>$config-&gt;custom-&gt;commands['script'] = array(<br />
&#8216;add_attr_form&#8217; =&gt; true,<br />
&#8216;add_oclass_form&#8217; =&gt; true,<br />
&#8216;add_value_form&#8217; =&gt; true,<br />
&#8216;collapse&#8217; =&gt; true,<br />
&#8216;compare&#8217; =&gt; true,<br />
&#8216;compare_form&#8217; =&gt; true,<br />
&#8216;copy&#8217; =&gt; true,<br />
&#8216;copy_form&#8217; =&gt; true,<br />
&#8216;create&#8217; =&gt; true,<br />
&#8216;create_confirm&#8217; =&gt; true,<br />
&#8216;delete&#8217; =&gt; true,<br />
&#8216;delete_attr&#8217; =&gt; true,<br />
&#8216;delete_form&#8217; =&gt; true,<br />
&#8216;draw_tree_node&#8217; =&gt; true,<br />
&#8216;expand&#8217; =&gt; true,<br />
&#8216;export&#8217; =&gt; true,<br />
&#8216;export_form&#8217; =&gt; true,<br />
&#8216;import&#8217; =&gt; true,<br />
&#8216;import_form&#8217; =&gt; true,<br />
&#8216;login&#8217; =&gt; true,<br />
&#8216;logout&#8217; =&gt; true,<br />
&#8216;login_form&#8217; =&gt; true,<br />
&#8216;mass_delete&#8217; =&gt; true,<br />
&#8216;mass_edit&#8217; =&gt; true,<br />
&#8216;mass_update&#8217; =&gt; true,<br />
&#8216;modify_member_form&#8217; =&gt; true,<br />
&#8216;monitor&#8217; =&gt; true,<br />
&#8216;purge_cache&#8217; =&gt; true,<br />
&#8216;query_engine&#8217; =&gt; true,<br />
&#8216;rename&#8217; =&gt; true,<br />
&#8216;rename_form&#8217; =&gt; true,<br />
&#8216;rdelete&#8217; =&gt; true,<br />
&#8216;refresh&#8217; =&gt; true,<br />
&#8217;schema&#8217; =&gt; true,<br />
&#8217;server_info&#8217; =&gt; true,<br />
&#8217;show_cache&#8217; =&gt; true,<br />
&#8216;template_engine&#8217; =&gt; true,<br />
&#8216;update_confirm&#8217; =&gt; true,<br />
&#8216;update&#8217; =&gt; true<br />
);<br />
*/</p>
<p>/*********************************************/<br />
/* Appearance                                */<br />
/*********************************************/</p>
<p>/* If you want to choose the appearance of the tree, specify a class name which<br />
inherits from the Tree class. */<br />
// $config-&gt;custom-&gt;appearance['tree'] = &#8216;AJAXTree&#8217;;<br />
#  $config-&gt;custom-&gt;appearance['tree'] = &#8216;HTMLTree&#8217;;</p>
<p>/* Just show your custom templates. */<br />
// $config-&gt;custom-&gt;appearance['custom_templates_only'] = false;</p>
<p>/* Disable the default template. */<br />
// $config-&gt;custom-&gt;appearance['disable_default_template'] = false;</p>
<p>/* Hide the warnings for invalid objectClasses/attributes in templates. */<br />
// $config-&gt;custom-&gt;appearance['hide_template_warning'] = false;</p>
<p>/* Configure what objects are shown in left hand tree */<br />
// $config-&gt;custom-&gt;appearance['tree_filter'] = &#8216;(objectclass=*)&#8217;;</p>
<p>/* The height and width of the tree. If these values are not set, then<br />
no tree scroll bars are provided. */<br />
// $config-&gt;custom-&gt;appearance['tree_height'] = null;<br />
#  $config-&gt;custom-&gt;appearance['tree_height'] = 600;<br />
// $config-&gt;custom-&gt;appearance['tree_width'] = null;<br />
#  $config-&gt;custom-&gt;appearance['tree_width'] = 250;</p>
<p>/*********************************************/<br />
/* User-friendly attribute translation       */<br />
/*********************************************/</p>
<p>/* Use this array to map attribute names to user friendly names. For example, if<br />
you don&#8217;t want to see &#8220;facsimileTelephoneNumber&#8221; but rather &#8220;Fax&#8221;. */<br />
// $config-&gt;custom-&gt;appearance['friendly_attrs'] = array();<br />
$config-&gt;custom-&gt;appearance['friendly_attrs'] = array(<br />
&#8216;facsimileTelephoneNumber&#8217; =&gt; &#8216;Fax&#8217;,<br />
&#8216;gid&#8217;                      =&gt; &#8216;Group&#8217;,<br />
&#8216;mail&#8217;                     =&gt; &#8216;Email&#8217;,<br />
&#8216;telephoneNumber&#8217;          =&gt; &#8216;Telephone&#8217;,<br />
&#8216;uid&#8217;                      =&gt; &#8216;User Name&#8217;,<br />
&#8216;userPassword&#8217;             =&gt; &#8216;Password&#8217;<br />
);</p>
<p>/*********************************************/<br />
/* Hidden attributes                         */<br />
/*********************************************/</p>
<p>/* You may want to hide certain attributes from being edited. If you want to<br />
hide attributes from the user, you should use your LDAP servers ACLs.<br />
NOTE: The user must be able to read the hide_attrs_exempt entry to be<br />
excluded. */<br />
// $config-&gt;custom-&gt;appearance['hide_attrs'] = array();<br />
#  $config-&gt;custom-&gt;appearance['hide_attrs'] = array(&#8217;objectClass&#8217;);</p>
<p>/* Members of this list will be exempt from the hidden attributes.*/<br />
// $config-&gt;custom-&gt;appearance['hide_attrs_exempt'] = null;<br />
#  $config-&gt;custom-&gt;appearance['hide_attrs_exempt'] = &#8216;cn=PLA UnHide,ou=Groups,c=AU&#8217;;</p>
<p>/*********************************************/<br />
/* Read-only attributes                      */<br />
/*********************************************/</p>
<p>/* You may want to phpLDAPadmin to display certain attributes as read only,<br />
meaning that users will not be presented a form for modifying those<br />
attributes, and they will not be allowed to be modified on the &#8220;back-end&#8221;<br />
either. You may configure this list here:<br />
NOTE: The user must be able to read the readonly_attrs_exempt entry to be<br />
excluded. */<br />
// $config-&gt;custom-&gt;appearance['readonly_attrs'] = array();</p>
<p>/* Members of this list will be exempt from the readonly attributes.*/<br />
// $config-&gt;custom-&gt;appearance['readonly_attrs_exempt'] = null;<br />
#  $config-&gt;custom-&gt;appearance['readonly_attrs_exempt'] = &#8216;cn=PLA ReadWrite,ou=Groups,c=AU&#8217;;</p>
<p>/*********************************************/<br />
/* Group attributes                          */<br />
/*********************************************/</p>
<p>/* Add &#8220;modify group members&#8221; link to the attribute. */<br />
// $config-&gt;custom-&gt;modify_member['groupattr'] = array(&#8217;member&#8217;,'uniqueMember&#8217;,'memberUid&#8217;);</p>
<p>/* Configure filter for member search. This only applies to &#8220;modify group members&#8221; feature */<br />
// $config-&gt;custom-&gt;modify_member['filter'] = &#8216;(objectclass=Person)&#8217;;</p>
<p>/* Attribute that is added to the group member attribute. */<br />
// $config-&gt;custom-&gt;modify_member['attr'] = &#8216;dn&#8217;;</p>
<p>/* For Posix attributes */<br />
// $config-&gt;custom-&gt;modify_member['posixattr'] = &#8216;uid&#8217;;<br />
// $config-&gt;custom-&gt;modify_member['posixfilter'] = &#8216;(uid=*)&#8217;;<br />
// $config-&gt;custom-&gt;modify_member['posixgroupattr'] = &#8216;memberUid&#8217;;</p>
<p>/*********************************************/<br />
/* Support for attrs display order           */<br />
/*********************************************/</p>
<p>/* Use this array if you want to have your attributes displayed in a specific<br />
order. You can use default attribute names or their fridenly names.<br />
For example, &#8220;sn&#8221; will be displayed right after &#8220;givenName&#8221;. All the other<br />
attributes that are not specified in this array will be displayed after in<br />
alphabetical order. */<br />
// $config-&gt;custom-&gt;appearance['attr_display_order'] = array();<br />
#  $config-&gt;custom-&gt;appearance['attr_display_order'] = array(<br />
#   &#8216;givenName&#8217;,<br />
#   &#8217;sn&#8217;,<br />
#   &#8216;cn&#8217;,<br />
#   &#8216;displayName&#8217;,<br />
#   &#8216;uid&#8217;,<br />
#   &#8216;uidNumber&#8217;,<br />
#   &#8216;gidNumber&#8217;,<br />
#   &#8216;homeDirectory&#8217;,<br />
#   &#8216;mail&#8217;,<br />
#   &#8216;userPassword&#8217;<br />
#  );</p>
<p>/*********************************************/<br />
/* Define your LDAP servers in this section  */<br />
/*********************************************/</p>
<p>$servers = new Datastore();</p>
<p>/* $servers-&gt;NewServer(&#8217;ldap_pla&#8217;) must be called before each new LDAP server<br />
declaration. */<br />
$servers-&gt;newServer(&#8217;ldap_pla&#8217;);</p>
<p>/* A convenient name that will appear in the tree viewer and throughout<br />
phpLDAPadmin to identify this LDAP server to users. */<br />
$servers-&gt;setValue(&#8217;server&#8217;,'name&#8217;,'My LDAP Server&#8217;);</p>
<p>/* Examples:<br />
&#8216;ldap.example.com&#8217;,<br />
&#8216;ldaps://ldap.example.com/&#8217;,<br />
&#8216;ldapi://%2fusr%local%2fvar%2frun%2fldapi&#8217;<br />
(Unix socket at /usr/local/var/run/ldap) */<br />
<span style="color: #ff0000">$servers-&gt;setValue(&#8217;server&#8217;,'host&#8217;,'localhost&#8217;);</span></p>
<p>/* The port your LDAP server listens on (no quotes). 389 is standard. */<br />
// $servers-&gt;setValue(&#8217;server&#8217;,'port&#8217;,389);</p>
<p>/* Array of base DNs of your LDAP server. Leave this blank to have phpLDAPadmin<br />
auto-detect it for you. */<br />
<span style="color: #ff0000">$servers-&gt;setValue(&#8217;server&#8217;,'base&#8217;,array(&#8217;dc=roty,dc=com&#8217;));</span></p>
<p>/* Four options for auth_type:<br />
1. &#8216;cookie&#8217;: you will login via a web form, and a client-side cookie will<br />
store your login dn and password.<br />
2. &#8217;session&#8217;: same as cookie but your login dn and password are stored on the<br />
web server in a persistent session variable.<br />
3. &#8216;http&#8217;: same as session but your login dn and password are retrieved via<br />
HTTP authentication.<br />
4. &#8216;config&#8217;: specify your login dn and password here in this config file. No<br />
login will be required to use phpLDAPadmin for this server.</p>
<p>Choose wisely to protect your authentication information appropriately for<br />
your situation. If you choose &#8216;cookie&#8217;, your cookie contents will be<br />
encrypted using blowfish and the secret your specify above as<br />
session['blowfish']. */<br />
<span style="color: #ff0000">$servers-&gt;setValue(&#8217;login&#8217;,'auth_type&#8217;,&#8217;session&#8217;);</span></p>
<p>/* The DN of the user for phpLDAPadmin to bind with. For anonymous binds or<br />
&#8216;cookie&#8217; or &#8217;session&#8217; auth_types, LEAVE THE LOGIN_DN AND LOGIN_PASS BLANK. If<br />
you specify a login_attr in conjunction with a cookie or session auth_type,<br />
then you can also specify the bind_id/bind_pass here for searching the<br />
directory for users (ie, if your LDAP server does not allow anonymous binds. */<br />
// $servers-&gt;setValue(&#8217;login&#8217;,'bind_id&#8217;,&#8221;);<br />
<span style="color: #ff0000">$servers-&gt;setValue(&#8217;login&#8217;,'bind_id&#8217;,'cn=root,dc=roty,dc=com&#8217;);</span></p>
<p>/* Your LDAP password. If you specified an empty bind_id above, this MUST also<br />
be blank. */<br />
// $servers-&gt;setValue(&#8217;login&#8217;,'bind_pass&#8217;,&#8221;);<br />
<span style="color: #ff0000">$servers-&gt;setValue(&#8217;login&#8217;,'bind_pass&#8217;,&#8217;secert&#8217;);</span></p>
<p>/* Use TLS (Transport Layer Security) to connect to the LDAP server. */<br />
// $servers-&gt;setValue(&#8217;server&#8217;,'tls&#8217;,false);</p>
<p>/************************************<br />
*      SASL Authentication         *<br />
************************************/</p>
<p>/* Enable SASL authentication LDAP SASL authentication requires PHP 5.x<br />
configured with &#8211;with-ldap-sasl=DIR. If this option is disabled (ie, set to<br />
false), then all other sasl options are ignored. */<br />
// $servers-&gt;setValue(&#8217;server&#8217;,&#8217;sasl_auth&#8217;,false);</p>
<p>/* SASL auth mechanism */<br />
// $servers-&gt;setValue(&#8217;server&#8217;,&#8217;sasl_mech&#8217;,'PLAIN&#8217;);</p>
<p>/* SASL authentication realm name */<br />
// $servers-&gt;setValue(&#8217;server&#8217;,&#8217;sasl_realm&#8217;,&#8221;);<br />
#  $servers-&gt;setValue(&#8217;server&#8217;,&#8217;sasl_realm&#8217;,'example.com&#8217;);</p>
<p>/* SASL authorization ID name<br />
If this option is undefined, authorization id will be computed from bind DN,<br />
using sasl_authz_id_regex and sasl_authz_id_replacement. */<br />
// $servers-&gt;setValue(&#8217;server&#8217;,&#8217;sasl_authz_id&#8217;, null);</p>
<p>/* SASL authorization id regex and replacement<br />
When sasl_authz_id property is not set (default), phpLDAPAdmin will try to<br />
figure out authorization id by itself from bind distinguished name (DN).</p>
<p>This procedure is done by calling preg_replace() php function in the<br />
following way:</p>
<p>$authz_id = preg_replace($sasl_authz_id_regex,$sasl_authz_id_replacement,<br />
$bind_dn);</p>
<p>For info about pcre regexes, see:<br />
- pcre(3), perlre(3)<br />
- http://www.php.net/preg_replace */<br />
// $servers-&gt;setValue(&#8217;server&#8217;,&#8217;sasl_authz_id_regex&#8217;,null);<br />
// $servers-&gt;setValue(&#8217;server&#8217;,&#8217;sasl_authz_id_replacement&#8217;,null);<br />
#  $servers-&gt;setValue(&#8217;server&#8217;,&#8217;sasl_authz_id_regex&#8217;,'/^uid=([^,]+)(.+)/i&#8217;);<br />
#  $servers-&gt;setValue(&#8217;server&#8217;,&#8217;sasl_authz_id_replacement&#8217;,'$1&#8242;);</p>
<p>/* SASL auth security props.<br />
See http://beepcore-tcl.sourceforge.net/tclsasl.html#anchor5 for explanation. */<br />
// $servers-&gt;setValue(&#8217;server&#8217;,&#8217;sasl_props&#8217;,null);</p>
<p>/* Default password hashing algorithm. One of md5, ssha, sha, md5crpyt, smd5,<br />
blowfish, crypt or leave blank for now default algorithm. */<br />
// $servers-&gt;setValue(&#8217;appearance&#8217;,'password_hash&#8217;,'md5&#8242;);</p>
<p>/* If you specified &#8216;cookie&#8217; or &#8217;session&#8217; as the auth_type above, you can<br />
optionally specify here an attribute to use when logging in. If you enter<br />
&#8216;uid&#8217; and login as &#8216;dsmith&#8217;, phpLDAPadmin will search for (uid=dsmith)<br />
and log in as that user.<br />
Leave blank or specify &#8216;dn&#8217; to use full DN for logging in. Note also that if<br />
your LDAP server requires you to login to perform searches, you can enter the<br />
DN to use when searching in &#8216;bind_id&#8217; and &#8216;bind_pass&#8217; above.<br />
// $servers-&gt;setValue(&#8217;login&#8217;,'attr&#8217;,'dn&#8217;);</p>
<p>/* Base DNs to used for logins. If this value is not set, then the LDAP server<br />
Base DNs are used. */<br />
// $servers-&gt;setValue(&#8217;login&#8217;,'base&#8217;,array());</p>
<p>/* If &#8216;login,attr&#8217; is used above such that phpLDAPadmin will search for your DN<br />
at login, you may restrict the search to a specific objectClasses. EG, set this<br />
to array(&#8217;posixAccount&#8217;) or array(&#8217;inetOrgPerson&#8217;,..), depending upon your<br />
setup. */<br />
// $servers-&gt;setValue(&#8217;login&#8217;,'class&#8217;,array());</p>
<p>/* If you specified something different from &#8216;dn&#8217;, for example &#8216;uid&#8217;, as the<br />
login_attr above, you can optionally specify here to fall back to<br />
authentication with dn.<br />
This is useful, when users should be able to log in with their uid, but<br />
the ldap administrator wants to log in with his root-dn, that does not<br />
necessarily have the uid attribute.<br />
When using this feature, login_class is ignored. */<br />
// $servers-&gt;setValue(&#8217;login&#8217;,'fallback_dn&#8217;,false);</p>
<p>/* Specify true If you want phpLDAPadmin to not display or permit any<br />
modification to the LDAP server. */<br />
// $servers-&gt;setValue(&#8217;server&#8217;,'read_only&#8217;,false);</p>
<p>/* Specify false if you do not want phpLDAPadmin to draw the &#8216;Create new&#8217; links<br />
in the tree viewer. */<br />
// $servers-&gt;setValue(&#8217;appearance&#8217;,&#8217;show_create&#8217;,true);</p>
<p>/* This feature allows phpLDAPadmin to automatically determine the next<br />
available uidNumber for a new entry. */<br />
// $servers-&gt;setValue(&#8217;auto_number&#8217;,'enable&#8217;,true);</p>
<p>/* The mechanism to use when finding the next available uidNumber. Two possible<br />
values: &#8216;uidpool&#8217; or &#8217;search&#8217;.<br />
The &#8216;uidpool&#8217; mechanism uses an existing uidPool entry in your LDAP server to<br />
blindly lookup the next available uidNumber. The &#8217;search&#8217; mechanism searches<br />
for entries with a uidNumber value and finds the first available uidNumber<br />
(slower). */<br />
// $servers-&gt;setValue(&#8217;auto_number&#8217;,'mechanism&#8217;,&#8217;search&#8217;);</p>
<p>/* The DN of the search base when the &#8217;search&#8217; mechanism is used above. */<br />
#  $servers-&gt;setValue(&#8217;auto_number&#8217;,&#8217;search_base&#8217;,'ou=People,dc=example,dc=com&#8217;);</p>
<p>/* The minimum number to use when searching for the next available number<br />
(only when &#8217;search&#8217; is used for auto_number */<br />
// $servers-&gt;setValue(&#8217;auto_number&#8217;,'min&#8217;,array(&#8217;uidNumber&#8217;=&gt;1000,&#8217;gidNumber&#8217;=&gt;500));</p>
<p>/* If you set this, then phpldapadmin will bind to LDAP with this user ID when<br />
searching for the uidnumber. The idea is, this user id would have full<br />
(readonly) access to uidnumber in your ldap directory (the logged in user<br />
may not), so that you can be guaranteed to get a unique uidnumber for your<br />
directory. */<br />
// $servers-&gt;setValue(&#8217;auto_number&#8217;,'dn&#8217;,null);</p>
<p>/* The password for the dn above. */<br />
// $servers-&gt;setValue(&#8217;auto_number&#8217;,'pass&#8217;,null);</p>
<p>/* Enable anonymous bind login. */<br />
// $servers-&gt;setValue(&#8217;login&#8217;,'anon_bind&#8217;,true);</p>
<p>/* Use customized page with prefix when available. */<br />
#  $servers-&gt;setValue(&#8217;custom&#8217;,'pages_prefix&#8217;,'custom_&#8217;);</p>
<p>/* If you set this, then only these DNs are allowed to log in. This array can<br />
contain individual users, groups or ldap search filter(s). Keep in mind that<br />
the user has not authenticated yet, so this will be an anonymous search to<br />
the LDAP server, so make your ACLs allow these searches to return results! */<br />
#  $servers-&gt;setValue(&#8217;login&#8217;,'allowed_dns&#8217;,array(<br />
#   &#8216;uid=stran,ou=People,dc=example,dc=com&#8217;,<br />
#   &#8216;(&amp;(gidNumber=811)(objectClass=groupOfNames))&#8217;,<br />
#   &#8216;(|(uidNumber=200)(uidNumber=201))&#8217;,<br />
#   &#8216;cn=callcenter,ou=Group,dc=example,dc=com&#8217;));</p>
<p>/* Set this if you dont want this LDAP server to show in the tree */<br />
// $servers-&gt;setValue(&#8217;server&#8217;,'visible&#8217;,true);</p>
<p>/* This is the time out value in minutes for the server. After as many minutes<br />
of inactivity you will be automatically logged out. If not set, the default<br />
value will be ( session_cache_expire()-1 ) */<br />
#  $servers-&gt;setValue(&#8217;login&#8217;,'timeout&#8217;,30);</p>
<p>/* Set this if you want phpldapadmin to perform rename operation on entry which<br />
has children. Certain servers are known to allow it, certain are not */<br />
// $servers-&gt;setValue(&#8217;server&#8217;,'branch_rename&#8217;,false);</p>
<p>/* If you set this, then phpldapadmin will show these attributes as<br />
internal attributes, even if they are not defined in your schema. */<br />
// $servers-&gt;setValue(&#8217;server&#8217;,'custom_sys_attrs&#8217;,array(&#8221;));<br />
#  $servers-&gt;setValue(&#8217;server&#8217;,'custom_sys_attrs&#8217;,array(&#8217;passwordExpirationTime&#8217;,'passwordAllowChangeTime&#8217;));</p>
<p>/* If you set this, then phpldapadmin will show these attributes on<br />
objects, even if they are not defined in your schema. */<br />
// $servers-&gt;setValue(&#8217;server&#8217;,'custom_attrs&#8217;,array(&#8221;));<br />
#  $servers-&gt;setValue(&#8217;server&#8217;,'custom_attrs&#8217;,array(&#8217;nsRoleDN&#8217;,'nsRole&#8217;,'nsAccountLock&#8217;));</p>
<p>/* These attributes will be forced to MAY attributes and become option in the<br />
templates. If they are not defined in the templates, then they wont appear<br />
as per normal template processing. You may want to do this becuase your LDAP<br />
server may automatically calculate a default value.<br />
In Fedora Directory Server using the DNA Plugin one could ignore uidNumber,<br />
gidNumber and sambaSID. */<br />
// $servers-&gt;setValue(&#8217;force_may&#8217;,'attrs&#8217;,array(&#8221;));<br />
#  $servers-&gt;setValue(&#8217;force_may&#8217;,'attrs&#8217;,array(&#8217;uidNumber&#8217;,'gidNumber&#8217;,&#8217;sambaSID&#8217;));</p>
<p>/*********************************************/<br />
/* Unique attributes                         */<br />
/*********************************************/</p>
<p>/* You may want phpLDAPadmin to enforce some attributes to have unique values<br />
(ie: not belong to other entries in your tree. This (together with<br />
&#8216;unique&#8217;,'dn&#8217; and &#8216;unique&#8217;,'pass&#8217; option will not let updates to<br />
occur with other attributes have the same value. */<br />
#  $servers-&gt;setValue(&#8217;unique&#8217;,'attrs&#8217;,array(&#8217;mail&#8217;,'uid&#8217;,'uidNumber&#8217;));</p>
<p>/* If you set this, then phpldapadmin will bind to LDAP with this user ID when<br />
searching for attribute uniqueness. The idea is, this user id would have full<br />
(readonly) access to your ldap directory (the logged in user may not), so<br />
that you can be guaranteed to get a unique uidnumber for your directory. */<br />
// $servers-&gt;setValue(&#8217;unique&#8217;,'dn&#8217;,null);</p>
<p>/* The password for the dn above. */<br />
// $servers-&gt;setValue(&#8217;unique&#8217;,'pass&#8217;,null);</p>
<p>/**************************************************************************<br />
* If you want to configure additional LDAP servers, do so below.         *<br />
* Remove the commented lines and use this section as a template for all  *<br />
* your other LDAP servers.                                               *<br />
**************************************************************************/</p>
<p>/*<br />
$servers-&gt;newServer(&#8217;ldap_pla&#8217;);<br />
$servers-&gt;setValue(&#8217;server&#8217;,'name&#8217;,'LDAP Server&#8217;);<br />
$servers-&gt;setValue(&#8217;server&#8217;,'host&#8217;,'127.0.0.1&#8242;);<br />
$servers-&gt;setValue(&#8217;server&#8217;,'port&#8217;,389);<br />
$servers-&gt;setValue(&#8217;server&#8217;,'base&#8217;,array(&#8221;));<br />
$servers-&gt;setValue(&#8217;login&#8217;,'auth_type&#8217;,'cookie&#8217;);<br />
$servers-&gt;setValue(&#8217;login&#8217;,'bind_id&#8217;,&#8221;);<br />
$servers-&gt;setValue(&#8217;login&#8217;,'bind_pass&#8217;,&#8221;);<br />
$servers-&gt;setValue(&#8217;server&#8217;,'tls&#8217;,false);</p>
<p># SASL auth<br />
$servers-&gt;setValue(&#8217;server&#8217;,&#8217;sasl_auth&#8217;,true);<br />
$servers-&gt;setValue(&#8217;server&#8217;,&#8217;sasl_mech&#8217;,'PLAIN&#8217;);<br />
$servers-&gt;setValue(&#8217;server&#8217;,&#8217;sasl_realm&#8217;,'EXAMPLE.COM&#8217;);<br />
$servers-&gt;setValue(&#8217;server&#8217;,&#8217;sasl_authz_id&#8217;,null);<br />
$servers-&gt;setValue(&#8217;server&#8217;,&#8217;sasl_authz_id_regex&#8217;,'/^uid=([^,]+)(.+)/i&#8217;);<br />
$servers-&gt;setValue(&#8217;server&#8217;,&#8217;sasl_authz_id_replacement&#8217;,'$1&#8242;);<br />
$servers-&gt;setValue(&#8217;server&#8217;,&#8217;sasl_props&#8217;,null);</p>
<p>$servers-&gt;setValue(&#8217;appearance&#8217;,'password_hash&#8217;,'md5&#8242;);<br />
$servers-&gt;setValue(&#8217;login&#8217;,'attr&#8217;,'dn&#8217;);<br />
$servers-&gt;setValue(&#8217;login&#8217;,'fallback_dn&#8217;,false);<br />
$servers-&gt;setValue(&#8217;login&#8217;,'class&#8217;,null);<br />
$servers-&gt;setValue(&#8217;server&#8217;,'read_only&#8217;,false);<br />
$servers-&gt;setValue(&#8217;appearance&#8217;,&#8217;show_create&#8217;,true);</p>
<p>$servers-&gt;setValue(&#8217;auto_number&#8217;,'enable&#8217;,true);<br />
$servers-&gt;setValue(&#8217;auto_number&#8217;,'mechanism&#8217;,&#8217;search&#8217;);<br />
$servers-&gt;setValue(&#8217;auto_number&#8217;,&#8217;search_base&#8217;,null);<br />
$servers-&gt;setValue(&#8217;auto_number&#8217;,'min&#8217;,array(&#8217;uidNumber&#8217;=&gt;1000,&#8217;gidNumber&#8217;=&gt;500));<br />
$servers-&gt;setValue(&#8217;auto_number&#8217;,'dn&#8217;,null);<br />
$servers-&gt;setValue(&#8217;auto_number&#8217;,'pass&#8217;,null);</p>
<p>$servers-&gt;setValue(&#8217;login&#8217;,'anon_bind&#8217;,true);<br />
$servers-&gt;setValue(&#8217;custom&#8217;,'pages_prefix&#8217;,'custom_&#8217;);<br />
$servers-&gt;setValue(&#8217;unique&#8217;,'attrs&#8217;,array(&#8217;mail&#8217;,'uid&#8217;,'uidNumber&#8217;));<br />
$servers-&gt;setValue(&#8217;unique&#8217;,'dn&#8217;,null);<br />
$servers-&gt;setValue(&#8217;unique&#8217;,'pass&#8217;,null);</p>
<p>$servers-&gt;setValue(&#8217;server&#8217;,'visible&#8217;,true);<br />
$servers-&gt;setValue(&#8217;login&#8217;,'timeout&#8217;,30);<br />
$servers-&gt;setValue(&#8217;server&#8217;,'branch_rename&#8217;,false);<br />
$servers-&gt;setValue(&#8217;server&#8217;,'custom_sys_attrs&#8217;,array(&#8217;passwordExpirationTime&#8217;,'passwordAllowChangeTime&#8217;));<br />
$servers-&gt;setValue(&#8217;server&#8217;,'custom_attrs&#8217;,array(&#8217;nsRoleDN&#8217;,'nsRole&#8217;,'nsAccountLock&#8217;));<br />
$servers-&gt;setValue(&#8217;force_may&#8217;,'attrs&#8217;,array(&#8217;uidNumber&#8217;,'gidNumber&#8217;,&#8217;sambaSID&#8217;));<br />
*/<br />
?&gt;</p>
<p><strong><span style="color: #000080"></span></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://haria1988.blog.ubuntu.org.cn/2009/11/14/openldap-%e5%88%9d%e5%a7%8b%e5%8c%96%e9%85%8d%e7%bd%ae/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>/etc/fstab中的空格问题</title>
		<link>http://haria1988.blog.ubuntu.org.cn/2009/11/07/etcfstab%e4%b8%ad%e7%9a%84%e7%a9%ba%e6%a0%bc%e9%97%ae%e9%a2%98/</link>
		<comments>http://haria1988.blog.ubuntu.org.cn/2009/11/07/etcfstab%e4%b8%ad%e7%9a%84%e7%a9%ba%e6%a0%bc%e9%97%ae%e9%a2%98/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 15:11:07 +0000</pubDate>
		<dc:creator>haria1988</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://haria1988.blog.ubuntu.org.cn/2009/11/07/etcfstab%e4%b8%ad%e7%9a%84%e7%a9%ba%e6%a0%bc%e9%97%ae%e9%a2%98/</guid>
		<description><![CDATA[/etc/fstab是不认空格的，要想挂载带空格的目录，需要转义，用40即可；
PS：下面是本人挂载的记录
/dev/sda2 /home/roty/Ubuntu40One/Data	  ext4    defaults	  0	  3
]]></description>
			<content:encoded><![CDATA[<p>/etc/fstab是不认空格的，要想挂载带空格的目录，需要转义，用40即可；<br />
PS：下面是本人挂载的记录<br />
/dev/sda2 /home/roty/Ubuntu40One/Data	  ext4    defaults	  0	  3</p>
]]></content:encoded>
			<wfw:commentRss>http://haria1988.blog.ubuntu.org.cn/2009/11/07/etcfstab%e4%b8%ad%e7%9a%84%e7%a9%ba%e6%a0%bc%e9%97%ae%e9%a2%98/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Ubuntu 9.10 Server中 配置Openssh</title>
		<link>http://haria1988.blog.ubuntu.org.cn/2009/11/01/%e5%9c%a8ubuntu-9-10-server%e4%b8%ad-%e9%85%8d%e7%bd%aeopenssh/</link>
		<comments>http://haria1988.blog.ubuntu.org.cn/2009/11/01/%e5%9c%a8ubuntu-9-10-server%e4%b8%ad-%e9%85%8d%e7%bd%aeopenssh/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 14:32:32 +0000</pubDate>
		<dc:creator>haria1988</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://haria1988.blog.ubuntu.org.cn/?p=94</guid>
		<description><![CDATA[1.安装openssh
sudo apt-get install openssh-server
2.配置openssh
sudo vim /etc/ssh/sshd_config
Port 22
PubkeyAuthentication yes
Banner /etc/issue.net
3.生成公钥，私钥
cd ~/.ssh/
ssh-keygen -t rsa
输入两次密钥中包含的密码,生成了一对密钥。
4.将公钥拷贝到客户机上
cp id_dsa.pub /opt/NFS/(/opt/NFS为服务器中的NFS位置，可在客户端中访问)
以下二步可省：
在客户端中挂载NFS
sudo mount -t nfs 192.168.1.2:/opt/NFS/ /mnt
拷贝公钥到相应目录
cp id_dsa.pub ~/.ssh/
5.拷贝公钥到服务器上，获得验证
ssh-copy-id roty@haria1988.com
roty:用户名
haria1988.com:主机名
第一次会提示
The authenticity of host &#8216;haria1988.com (192.168.1.2)&#8217; can&#8217;t be established.
RSA key fingerprint is ef:a5:08:d9:dc:92:68:e7:3f:fa:b0:95:ec:8a:7a:5c.
Are you sure you want to continue connecting (yes/no)?
输入yes，会生成一个known_hosts文件。下次就可以输入密码访问了。
6.访问
ssh &#8216;roty@haria1988.com&#8217;
]]></description>
			<content:encoded><![CDATA[<p>1.安装openssh</p>
<p>sudo apt-get install openssh-server</p>
<p>2.配置openssh</p>
<p>sudo vim /etc/ssh/sshd_config</p>
<p>Port <span style="color: red">22</span></p>
<p>PubkeyAuthentication <span style="color: red">yes</span></p>
<p>Banner /etc/issue.net</p>
<p>3.生成公钥，私钥</p>
<p>cd ~/.ssh/</p>
<p>ssh-keygen -t rsa</p>
<p>输入两次密钥中包含的密码,生成了一对密钥。</p>
<p>4.将公钥拷贝到客户机上</p>
<p>cp id_dsa.pub /opt/NFS/(/opt/NFS为服务器中的NFS位置，可在客户端中访问)</p>
<p>以下二步可省：</p>
<p>在客户端中挂载NFS</p>
<p>sudo mount -t nfs 192.168.1.2:/opt/NFS/ /mnt</p>
<p>拷贝公钥到相应目录</p>
<p>cp id_dsa.pub ~/.ssh/</p>
<p>5.拷贝公钥到服务器上，获得验证</p>
<p>ssh-copy-id roty@haria1988.com</p>
<p>roty:用户名</p>
<p>haria1988.com:主机名</p>
<p>第一次会提示</p>
<p>The authenticity of host &#8216;haria1988.com (192.168.1.2)&#8217; can&#8217;t be established.<br />
RSA key fingerprint is ef:a5:08:d9:dc:92:68:e7:3f:fa:b0:95:ec:8a:7a:5c.<br />
Are you sure you want to continue connecting (yes/no)?</p>
<p>输入yes，会生成一个known_hosts文件。下次就可以输入密码访问了。</p>
<p>6.访问</p>
<p>ssh &#8216;roty@haria1988.com&#8217;</p>
]]></content:encoded>
			<wfw:commentRss>http://haria1988.blog.ubuntu.org.cn/2009/11/01/%e5%9c%a8ubuntu-9-10-server%e4%b8%ad-%e9%85%8d%e7%bd%aeopenssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WinXP中增加静态IP-域名映射</title>
		<link>http://haria1988.blog.ubuntu.org.cn/2009/10/31/winxp%e4%b8%ad%e5%a2%9e%e5%8a%a0%e9%9d%99%e6%80%81ip-%e5%9f%9f%e5%90%8d%e6%98%a0%e5%b0%84/</link>
		<comments>http://haria1988.blog.ubuntu.org.cn/2009/10/31/winxp%e4%b8%ad%e5%a2%9e%e5%8a%a0%e9%9d%99%e6%80%81ip-%e5%9f%9f%e5%90%8d%e6%98%a0%e5%b0%84/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 05:32:06 +0000</pubDate>
		<dc:creator>haria1988</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://haria1988.blog.ubuntu.org.cn/?p=93</guid>
		<description><![CDATA[C:/WINDOWS/system32/drivers/etc/hosts 文件中加入
mail.haria1988.com 192.168.1.2
意思为将mail.haria1988.com解析为192.168.1.2
]]></description>
			<content:encoded><![CDATA[<p>C:/WINDOWS/system32/drivers/etc/hosts 文件中加入</p>
<p>mail.haria1988.com 192.168.1.2</p>
<p>意思为将mail.haria1988.com解析为192.168.1.2</p>
]]></content:encoded>
			<wfw:commentRss>http://haria1988.blog.ubuntu.org.cn/2009/10/31/winxp%e4%b8%ad%e5%a2%9e%e5%8a%a0%e9%9d%99%e6%80%81ip-%e5%9f%9f%e5%90%8d%e6%98%a0%e5%b0%84/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>修改命令行中的语言显示</title>
		<link>http://haria1988.blog.ubuntu.org.cn/2009/10/31/%e4%bf%ae%e6%94%b9%e5%91%bd%e4%bb%a4%e8%a1%8c%e4%b8%ad%e7%9a%84%e8%af%ad%e8%a8%80%e6%98%be%e7%a4%ba/</link>
		<comments>http://haria1988.blog.ubuntu.org.cn/2009/10/31/%e4%bf%ae%e6%94%b9%e5%91%bd%e4%bb%a4%e8%a1%8c%e4%b8%ad%e7%9a%84%e8%af%ad%e8%a8%80%e6%98%be%e7%a4%ba/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 05:28:09 +0000</pubDate>
		<dc:creator>haria1988</dc:creator>
				<category><![CDATA[知识积累]]></category>

		<guid isPermaLink="false">http://haria1988.blog.ubuntu.org.cn/2009/10/31/%e4%bf%ae%e6%94%b9%e5%91%bd%e4%bb%a4%e8%a1%8c%e4%b8%ad%e7%9a%84%e8%af%ad%e8%a8%80%e6%98%be%e7%a4%ba/</guid>
		<description><![CDATA[1. 修改/etc/default/locale
sudo vi /etc/default/locale1
修改默认的
LANG=zh_CN.UTF-8
LANGUAGE=zh_CN:zh
为:
LANG=&#8221;en_US.UTF-8&#8243;
LANGUAGE=&#8221;en_US:en&#8221;
2. sudo reboot
3. env 或者 locale 查看修改后的结果
]]></description>
			<content:encoded><![CDATA[<p>1. 修改/etc/default/locale</p>
<p>sudo vi /etc/default/locale1</p>
<p>修改默认的<br />
LANG=zh_CN.UTF-8<br />
LANGUAGE=zh_CN:zh<br />
为:<br />
LANG=&#8221;en_US.UTF-8&#8243;<br />
LANGUAGE=&#8221;en_US:en&#8221;</p>
<p>2. sudo reboot</p>
<p>3. env 或者 locale 查看修改后的结果</p>
]]></content:encoded>
			<wfw:commentRss>http://haria1988.blog.ubuntu.org.cn/2009/10/31/%e4%bf%ae%e6%94%b9%e5%91%bd%e4%bb%a4%e8%a1%8c%e4%b8%ad%e7%9a%84%e8%af%ad%e8%a8%80%e6%98%be%e7%a4%ba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>静态域名解析配置命令</title>
		<link>http://haria1988.blog.ubuntu.org.cn/2009/10/31/%e9%9d%99%e6%80%81%e5%9f%9f%e5%90%8d%e8%a7%a3%e6%9e%90%e9%85%8d%e7%bd%ae%e5%91%bd%e4%bb%a4/</link>
		<comments>http://haria1988.blog.ubuntu.org.cn/2009/10/31/%e9%9d%99%e6%80%81%e5%9f%9f%e5%90%8d%e8%a7%a3%e6%9e%90%e9%85%8d%e7%bd%ae%e5%91%bd%e4%bb%a4/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 02:00:03 +0000</pubDate>
		<dc:creator>haria1988</dc:creator>
				<category><![CDATA[知识积累]]></category>

		<guid isPermaLink="false">http://haria1988.blog.ubuntu.org.cn/?p=90</guid>
		<description><![CDATA[
静态域名解析配置命令

host
配置静态域名解析。
host host-name ip-address
【参数说明】
host-name为域名，最大长度为20的字符串。
ip-address为IP地址，点分十进制格式。
【缺省情况】
系统静态域名解析表为空。
【命令模式】
全局配置模式
【使用指南】
域名解析有两种：动态域名解析和静态域名解析，所谓静态域名解析，即用户手工配置域名到IP地址的映射，动态域名解析，则通过域名解析服务器（DNS）来解析。
Quidway(R) 系列路由器目前只支持静态域名解析，系统最多可以维护50条映射项。
【举例】
配置域名Quidway1到IP地址129.102.0.1的映射。
Quidway(config)#host Quidway1 129.102.0.1
【相关命令】
delete-host，show host
delete-host
删除静态域名解析项。
delete-host host-name
【参数说明】
host-name为域名，最大长度为20的字符串。
【缺省情况】
系统静态域名解析表缺省为空。
【命令模式】
全局配置模式
【使用指南】
域名解析有两种：动态域名解析和静态域名解析，所谓静态域名解析，即用户手工配置域名到IP地址的映射，动态域名解析，则通过域名解析服务器（DNS）来解析。
Quidway(R) 系列路由器目前只支持静态域名解析，系统最多可以维护50条映射项。
【举例】
删除域名为Quidway1的静态域名解析项。
Quidway(config)#delete-host Quidway1
【相关命令】
host，show host
s host
显示静态域名解析表
show host
【命令模式】
特权用户模式
【使用指南】
可以根据该命令的输出信息，确认用户对静态域名解析表输出是否正确。
【举例】
Quidway#show host
Quidway1 129.102.0.1
【相关命令】
host，delete-host
]]></description>
			<content:encoded><![CDATA[<div>
<h1 id="w_tt">静态域名解析配置命令</h1>
</div>
<div>host</div>
<div>配置静态域名解析。</div>
<div>host host-name ip-address</div>
<div>【参数说明】</div>
<p>host-name为域名，最大长度为20的字符串。<br />
ip-address为<a href="http://www.qqread.com/z/tech/ip/index.html" target="_blank">IP地址</a>，点分十进制格式。</p>
<p>【缺省情况】</p>
<p>系统静态域名解析表为空。</p>
<p>【命令模式】</p>
<p>全局配置模式</p>
<p>【使用指南】</p>
<p>域名解析有两种：<a href="http://www.qqread.com/tag/1316/index.html" target="_blank">动态域名解析</a>和静态域名解析，所谓静态域名解析，即用户手工配置域名到IP地址的映射，动态域名解析，则通过域名解析<a href="http://www.qqread.com/network/server/index.html" target="_blank">服务器</a>（<a href="http://www.qqread.com/z/tech/dns/index.html" target="_blank">DNS</a>）来解析。</p>
<p>Quidway(R) <a href="http://www.qqread.com/tag/3992/index.html" target="_blank">系列路由器</a>目前只支持静态域名解析，系统最多可以维护50条映射项。</p>
<p>【举例】</p>
<p>配置域名Quidway1到IP地址129.102.0.1的映射。</p>
<p>Quidway(config)#host Quidway1 129.102.0.1</p>
<p>【相关命令】</p>
<p>delete-host，show host</p>
<p>delete-host<br />
删除静态域名解析项。</p>
<p>delete-host host-name</p>
<p>【参数说明】</p>
<p>host-name为域名，最大长度为20的字符串。</p>
<p>【缺省情况】</p>
<p>系统静态域名解析表缺省为空。</p>
<p>【命令模式】</p>
<p>全局配置模式</p>
<p>【使用指南】</p>
<p>域名解析有两种：动态域名解析和静态域名解析，所谓静态域名解析，即用户手工配置域名到IP地址的映射，动态域名解析，则通过域名解析服务器（DNS）来解析。</p>
<p>Quidway(R) 系列路由器目前只支持静态域名解析，系统最多可以维护50条映射项。</p>
<p>【举例】</p>
<p>删除域名为Quidway1的静态域名解析项。</p>
<p>Quidway(config)#delete-host Quidway1</p>
<p>【相关命令】</p>
<p>host，show host</p>
<p>s host<br />
显示静态域名解析表</p>
<p>show host</p>
<p>【命令模式】</p>
<p>特权用户模式</p>
<p>【使用指南】</p>
<p>可以根据该命令的输出信息，确认用户对静态域名解析表输出是否正确。</p>
<p>【举例】</p>
<p>Quidway#show host</p>
<p>Quidway1 129.102.0.1</p>
<p>【相关命令】</p>
<p>host，delete-host</p>
]]></content:encoded>
			<wfw:commentRss>http://haria1988.blog.ubuntu.org.cn/2009/10/31/%e9%9d%99%e6%80%81%e5%9f%9f%e5%90%8d%e8%a7%a3%e6%9e%90%e9%85%8d%e7%bd%ae%e5%91%bd%e4%bb%a4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
