[Date Prev][Date Next] [Chronological] [Thread] [Top]

smbpasswd+openldap



I am using openldap with samba(ldap enabled), when I tray to add entery for user user1 using smbpasswd command this will be the result.

./smbpasswd -a user1
New SMB password:
Retype new SMB password:
Bind failed: Inappropriate authentication
Bind failed: Inappropriate authentication
Failed to add entry for user user1.
Failed to modify password entry for user user1

Any solution please for this problem ?


my slapd.conf file

------------------------------

# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.6 2001/04/20 23:32:43 kurt Exp $
#
# 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/nis.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/samba.schema
include /etc/openldap/schema/openldap.schema
include /etc/openldap/schema/duaconf.schema
include /etc/openldap/schema/java.schema
include /etc/openldap/schema/nadf.schema
include /etc/openldap/schema/corba.schema
include /etc/openldap/schema/misc.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/lib/openldap/openldap
# moduleload    back_ldap.la
# moduleload    back_ldbm.la
# moduleload    back_passwd.la
# moduleload    back_shell.la

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

database        ldbm
suffix          "dc=domain,dc=co,dc=uk"
#suffix         "o=My Organization Name,c=US"
rootdn          "cn=root,dc=domain,dc=co,dc=uk"
#rootdn         "cn=Manager,o=My Organization Name,c=US"
# 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
# Indices to maintain
index   objectClass     eq
index    primaryGroupID     eq
index    rid                eq
index    uid                eq
index    uidNumber          eq
index    gidNumber          eq
index    cn                 pres,sub,eq
index    default            sub

## posixGroup entries in the directory as well
#  index memberUid     eq


# access to dn=".*,dc=domain,dc=co,dc=uk" by self write by * read




_________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com