我的openldap使用mysql作为后端,但它没有授权来添加用户

问题描述 投票:0回答:1

我使用我的rootdn登录phpLDAPadmin并成功,但我无法在phpLDAPadmin中添加用户,我认为这是openldap的问题没有授权写入,错误是

无法将对象添加到 LDAP 服务器。 LDAP 说:服务器不愿意执行 错误号:0x35 (LDAP_UNWILLING_TO_PERFORM) 描述:LDAP 服务器拒绝执行该操作。

这是我的 slapd.conf

include         /etc/openldap/schema/core.schema
include         /etc/openldap/schema/cosine.schema
include         /etc/openldap/schema/inetorgperson.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.pid
argsfile        /var/run/slapd.args

# Load dynamic backend modules:
# modulepath    /usr/libexec/openldap
# moduleload    back_mdb.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
#               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

# 允许cn=Mitya Kovalev,dc=example,dc=com读写权限
access to *
  by dn="cn=Mitya Kovalev,dc=example,dc=com" write
  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!

#######################################################################
# SQL database definitions
#######################################################################

database        sql
suffix          "dc=example,dc=com"
rootdn          "cn=Mitya Kovalev,dc=example,dc=com"
# 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}arSDeFAtUBPiz14lwlcdu0NXMWgjMNec

# SQL configuration
dbname ldap
dbuser ldap
dbpasswd 123456
has_ldapinfo_dn_ru no
subtree_cond "ldap_entries.dn LIKE CONCAT('%',?)"
insentry_stmt   "INSERT INTO ldap_entries (dn,oc_map_id,parent,keyval) VALUES (?,?,?,?)"


# The database directory MUST exist prior to running slapd AND 
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
# Indices to maintain
openldap
1个回答
0
投票

我也遇到了同样的问题。你解决了吗?

© www.soinside.com 2019 - 2024. All rights reserved.