Linux安装Ldap

<p></p>
<p class="MsoNormal" align="left"><span lang="EN-US">berkeley-DB</span><span>的源代码</span><span lang="EN-US">(http://www.sleepycat.com/) </span><span>,我的是</span><span lang="EN-US">4.1.25</span><span>,</span><span lang="EN-US">openldap</span><span>需要这东西,这个不好配置,所以我就把它装到</span><span lang="EN-US">/usr</span><span>下去了。</span><span lang="EN-US"></span><span lang="EN-US"><br>
# tar zxvf db-4.1.25.tar.gz</span><span lang="EN-US"></span><span lang="EN-US"><br>
# cd db-4.1.25</span><span lang="EN-US"></span><span lang="EN-US"><br>
# cd dist</span><span lang="EN-US"></span><span lang="EN-US"><br>
# ./configure --prefix=/usr</span><span lang="EN-US"></span><span lang="EN-US"><br>
# make</span><span lang="EN-US"></span><span lang="EN-US"><br>
# make install</span></p>
<p class="MsoNormal" align="left"><span lang="EN-US"><br></span></p>
<p class="MsoNormal" align="left"><span>然后就可以开始安装</span><span lang="EN-US">openldap</span><span>了,我用的是</span><span lang="EN-US">2.1.22</span><span>,原码是从</span><span lang="EN-US">http://www.openldap.org/</span><span>上下载的。</span><span lang="EN-US"></span><span lang="EN-US"><br>
# tar zxvf openldap-2.1.22.tgz</span><span lang="EN-US"></span><span lang="EN-US"><br>
# cd openldap-2.1.22</span><span lang="EN-US"></span><span lang="EN-US"><br>
# ./configure --prefix=/usr/local/openldap</span><span lang="EN-US"></span><span lang="EN-US"><br>
# make depend</span><span lang="EN-US"></span><span lang="EN-US"><br>
# make</span><span lang="EN-US"></span><span lang="EN-US"><br>
# make test</span><span lang="EN-US"></span><span lang="EN-US"><br>
# make install</span></p>
<p class="MsoNormal" align="left"></p>
<p class="MsoNormal" align="left"><span lang="EN-US">安装完以后到/usr/local/openldap/libexec目录下用./slapd启动服务</span></p>
<p></p>
<p class="MsoNormal" align="left"></p>
<p class="MsoNormal" align="left">如果在客户端访问出错,则可能是防火墙的问题。要开启防火墙,或者开启389端口</p>
<p class="MsoNormal" align="left"></p>
<p class="MsoNormal" align="left">临时关闭防火墙:</p>
<p class="MsoNormal" align="left">service iptables start</p>
<p class="MsoNormal" align="left">service iptables stop</p>
<p class="MsoNormal" align="left"></p>
<p class="MsoNormal" align="left">设置IP:</p>
<p class="MsoNormal" align="left">ifconfig eth0 down</p>
<p class="MsoNormal" align="left">ifconfig eth0 ip netmask 255.255.255.0 up</p>
<p class="MsoNormal" align="left"></p>
<p class="MsoNormal" align="left">linux访问windows共享文件夹</p>
<p class="MsoNormal" align="left">smbclient //ip/共享文件夹名 -U windows系统用户名</p>
<p class="MsoNormal" align="left">再输入密码</p>
<p class="MsoNormal" align="left"></p>

你可能感兴趣的:(linux)