OpenLDAP + SASL Authentication Issues

From: Peter Junker (pjunker@pjconsult.de)
Date: Wed Jun 08 2005 - 10:58:05 EDT


Hi List,

I am running OpenLDAP on my box.
Supposedly there should be authorizatzion against LDAP and SASL.

When I try to login I constantly keep getting following error message:

pete-mkiii:/etc/ldap/openldap # ldapsearch -W -h pete-mkiii -U
pjunker@pete-mkiii -b uid=pjunker,ou=people,dc=pjconsult,dc=de
Enter LDAP Password:
SASL/DIGEST-MD5 authentication started
ldap_sasl_interactive_bind_s: Internal (implementation specific) error
(80)
additional info: SASL(-13): user not found: no secret in database

submitting the command with weak authentication produces everything:

pete-mkiii:/etc/ldap/openldap # ldapsearch -x -h pete-mkiii -b
uid=pjunker,ou=people,dc=pjconsult,dc=de
# extended LDIF
#
# LDAPv3
# base <uid=pjunker,ou=people,dc=pjconsult,dc=de> with scope sub
# filter: (objectclass=*)
# requesting: ALL
#

# pjunker, People, pjconsult.de
dn: uid=pjunker,ou=People,dc=pjconsult,dc=de
loginShell: /bin/bash
gidNumber: 100
uidNumber: 500
shadowMax: 99999
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
uid: pjunker
gecos: Peter Junker
shadowLastChange: 12561
cn: Peter Junker
homeDirectory: /home/pjunker
shadowWarning: 7
userPassword:: e0NMRUFSVEVYVH1CbkRGbWVBIQo=

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

This is my /etc/ldap/openldap/slapd.conf file:

#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
# include /etc/ldap/openldap/schema/corba.schema
include /etc/ldap/openldap/schema/core.schema
include /etc/ldap/openldap/schema/cosine.schema
include /etc/ldap/openldap/schema/dyngroup.schema
include /etc/ldap/openldap/schema/inetorgperson.schema
include /etc/ldap/openldap/schema/java.schema
include /etc/ldap/openldap/schema/misc.schema
include /etc/ldap/openldap/schema/nis.schema
include /etc/ldap/openldap/schema/openldap.schema
include /etc/ldap/openldap/schema/yast.schema

# Define global ACLs to disable default read access.
access to * by * read
# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral ldap://root.openldap.org

pidfile /usr/local/var/run/slapd.pid
argsfile /usr/local/var/run/slapd.args

# Load dynamic backend modules:
# modulepath /usr/local/libexec/openldap
# moduleload back_bdb.la
# moduleload back_ldap.la
# moduleload back_ldbm.la
# moduleload back_passwd.la
# moduleload back_shell.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
#
# 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!

sasl-regexp uid=(.*),cn=pete-mkiii,cn=DIGEST-MD5,cn=auth
lda:///ou=people,dc=pjconsult,dc=de??sub?(uid=$1)
# sasl-regexp uid=(.*),cn=pete-mkiii,cn=DIGEST-MD5,cn=auth uid=
$1,dc=pjconsult,dc=de
#######################################################################
# BDB database definitions
#######################################################################

database bdb
suffix "dc=pjconsult,dc=de"
rootdn "cn=Manager,dc=pjconsult,dc=de"
#password-hash {md5}
password-hash {CLEARTEXT}
rootpw {MD5}Omj13VNjH75p9Eykjlpwrw==
# 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 and slap tools.
# Mode 700 recommended.
directory /usr/local/var/openldap-data
# Indices to maintain
index objectClass eq
index uid pres,eq

Thanks in Advance

Peter Junker

[demime 1.01b removed an attachment of type application/pgp-signature which had a name of signature.asc]
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:51 EDT