LDAP-Series-1-Chapter-2
来源:互联网 发布:多点触摸软件 编辑:程序博客网 时间:2024/06/05 08:50
Config LDAP.
- Directory struct.
|-- bin(ldap tool)| |-- ldapadd -> ldapmodify| |-- ldapcompare| |-- ldapdelete| |-- ldapexop| |-- ldapmodify| |-- ldapmodrdn| |-- ldappasswd| |-- ldapsearch| |-- ldapurl| `-- ldapwhoami|-- etc(config file)| `-- openldap|-- include| |-- lber.h| |-- lber_types.h| |-- ldap_cdefs.h| |-- ldap_features.h| |-- ldap.h| |-- ldap_schema.h| |-- ldap_utf8.h| |-- ldif.h| `-- slapi-plugin.h|-- LDIF(make by myself)| |-- init.ldif| `-- modify.ldif|-- lib| |-- liblber-2.4.so.2 -> liblber-2.4.so.2.8.4| |-- liblber-2.4.so.2.8.4| |-- liblber.a| |-- liblber.la| |-- liblber.so -> liblber-2.4.so.2.8.4| |-- libldap-2.4.so.2 -> libldap-2.4.so.2.8.4| |-- libldap-2.4.so.2.8.4| |-- libldap.a| |-- libldap.la| |-- libldap_r-2.4.so.2 -> libldap_r-2.4.so.2.8.4| |-- libldap_r-2.4.so.2.8.4| |-- libldap_r.a| |-- libldap_r.la| |-- libldap_r.so -> libldap_r-2.4.so.2.8.4| `-- libldap.so -> libldap-2.4.so.2.8.4|-- libexec| `-- slapd(start ldap)|-- PHP_LDAP(Make by myself)| |-- action.php| |-- ldap.php| `-- m_ldap.php|-- sbin| |-- killslap.sh (write to kill slapd)| |-- slapacl -> ../libexec/slapd| |-- slapadd -> ../libexec/slapd| |-- slapauth -> ../libexec/slapd| |-- slapcat -> ../libexec/slapd| |-- slapdn -> ../libexec/slapd| |-- slapindex -> ../libexec/slapd| |-- slappasswd -> ../libexec/slapd| |-- slapschema -> ../libexec/slapd| `-- slaptest -> ../libexec/slapd|-- share| `-- man`-- var |-- openldap-data |-- run `-- weiwejiaLdap(make to store my ldap)
- The structure is clear now.
- Go into openldap/etc/openldap(structure like blow)
|-- ACL.conf(make by myself to contain ACL config)|-- DB_CONFIG.example|-- ldap.conf|-- ldap.conf.default|-- schema|-- slapd.conf|-- slapd.conf.bck|-- slapd.conf.default|-- slapd.ldif`-- slapd.ldif.default
- First, you should vi slapd.conf
- include /usr/local/openldap/etc/openldap/schema/core.schema
include /usr/local/openldap/etc/openldap/schema/cosine.schema
include /usr/local/openldap/etc/openldap/schema/inetorgperson.schema (inetorgperson)
include /usr/local/openldap/etc/openldap/schema/nis.schema (posixaccount,posixgroup) All above is schema. - include /usr/local/openldap/etc/openldap/ACL.conf (ACL file)
- database bdb
suffix "dc=xxx,dc=org"
rootdn "cn=admin,dc=xxx,dc=org"
directory /usr/local/openldap/var/weiwejiaLdap (dir to contain the ldap)
OK, the dn of super root is "cn=admin,dc=xxx,dc=org" now. Password set as rootpw, Using slappasswd to generate.
- LDAP-Series-1-Chapter-2
- LDAP-Series-1-Chapter-1
- LDAP-Series-1-Chapter-3 - PHP-LDAP
- LDAP-Series-1-Chapter-4 - ACL file
- Chapter 2 The ARM Archetecture——Cortex-A Series Programmer's Guide
- Paiting Series 1: Part 2
- C和指针(Chapter 1 & Chapter 2)
- ccna 1 Chapter 2
- Chapter 1-2学习
- chapter 1~2
- AcmStep Chapter One Section One—A+B problem series
- 读书笔记:Deep Learning [Ada-Computation&ML series]--chapter 14.Autoencoder
- Effective Objective-C 2.0 Tips 总结 Chapter 1 & Chapter 2
- Inside OLE 2(Chapter 1)
- SUMMARY OF CHAPTER 1-2
- Chapter 2
- chapter 2
- Chapter 2
- 线程同步与双队列
- V8 and Javascript gotchas
- HMM之前向算法
- VC 如何判断是否是组合键消息
- hdoj 2551
- LDAP-Series-1-Chapter-2
- phonegap中设置横向全屏
- servlet获取参数
- hdoj 2552
- 递归求全排列
- 金牌太少,伤了俄罗斯的名族自尊心
- hdoj 2573
- 备忘录模式(Memento)
- C语言中的auto、 register、extern、static用法