LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-12-2003, 08:42 AM   #1
fableman
LQ Newbie
 
Registered: Nov 2003
Location: Sweden
Distribution: Fedora / Redhat
Posts: 6

Rep: Reputation: 0
LDAP....iam about to give up.....Pls Help..


I cant add anything into my LDAP service I got up and running under Redhat 9


some cut and pasting will follow... and my error message at the end..


Here follows my slapd.conf (using standard that comes with installation just for testing)

# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.23.2.8 2003/05/24 23:19:14 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/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/redhat/autofs.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

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

database ldbm
suffix "o=test"
rootdn "cn=Manager,o=test"
# 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}ijFYNcSNctBYg

# 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


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

Here follows LDAP.CONF

# Your LDAP server. Must be resolvable without using LDAP.
host 127.0.0.1

# The distinguished name of the search base.
base o=test

# Client certificate and key
# Use these, if your server requires client authentication.
#tls_cert
#tls_key
ssl no
pam_password md5


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

my test.ldif

dn: o=test
o: oxelosund
objectclass: top
objectclass: organization

dn: ou=editors, o=test
ou: editors
objectclass: organizationalUnit

dn: uid=hakan, ou=editors, o=test
uid: han
cn: Han Fzen
sn: gurka
givenname: Han
objectclass: person
userpassword: mutta
mailacceptinggeneralid: hata@strulskit.se
ou: editors

dn: uid=mkempe, ou=editors, o=test
uid: mkempe
cn: Mnus Ke
sn: Kpe
givenname: Mnus
objectclass: person
userpassword: clearpass
mailacceptinggeneralid: mpe@spawmalot.org
maildrop: mke@dper.ch
preferredlanguage: sv
ou: editors




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

THE ERROR ITSELF!!

[root@ns1 root]# service ldap restart
Stopping slapd: [ OK ]
Starting slapd: [ OK ]
[root@ns1 root]# ldapadd -D "cn=Manager, o=test" -w secret < /root/test.ldif
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
[root@ns1 root]#


What is wrong?!?!?!
 
Old 11-12-2003, 02:47 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Welcome to LQ.

I think you need ot use an encrypted password in slapd.conf
 
Old 11-13-2003, 02:29 AM   #3
fableman
LQ Newbie
 
Registered: Nov 2003
Location: Sweden
Distribution: Fedora / Redhat
Posts: 6

Original Poster
Rep: Reputation: 0
I have tried using "slappasswd" to crypy my password but gives the same error.

rootpw {SSHA}KRY1fTtpupX9yihcL1MotLNtHGCqTQK+
 
Old 11-16-2003, 02:57 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Just a stab in the dark but have you tried getting rid of the space - eg, use:
ldapadd -D "cn=Manager,o=test" -w secret < /root/test.ldif
not:
ldapadd -D "cn=Manager, o=test" -w secret < /root/test.ldif
 
Old 11-17-2003, 04:22 AM   #5
fableman
LQ Newbie
 
Registered: Nov 2003
Location: Sweden
Distribution: Fedora / Redhat
Posts: 6

Original Poster
Rep: Reputation: 0
I have tested that aswell.... stil same error...

But.... Now i got LDAP working..

But iam not sure what I did to get it working...

thing i did was.:

I made a new path in slapd.conf for the database

directory /var/lib/ldap/test

then I

chown ldap.ldap directory /var/lib/ldap/test /etc/openldap/slapd.conf

then it worked..
 
Old 11-19-2003, 09:18 AM   #6
fableman
LQ Newbie
 
Registered: Nov 2003
Location: Sweden
Distribution: Fedora / Redhat
Posts: 6

Original Poster
Rep: Reputation: 0
Now I made a new database after been using my test database and guess what..

same problem again...

OMG i hate openldap!!!!
 
  


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
what if iam use.... (and plz answer) oops10 Linux - Software 4 05-10-2005 11:18 AM
how to know which desktop environment iam using ??? dileepkk Linux - General 1 08-27-2004 05:38 AM
Iam very new to fedora how do i........ DARKRAIN Fedora 9 02-19-2004 07:14 PM
pls pls pls help me ! i'm tired with httpd config on fedora apache 2.0.48 AngelOfTheDamn Fedora 0 01-24-2004 06:12 PM
Iam in trouble maphi262 Slackware 8 01-20-2004 10:23 PM


All times are GMT -5. The time now is 08:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration