![]()
From: ismail@ibu.edu.tr
Date: Mon 24 Mar 2003 - 23:57:28 EET
Merhabalar,
Redhat 8.0 kullanıyorum ve üzerinde OpenLdap 2.1.12 kurulu aşağıda
example.ldif dosyamın bir kopyasını ve slapd.conf dosyamı gönderiyorum;
daha sonrada sorunumu tanımlayacağım yardımcı olabileceklere şimdiden çok
teşekkür ediyorum.
Saygılarımla,
ismail
---------------------
example.ldif
============
dn: dc=web,dc=ibu,dc=edu,dc=tr
objectclass: organization
objectclass: dcObject
o: web university
dc: web
dn: cn=Manager, dc=web, dc=ibu, dc=edu, dc=tr
cn: Manager
sn: Manager
objectclass: person
slapd.conf
==========
# $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.
#
include /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/var/slapd.pid
argsfile /usr/var/slapd.args
# Load dynamic backend modules:
# modulepath /usr/sbin//openldap
# moduleload back_bdb.la
# moduleload back_ldap.la
# moduleload back_ldbm.la
# moduleload back_passwd.la
# moduleload back_shell.la
# Sample security restrictions
#
# Disallow clear text exchange of passwords
# disallow bind_simple_unprotected
#allow simple_bind
#
# 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 * by * read
access to * by * write
access to *
by * self write
by anonymous auth
by * read
#
# if no access controls are present, the default policy is:
Allow read by all
# Allow write by all
#
# rootdn can always write!
#######################################################################
# ldbm database definitions
#######################################################################
database bdb
suffix "dc=web, dc=ibu, dc=edu, dc=tr"
rootdn "cn=Manager,dc=web, dc=ibu, dc=edu, dc=tr"
# 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 /usr/var/openldap-data
# Indices to maintain
index objectClass eq
# database access control definitions
-------------------------------
ldapadd -x -D "cn=Manager,dc=web,dc=ibu,dc=edu,dc=tr" -W -f example.ldif
Manager user'ının default passwordu ile bu kaydı ekleyebiliyorum. Ama
ldapadd -x -D "cn=ismail,dc=web,dc=ibu,dc=edu,dc=tr" -f example.ldif
ldap_bind:Server is unwilling to perform(53)
additional info:unwilling to allow anonymous bind with non-empty DN
gibi bir mesaj alıyorum bu sorunu nasıl çözebilirim LDAP konusunda çok az
deneyimi olan bir insan olarak şu soruyuda eklemek istiyorum Manager'ın
default password olan secret gibi bir passwordu herhangi bir usera nasıl
atayabilirim yani ismail userına ldap için password nasıl atayabilirim
![]()