LDAP服务器端设置指南
来源:互联网 发布:数据查询工具 编辑:程序博客网 时间:2024/06/06 03:48
sudo apt-get install slapd ldap-utils db4.2-util
slapd是LDAP的daemon程序,ldap-utils是LDAP的工具集,db4.2-util是LDAP的后端数据库支持。
基本设定
#vi /etc/ldap/ldap.conf
HOST 127.0.0.1
BASE dc=gmshi,dc=org
设定密码
#slappasswd
New password: your_password
Re-enter new password: your_password
{SSHA}xxxxxxxxxxxxxxxxxxx(复制起来,以后有用)
修改设定档
vi /etc/ldap/slapd.conf
include /etc/ldap/schema/samba.schema
database bdb
suffix "dc=gmshi,dc=org"
rootdn "cn=admin,dc=gmshi,dc=org"
rootpw {SSHA}xxxxxxxxxxxx.....
directory /var/lib/ldap
#数据存放地址
#使用者密码只能由自己变更,对于匿名使用者只限于于密码验证,其余禁止取用
access to attrs=userPassword
by self write
by anonymous auth
by * none
#限制只有本机与局域网的使用者可以读取帐号咨询
access to attrs=uid,uidNumber,gidNumber,loginShell,homeDirectory
by peername.ip=127.0.0.1 read
by peername.ip=192.168.1.0%255.255.255.0 read
#以上没有规定的部分,都予以读取权限
access to *
by * read
清除所有 LDAP 資料, 從零開始
/etc/init.d/ldap stop
rm -f /var/lib/ldap/*
slapadd -v -l new_structure.ldif
chown ldap:ldap /var/lib/ldap/*
/etc/init.d/ldap start
- LDAP服务器端设置指南
- 成功安装LDAP指南
- QC集成LDAP指南
- WildFly LDAP设置
- linux设置ldap登录
- LDAP服务器搭建新手指南
- LDAP客户端+Samba架设指南
- OpenLDAP快速指南 (LDAP简介)
- OpenLDAP快速指南 (LDAP简介)
- java服务器端成长指南
- Grafana之ldap认证设置
- [LDAP][翻译]OpenLDAP管理员指南(仅前七章)
- CentOS下LDAP服务配置指南
- CentOS下LDAP服务配置指南
- 各开发语言LDAP认证指南
- LDAP
- LDAP
- LDAP
- good blog
- OpenSSL相关命令(for Linux)
- oracle的关系树查询
- C语言中的指针(*p p &p)
- 时隔2年的一篇blog,给一些遇到此问题需要帮助的java me开发人员
- LDAP服务器端设置指南
- 移动的TD-SCDMA三G业务;电信CDMA2000三G业务;联通WCDMA三G业务;觉得哪个的无线网络速度会更快?
- LDAP客户端+Samba架设指南
- Create file under /proc -- Manage it with standard file system
- 日记090903
- RAS
- 我落伍了 555~
- 也谈Release版本排错
- 朋友