LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-24-2006, 09:26 AM   #1
manya
Member
 
Registered: Apr 2004
Posts: 194

Rep: Reputation: 15
LDAP error...help required


HI All

I am facing following error when configuring LDAP server..can any one help me here ???

ldap_bind: Invalid credentials (49)

here is my slapd.conf file
#
# 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/nis.schema

# Allow LDAPv2 client connections. This is NOT the default.
allow bind_v2

# 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/sbin/openldap
# moduleload back_bdb.la
# moduleload back_ldap.la
# moduleload back_ldbm.la
# moduleload back_passwd.la
# moduleload back_shell.la

# The next three lines allow use of TLS for encrypting connections using a
# dummy test certificate which you can generate by changing to
# /usr/share/ssl/certs, running "make slapd.pem", and fixing permissions on
# slapd.pem so that the ldap user or group can read it. Your client software
# may balk at self-signed certificates, however.
# TLSCACertificateFile /usr/share/ssl/certs/ca-bundle.crt
# TLSCertificateFile /usr/share/ssl/certs/slapd.pem
# TLSCertificateKeyFile /usr/share/ssl/certs/slapd.pem

# 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!

#######################################################################
# ldbm and/or bdb database definitions
#######################################################################

#database bdb
database ldbm
suffix "dc=test,dc=com"
rootdn "cn=Manager ,dc=test, dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoided. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw secret

# rootpw {crypt}{SSHA}T7Ngow8zvXb08YL1xfRLvKg7m373UK1a

# 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 for this database
index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub

# Replicas of this database
#replogfile /var/lib/ldap/openldap-master-replog
#replica host=ldap-1.example.com:389 starttls=critical
# bindmethod=sasl saslmech=GSSAPI
# authcId=host/ldap-master.example.com@EXAMPLE.COM




thanks in advance
manya
 
Old 06-24-2006, 06:28 PM   #2
av1shay
LQ Newbie
 
Registered: Jun 2006
Distribution: Slackware, CentOS
Posts: 4

Rep: Reputation: 0
hi

i guess your doing a query against the ldap server
... you didnt mentioned what is the query string
anyway, you should bind the server with (-b the-relevant-object -wPASSWORD)
if your doing that already, check that you have a -x flag
(indicates simple query)

avishay cohen
 
Old 06-28-2006, 03:50 AM   #3
rajeshkannan
LQ Newbie
 
Registered: Jun 2006
Posts: 5

Rep: Reputation: 0
Hi,

Try the following commands.

#slappasswd

Specify your new ldap password here and you will get an encrypted string as your output.

Copy that string and paste it into your slapd.conf as like below.

rootpw {crypt}{SSHA}T7Ngow8zvXb08YL1xfRLvKg7m373UK1a

Save and Exit from the file.

You must restart your LDAP service now so that the changes you've made will be effective.

Now, you can make ensure that your authentication is working by running the following command.

#ldapsearch -x -b "dc=test,dc=com" -D "cn=Manager,dc=test,dc=com" '(objectClass=*)' -W

Cheers,

Rajesh Kannan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS error help required jhone_redhat Linux - Networking 2 02-13-2006 10:20 AM
Dp package required Error jasb Linux - Software 1 11-25-2005 05:08 PM
** ERROR **: PyGTK (2, 6, 0) required, but (2, 4, 1) found alfNtexas Linux - Software 2 09-14-2005 03:24 PM
error: getopt is missing but required. hybridstorm Linux - Software 0 06-17-2005 11:47 AM
error: Autoconf 2.58 or better is required. violetusi Linux - Newbie 2 12-02-2004 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration