OpenLDAP
OpenLDAP official site:
Download:
http://www.openldap.org/software/download/
Admin Guide:
http://www.openldap.org/doc/admin24/
Document(1.2 version):
http://penrose.safehaus.org/penrose12/documentation.html
Setting up ldap with back-sql:
http://www.flatmtn.com/article/setting-ldap-back-sql
back-sql configuration:
http://www.openldap.org/doc/admin24/backends.html#SQL
openLDAP+mysql:
http://crmky.spaces.live.com/blog/cns!8C989768DB1A6B14!443.entry
OpenLDAP管理员指南:
LDAP Sample codes:
http://developer.novell.com/documentation/samplecode/jldap_sample/index.htm
LDAP brower:
Using OpenLDAP with Microsoft SQL Server and Oracle Backend Database:
http://www.easysoft.com/applications/openldap/back-sql-odbc.html
Berkeley DB download:
http://www.oracle.com/technology/software/products/berkeley-db/index.html
(转)openldap安装与配置全程记录:
See slapd.conf(5) for details on configuration options.
This file should NOT be world readable.
include /usr/local/openldap/etc/openldap/schema/core.schema
Define global ACLs to disable default read access.
Do not enable referrals until AFTER you have a working directory
service AND an understanding of referrals.
#referral ldap://root.openldap.org
pidfile /usr/local/var/run/slapd.pid argsfile /usr/local/var/run/slapd.args
Load dynamic backend modules:
modulepath /usr/local/libexec/openldap
moduleload back_bdb.la
moduleload back_hdb.la
moduleload accesslog.la
Sample security restrictions
Require integrity protection (prevent hijacking)
Require 112-bit (3DES or better) encryption for updates
Require 63-bit encryption for simple bind
security ssf=1 update_ssf=112 simple_bind=64
Sample access control policy:
Root DSE: allow anyone to read it
Subschema (sub)entry DSE: allow anyone to read it
Other DSEs:
Allow self write access
Allow authenticated users read access
Allow anonymous users to authenticate
Directives needed to implement policy:
access to dn.base="" by * read
access to dn.base="cn=Subschema" by * read
access to *
by self write
by users read
by anonymous auth
if no access controls are present, the default policy
allows anyone and everyone to read anything but restricts
updates to rootdn. (e.g., "access to * by * read")
rootdn can always read and write EVERYTHING!
##############################################
Log config
loglevel 297 ##############################################
#######################################################################
BDB database definitions
#######################################################################
######### accesslog database definitions ############### database bdb suffix cn=accesslog directory /usr/local/var/openldap-data/accesslog rootdn cn=accesslog index reqStart eq #index default eq #index entryCSN,objectClass,reqEnd,reqResult,reqStart
######### primary DB definitions ######### database bdb suffix "dc=example,dc=com" rootdn "cn=admin,dc=example,dc=com" rootpw pass directory /usr/local/var/openldap-data index objectClass eq
######### accesslog overlay definitions for primary database ######### overlay accesslog logdb cn=accesslog logops writes reads logsuccess TRUE
scan the accesslog DB every day, and purge entries older than 7 days
logpurge 07+00:00 01+00:00
overlay configuration: http://wiki.samba.org/index.php/2.0._Configuring_LDAP
OpenLDAP TechTip:Introduction to OpenLDAP Overlays http://www.symas.com/introtooverlays.shtml
LDAP Concepts & Overview: http://www.zytrax.com/books/ldap/ch2/index.html#database
Chapter 13. Customizing Schema: http://redhat01.managed.contegix.com:81/docs/admin/html/chap-Admin_Guide-Customizing_Schema.html
禁用防火墙:
service iptables save
service iptables stop
chkconfig iptables off
OpenLDAP slapd.conf database bdb and hdb: http://www.zytrax.com/books/ldap/ch6/bdb.html
http://manpages.ubuntu.com/manpages/lucid/man5/slapo-accesslog.5.html
http://linux.die.net/man/5/slapo-syncprov http://www.openldap.org/doc/admin24/overlays.html http://linux.die.net/man/5/slapo-lastmod http://linux.die.net/man/5/slapo-accesslog
Openldap 安装笔记:转 http://iyw.me/archives/5.html