http://www.lissyara.su/?id=1487&comment ... mment_3427
при загрузке зависает долго и чтото пытается делать
Mar 28 14:16:57 server sm-mta[699]: My unqualified host name (server) unknown; sleeping for retry
при команде /usr/local/etc/openldap/> ldapadd -x -D "cn=root,dc=sco,dc=ru" -w password -f main.ldif
выдает ошибку ldap_bind: Invalid credentials (49)
мб подсажете где ошибся
FreeBSD server 6.3-STABLE FreeBSD 6.3-STABLE #0: Wed Mar 26 21:59:44 OMST 2008 nnn@server:/usr/obj/usr/src/sys/NOX i386
установленные пакеты
- cvsup-without-gui-16.1h_3 General network file distribution system optimized for
CVS
db44-4.4.20.4 The Berkeley DB package, revision 4.4
ezm3-1.2_1 Easier, more portable Modula-3 distribution for building CV
gamin-0.1.9_1 A file and directory monitoring system
gettext-0.16.1_3 GNU gettext package
gio-fam-backend-2.16.1_1 FAM backend for GLib's GIO library
glib-2.16.1_2 Some useful routines of C programming (current stable versi
gmake-3.81_2 GNU version of 'make' utility
libiconv-1.9.2_2 A character set conversion library
libltdl-1.5.24 System independent dlopen wrapper
libtool-1.5.24 Generic shared library support script
mc-4.6.1_6 Midnight Commander, a free Norton Commander Clone
openldap-client-2.3.41 Open source LDAP client implementation
openldap-server-2.3.41 Open source LDAP server implementation
pcre-7.6 Perl Compatible Regular Expressions library
perl-5.8.8_1 Practical Extraction and Report Language
pkg-config-0.23_1 A utility to retrieve information about installed libraries
python25-2.5.2_1 An interpreted object-oriented programming language
Код: Выделить всё
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
include /usr/local/etc/openldap/schema/misc.schema
include /usr/local/etc/openldap/schema/nis.schema
inclede /usr/local/etc/openldap/schema/openldap.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 /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
# Load dynamic backend modules:
modulepath /usr/local/libexec/openldap
#moduleload back_bdb
#moduleload back_ldap
moduleload back_ldbm
# moduleload back_passwd
# moduleload back_shell
# 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 attrs=userPassword
by self write
by anonymous auth
by * none
access to *
by self write
by anonymous read
by * none
#
# 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!
#######################################################################
# BDB database definitions
#######################################################################
database ldbm
#suffix "dc=my-domain,dc=com"
#rootdn "cn=Manager,dc=my-domain,dc=com"
suffix "dc=sco,dc=ru"
rootdn "cn=root,dc=sco,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 {SSHA}srOCP7gm1aV1hdN4IS6cHquwCgmQ0QbC
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory /var/db/openldap-data
loglevel 256
# Indices to maintain
index objectClass eq
index cn eq
Код: Выделить всё
font8x14="cp866-8x14"
font8x16="cp866b-8x16"
font8x8="cp866-8x8"
hostname="server"
ifconfig_sk0="DHCP"
keymap="ru.koi8-r"
mousechar_start="3"
usbd_enable="YES"
inetd_enable="YES"
local_startup="/usr/local/etc/rc.d"
slapd_enable="YES"
slapd_flags='-h "ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldap://172.31.0.63/ ldap://127.0.0.1"'
slapd_sockets="/var/run/openldap/ldapi"
ntpdate_enable="YES"
ntpdate_flags="ru.pool.ntp.org"
Код: Выделить всё
Mar 28 13:58:02 server slapd[581]: @(#) $OpenLDAP: slapd 2.3.41 (Mar 27 2008 15:29:59) $ root@server:/usr/ports/net/openldap23-server/work/openldap-2.3.41/servers/slapd
Mar 28 13:58:02 server slapd[582]: WARNING: No dynamic config support for database ldbm.
Mar 28 13:58:02 server slapd[582]: slapd starting
Mar 28 14:05:45 server slapd[582]: conn=0 fd=10 ACCEPT from IP=127.0.0.1:62327 (IP=127.0.0.1:389)
Mar 28 14:05:45 server slapd[582]: conn=0 op=0 BIND dn="cn=root,dc=zsz,dc=ru" method=128
Mar 28 14:05:45 server slapd[582]: conn=0 op=0 RESULT tag=97 err=49 text=
Mar 28 14:05:45 server slapd[582]: conn=0 fd=10 closed (connection lost)
Mar 28 14:49:54 server slapd[582]: conn=1 fd=10 ACCEPT from IP=127.0.0.1:60551 (IP=127.0.0.1:389)
Mar 28 14:49:54 server slapd[582]: conn=1 op=0 BIND dn="cn=root,dc=zsz,dc=ru" method=128
Mar 28 14:49:54 server slapd[582]: conn=1 op=0 RESULT tag=97 err=49 text=
Mar 28 14:49:54 server slapd[582]: conn=1 fd=10 closed (connection lost)