LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-22-2007, 11:58 PM   #1
nolinuxnollife
Registered User
 
Registered: Jan 2005
Location: india
Distribution: RedHat and Madrake
Posts: 55
Blog Entries: 1

Rep: Reputation: 15
Open LDAP shows details with anonymous authentication only


Hi,

I am mailing this after a good amount of different searches on different errorlogs in this forums.

My Server environment :

OS RHEL4
OpenLDAP 2.2.13-4
Java clients from Windows machine.

I run the /usr/local/libexec/slapd -d 5 &.
I am able to do a ldapsearch easily and successfully on the server-host.

When I try to connect from a client named "ldapbrowser" I am unable to see the ldap db.
When I "bind anonymously" to my server from an external machine "(windows based) I am able to list the db contents.
The same ldapbrowser is listing the contents of active directory (seperate windows 2000 server machine) with a proper authentication as a normal user.

I am able to login to a linux client machine using this serverconfig , ofcourse without home directory , cos I have not listed the autofs in my ldap config
I am not running saslauthd, ncsd etc. Does LDAP server depend on saslauthd. If I want to run ldap without sasl what shud be my config?
I am sure that this is not a problem with Operating system, cos my ldapbrowser software lists the contents of ldapserver if I connect anonymously ie "anonymous bind"

slapd.conf : (I have trimmed unused and commented sections)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /usr/local/etc/openldap/schema/*.schema
include /usr/local/etc/openldap/slapd.access.conf

# 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/local/var/run/slapd.pid
argsfile /usr/local/var/run/slapd.args

#######################################################################
# ldbm database definitions
#######################################################################
defaultsearchbase "dc=sanofiinternal,dc=com"
database bdb
suffix "dc=sanofiinternal,dc=com"
rootdn "cn=sanofildapmanager,dc=ldapserver,dc=sanofiinternal,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 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


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++

error message when querrying the server from a ldapbrowser:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++

ldap_pvt_gethostbyname_a: host=ldapserver.sanofiinternal.com, r=0
connection_get(10)
connection_get(10): got connid=0
connection_read(10): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 29 contents:
ber_get_next
ber_get_next on fd 10 failed errno=11 (Resource temporarily unavailable)
do_bind
ber_scanf fmt ({imt) ber:
ber_scanf fmt (m}) ber:
>>> dnPrettyNormal: <sanofiuser5>
=> ldap_bv2dn(sanofiuser5,0)
<= ldap_bv2dn(sanofiuser5,0)=-4
bind: invalid dn (sanofiuser5)
send_ldap_result: conn=0 op=0 p=3
send_ldap_result: err=34 matched="" text="invalid DN"
send_ldap_response: msgid=1 tag=97 err=34
ber_flush: 24 bytes to sd 10
connection_get(10)
connection_get(10): got connid=0
connection_read(10): checking for input on id=0
ber_get_next
ber_get_next on fd 10 failed errno=0 (Success)
connection_read(10): input error=-2 id=0, closing.
connection_closing: readying conn=0 sd=10 for close
connection_close: conn=0 sd=10

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++
slapd.access.conf
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++
access to dn.regex=".*,dc=sanofiinternal,dc=com$" attrs=userPassword
by dn="cn=root,dc=sanofi,dc=com$" write
by self write
by * auth

access to dn.regex=".*,dc=sanofiinternal,dc=com$" attrs=mail
by dn="cn=root,dc=sanofi,dc=com$" write
by self write
by * read

access to dn.regex=".*,ou=users,dc=sanofiinternal,dc=com$"
by * read

access to dn.regex=".*,dc=sanofiinternal,dc=com$"
by self write
by * read

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++

Thankyou
Mahen
 
  


Reply



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
help in LDAP authentication chickenjoy Linux - Server 3 06-14-2007 05:28 AM
Open LDAP Authentication problem Rajesh_Amma Linux - Newbie 1 04-20-2006 06:59 PM
ldap authentication goestin Linux - Networking 2 12-27-2005 11:27 AM
Proftpd, Anonymous Access, Directory Authentication bskouby Linux - Newbie 0 03-23-2004 03:08 PM
LDAP Authentication Staceman Linux - Software 0 07-31-2003 08:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:42 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