LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-28-2008, 08:40 AM   #1
soumalya
Member
 
Registered: Nov 2006
Posts: 260

Rep: Reputation: 31
ldap server config prob


Sir
i hav configure ldap server in rhel4
domain: test.com m/n:telnet ip:192.168.100.167

slappasswd
{SSHA}v4qLq/qy01w9my60LLX9BvfNUrRhOjQZ

edit /etc/openldap/slapd.conf

database bdb
suffix "dc=test,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw {SSHA}v4qLq/qy01w9my60LLX9BvfNUrRhOjQZ
directory /var/lib/ldap/

service ldap start

useradd -g users ldapuser

grep ldapuser /etc/passwd > /etc/openldap/passwd.ldapusers
grep root /etc/passwd > /etc/openldap/passwd.root

updatedb

locate migrate

/usr/share/openldap/migration/migrate_passwd.pl /etc/openldap/passwd.ldapusers /etc/openldap/ldapusers.ldif

/usr/share/openldap/migration/migrate_passwd.pl
/etc/openldap/passwd.root /etc/openldap/root.ldif

change root.ldif file
cn: Manager

create test.com.ldif
vi /etc/openldap/test.com.ldif

dn: dc=test,dc=com
dc: test
description: Root LDAP entry for test.com
objectClass: dcObject
objectClass: organizationalUnit
ou: rootobject

dn: ou=People, dc=test,dc=com
ou: People
description: All people in organisation
objectClass: organizationalUnit

ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f /etc/openldap/test.com.ldif

ldappasswd

output shows #ldap_bind: invalid credentials (49)

ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f /etc/openldap/root.ldif

ldappasswd

output shows #ldap_bind: invalid credentials (49)

ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f /etc/openldap/ldapusers.ldif


ldappasswd

output shows #ldap_bind: invalid credentials (49)

ldapsearch -x -b 'dc=example,dc=com' '(objectclass=*)'

result : 0 success


hlep me to solve this prob. where i have done worng??????????

thanks in advance
 
Old 02-28-2008, 04:34 PM   #2
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
dc not matching?
Code:
suffix "dc=test,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
 
Old 02-29-2008, 05:27 AM   #3
soumalya
Member
 
Registered: Nov 2006
Posts: 260

Original Poster
Rep: Reputation: 31
sir

thanks for ur reply

i have change example to test, but the same message is arrised.


can u pls tell me the steps to configure ldap


thanks again
 
Old 02-29-2008, 05:31 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try this

http://www.linuxhomenetworking.com/w...DAP_and_RADIUS
 
Old 03-03-2008, 12:25 AM   #5
soumalya
Member
 
Registered: Nov 2006
Posts: 260

Original Poster
Rep: Reputation: 31
thanks

i have tried as ur link but when i use

ldapsearch -x -b 'dc=test,dc=com' '(objectclass=*)'

the result shows 0 success


a hve configured clien machine and login as ldapuser i cant login

plssssssssssssssss help


thanks
 
Old 03-03-2008, 12:49 AM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
does ldapsearch work as expected on the server?
 
Old 03-03-2008, 09:42 PM   #7
soumalya
Member
 
Registered: Nov 2006
Posts: 260

Original Poster
Rep: Reputation: 31
when i use

[root@telnet /]# ldapsearch -x -b 'dc=test,dc=com' '(objectclass=*)'
# extended LDIF
#
# LDAPv3
# base <dc=test,dc=com> with scope sub
# filter: (objectclass=*)
# requesting: ALL
#

# test.com
dn: dc=test,dc=com
dc: test
description: Root LDAP entry for test.com
objectClass: dcObject
objectClass: organizationalUnit
ou: rootobject

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

this is the output on the server


thanks
 
  


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
LDAP: Can't contact master ldap server rulirahm Linux - Networking 2 07-14-2014 02:02 AM
authenticating through one ldap server that uses other ldap servers & active director dreamm Linux - Server 1 02-21-2007 08:22 AM
LDAP server not starting as user LDAP klnasveschuk Fedora 1 02-15-2007 04:49 AM
Ldap Config Help Need!!!! vpredestin Linux - Software 1 08-06-2005 06:54 PM
ldap user add prob berrance Linux - Software 0 03-15-2005 08:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:35 PM.

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