[Comm] ldap не запускается

Дворников Михаил m_dvor на soc.adm.yar.ru
Вт Фев 17 09:47:59 MSK 2004


crux wrote:

> попробуй перенести базы ldap (по умолчанию /var/lib/ldap/bases/* ) 
> куда-нибудь в безопасное место (или удалить вообще), и снова 
> попробовать.запустить.
> конечно вся уже записанная информация в ldap исчезнет, но сервер 
> должен запуститься.
> Если по прежнему не будет работать, то покажи свой slapd.conf и 
> расскажи как ставил (rpm или из сырцов, версия).
>
Master 2.2 + updates, ставлю openldap из rpm, версия 2.1.12
apt-get install ^openldap
Ставлю LDAP в первый раз. Базы не смог создать.
Изменения slapd.conf минимальные. Из файла m.ldif пытался создать базу.

-------------- next part --------------
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.23.2.5 2002/11/26 18:26:01 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
# Modified by Christian Zoffoli <czoffoli at linux-mandrake.com>
# Version 0.2
# 
# Modified by Volkov Serge <vserge at altlinux.ru>
# Version 0.4
# Last modification at 1 Aug 2002
#

# Default schemas
include	/etc/openldap/schema/core.schema
include	/etc/openldap/schema/cosine.schema
include	/etc/openldap/schema/inetorgperson.schema
include	/etc/openldap/schema/misc.schema
include	/etc/openldap/schema/nis.schema
include	/etc/openldap/schema/openldap.schema 
#include	/etc/openldap/schema/krb5-kdc.schema
#include	/etc/openldap/schema/kerberosobject.schema
#include	/etc/openldap/schema/corba.schema 
#include	/etc/openldap/schema/java.schema 

# Addon schemas
#include	/etc/openldap/schema/rfc822-MailMember.schema
#include	/etc/openldap/schema/pilot.schema
#include	/etc/openldap/schema/autofs.schema
#include	/etc/openldap/schema/samba.schema
#include	/etc/openldap/schema/qmail.schema
#include	/etc/openldap/schema/qmailControl.schema
# Experemental shemas
#include	/etc/openldap/schema/cron.schema
#include	/etc/openldap/schema/dns.schema
#include	/etc/openldap/schema/trust.schema
#include	/etc/openldap/schema/turbo.schema

# Netscape Roaming
#include	/etc/openldap/schema/mull.schema
#include	/etc/openldap/schema/netscape-profile.schema

# Local schema, that you will be constract 
#include	/etc/openldap/schema/local.schema

# LogLevel information
# if you want enable debuggin mode
# choose one of the next
# and check /etc/syslog.conf for line
# "LOCAL4.*    /var/log/ldap/log" exist
# ---------------------------------------------------
# |    -1      |       enable all debugging
# |    0       |       no debugging
# |    1       |       trace function calls
# |    2       |       debug packet handling
# |    4       |       heavy trace debugging
# |    8       |       connection management
# |    16      |       print out packets sent and received
# |    32      |       search filter processing
# |    64      |       configuration file processing
# |    128     |       access control list processing
# | 256        |       stats log connections/operations/results
# |    512     |       stats log entries sent
# | 1024|      print communication with shell backends
# | 2048|      print entry parsing debugging
# ---------------------------------------------------
loglevel 0

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral	ldap://root.openldap.org

pidfile		/var/run/slapd.pid
argsfile	/var/run/slapd.args

# Load dynamic backend modules:
# modulepath	/usr/lib/openldap
# moduleload	back_bdb.la
# moduleload	back_ldap.la
# moduleload	back_ldbm.la
# moduleload	back_passwd.la
# moduleload	back_shell.la
# This module not work now whating whalie author correct him
# moduleload	back_sql.la
# modeleload	back_monitor.la

# To allow TLS-enabled connections, create /usr/share/ssl/certs/slapd.pem
# and uncomment the following lines.
#TLSCipherSuite         HIGH:MEDIUM:+SSLv2
 TLSCertificateFile      /etc/openldap/ldap.pem
 TLSCertificateKeyFile   /etc/openldap/ldap.pem
 TLSCACertificateFile    /etc/openldap/ldap.pem


# Define global ACLs to disable default read access.
#include 	/etc/openldap/slapd.access.conf

# Sample security restrictions
#
#   Disallow clear text exchange of passwords
# disallow bind_simple_unprotected
#
#	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
#	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 *
#	by self write
#	by users read
#	by anonymous auth
#
# if no access controls are present, the default policy is:
#	Allow read by all
#
# rootdn can always write!

#######################################################################
# ldbm database definitions
#######################################################################

database	bdb
#database	ldbm
suffix		"dc=dep,dc=ru"
rootdn		"cn=Manager,dc=dep,dc=ru"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw		secret
# The database directory MUST exist prior to running slapd AND 
# should only be accessible by the slapd/tools. Mode 700 recommended.
directory	/var/lib/ldap/bases

# Indices to maintain
#index objectClass     eq
index objectClass,uid,uidNumber,gidNumber     eq
index cn,mail,surname,givenname               eq,subinitial
-------------- next part --------------
dn: cn=Mihail V Dvornikov, dc=dep, dc=ru
cn: Mihail V Dvornikov
cn: Mihail Dvornikov
mail: m_dvor at mail.ru
objectClass: person


Подробная информация о списке рассылки Community