how do you know that this libraries are foreign? im learning ldap…i have the same problem even I delete them.
suse1:/usr/local/lib # ldd /usr/lib/openldap/slapd
linux-gate.so.1 => (0xffffe000)
libldap_r-2.4.so.2 => /usr/lib/libldap_r-2.4.so.2 (0xb74ec000)
liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0xb74dc000)
libltdl.so.7 => /usr/lib/libltdl.so.7 (0xb74d1000)
libdb-4.5.so => /usr/lib/libdb-4.5.so (0xb7393000)
libslp.so.1 => /usr/lib/libslp.so.1 (0xb7379000)
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb735f000)
libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0xb71ed000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0xb71b7000)
libwrap.so.0 => /lib/libwrap.so.0 (0xb71ac000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7192000)
libc.so.6 => /lib/libc.so.6 (0xb7031000)
libresolv.so.2 => /lib/libresolv.so.2 (0xb701b000)
libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0xb6fd0000)
libdl.so.2 => /lib/libdl.s
suse1:/usr/local/lib # cat /etc/openldap/slapd.conf
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/rfc2307bis.schema
include /etc/openldap/schema/yast.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/slapd/slapd.pid
argsfile /var/run/slapd/slapd.args
# Load dynamic backend modules:
# modulepath /usr/lib/openldap/modules
# moduleload back_bdb.la
# moduleload back_hdb.la
# moduleload back_ldap.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 to user password
# Allow anonymous users to authenticate
# Allow read access to everything else
# Directives needed to implement policy:
access to dn.base=""
by * read
access to dn.base="cn=Subschema"
by * read
access to attrs=userPassword,userPKCS12
by self write
by * auth
access to attrs=shadowLastChange
by self write
by * read
access to *
by * read
# 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 bdb
#suffix "dc=my-domain,dc=com"
suffix "dc=suse1,dc=internal"
checkpoint 1024 5
cachesize 10000
#rootdn "cn=Manager,dc=my-domain,dc=com"
rootdn "cn=Manager,dc=suse1,dc=internal"
# 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
rootpw abc123
# 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/lib/ldap
# Indices to maintain
index objectClass eq
#####
#REPLICATION
#####
replogfile /var/lib/ldap/slapd.replog
replication host=suse2.internal:389
binddn="cn=Manager,dc=suse1,dc=internal"
credentials=abc123
bindmethod=simple
tls=no
suse1:/usr/local/lib #
suse2:/usr/local/lib # cat /etc/openldap/slapd.conf
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/rfc2307bis.schema
include /etc/openldap/schema/yast.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/slapd/slapd.pid
argsfile /var/run/slapd/slapd.args
# Load dynamic backend modules:
# modulepath /usr/lib/openldap/modules
# moduleload back_bdb.la
# moduleload back_hdb.la
# moduleload back_ldap.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 to user password
# Allow anonymous users to authenticate
# Allow read access to everything else
# Directives needed to implement policy:
access to dn.base=""
by * read
access to dn.base="cn=Subschema"
by * read
access to attrs=userPassword,userPKCS12
by self write
by * auth
access to attrs=shadowLastChange
by self write
by * read
access to *
by * read
# 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 bdb
#suffix "dc=my-domain,dc=com"
suffix "dc=suse1,dc=internal"
checkpoint 1024 5
cachesize 10000
#rootdn "cn=Manager,dc=my-domain,dc=com"
rootdn "cn=Manager,dc=suse1,dc=internal"
updatedn "cn=Manager,dc=suse1,dc=internal"
updateref ldap://suse1.internal
# 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
rootpw abc123
# 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/lib/ldap
# Indices to maintain
index objectClass eq
suse2:/usr/local/
suse1:/usr/local/lib # slaptest
/etc/openldap/slapd.conf: line 87: <replogfile> keyword is obsolete (ignored)
/etc/openldap/slapd.conf: line 92: unknown directive <replication> inside backend database definition.
slaptest: bad configuration file!
suse1:/usr/local/lib
still kind of learning…cant find anything wrong with it.
thank you.
julie