ITeye博客

OpenLDAP

zerostar88 · 2010-05-31 09:27 · OpenLDAP · 编程语言 · Markdown

评论(10)

  1. #10 楼 · zerostar88 · 2010-06-05 10:59

    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

  2. #9 楼 · zerostar88 · 2010-06-05 10:46
  3. #8 楼 · zerostar88 · 2010-06-02 16:43

    OpenLDAP TechTip:Introduction to OpenLDAP Overlays http://www.symas.com/introtooverlays.shtml

  4. #7 楼 · zerostar88 · 2010-06-02 16:33
  5. #6 楼 · zerostar88 · 2010-06-02 15:25
  6. #5 楼 · zerostar88 · 2010-06-02 15:02

    禁用防火墙:

    service iptables save

    service iptables stop

    chkconfig iptables off

  7. #4 楼 · zerostar88 · 2010-06-02 08:38

    OpenLDAP slapd.conf database bdb and hdb: http://www.zytrax.com/books/ldap/ch6/bdb.html

  8. #3 楼 · zerostar88 · 2010-06-02 08:19
  9. #2 楼 · zerostar88 · 2010-06-01 23:22

    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

  10. #1 楼 · zerostar88 · 2010-06-01 17:07

    Openldap 安装笔记:转 http://iyw.me/archives/5.html

评论功能维护中,当前仅展示历史评论。