OpenLDAP 笔记

本文档提供了在RHEL5.2上安装BerkeleyDB4.6.x和OpenLDAP2.4.13的详细步骤。首先安装必要的依赖包如GnuTLS、CyrusSASL等,然后逐步安装BerkeleyDB并调整系统路径,最后完成OpenLDAP的安装与配置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

放弃了SLES 11 。因为太不稳定了。重新装了个RHEL 5.2。 以下是记录的大致安装过程。

 

prerequisite software:

Berkeley DB 4.6.x (4.7.x is invalid)

OpenLDAP 2.4.13

 

check these software package first: (normally exsiting in RHEL,but not SLES 11)

GnuTLS

Cyrus SASL

Kerberos

 

ps: gcc is required too. To install gcc , you'd better to search the rpm package in Installation-DVD/server. All the .rpm stored in there. When you install a .rpm, you probably need dependencies in other .rpm, install all what they tell you that they need. In order to install gcc-4.1.2-42.el5.i386.rpm

I have installed:

glibc-devel-2.5-24.i386.rpm

glibc-headers-2.5-24.i386.rpm

ibm-java2-i386-sdk-5.0-7.0.i386.rpm

kernel-headers-2.6.18-92.el5.i386.rpm

libgomp-4.1.2-42.el5.i386.rpm

 

then we can begin to install Berkeley DB 4.6.x:

unzip db-4.6.x.tar.gz

under build-unix folder, run ../dist/configure

make

make install

 

cp /usr/local/Berkeley DB.4.6/include/*  /usr/include

cp /usr/local/Berkeley DB.4.6/lib/*  /usr/lib

 

Finally, we can install OpenLDAP:

unzip openldap-2.4.13.tgz

./configure (if succeed, it will show "enter make depend")

make depend

make

make test (it will take a long~~time)

make install

 

启动/验证安装:

start the service: /usr/local/libexec/slapd

verify: ps -ef|grep slapd

view the process ID: cat /usr/local/var/run/slapd.pid

stop service: kill -INT xxxx

 

使用OpenLDAP前需要配置 slapd.conf 存储在 /usr/local/etc/openldap/下

添加.ldif文件:

ldapadd -x -D cn=Manager,dc=tomato,dc=com -w secret -f xxx.ldif

这里是错误高发区,下回总结个troubleshooting.

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值