?
Solved

How to connect a client to LDAP Server

Posted on 2008-10-17
6
Medium Priority
?
532 Views
Last Modified: 2013-12-19
Hi,
I have followed this tutorial to http://www.grennan.com/ldap-HOWTO.html setup ldap server.i have followed everything till  6.1 Migrating /etc/passwd and /etc/group.

now i am trying to add client to ldap server.

in client pc, i have changed necessary options at  
/etc/ldap.conf such  as
host 192.168.2.116
base dc =mydomain.local,dc=com
pam_password Crypt ( Attm : in ldap server i create user called test, and  then used command passwd test1 to create password, is  this Crypt ??)


then : /etc/openldap/ldap.con : base dc=mydomain, dc=com
url ldap://192.168.2.116

then /etc/nsswitch
passwd  files ldap
shadow files ldap
group files ldap

now when i am trying to connect to ldap server from client pc by using using test
it thinks for cuple of minitues then goo back to login options again ,so i am unable to connect a client pc by using any user of ldap server
how will i solve this problem
0
Comment
Question by:fosiul01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 20

Accepted Solution

by:
edster9999 earned 2000 total points
ID: 22740842
check you can access port 389 on the ldap server from the client server

telnet 192.168.2.116 389

0
 
LVL 29

Author Comment

by:fosiul01
ID: 22740982
ommm good question , i was thinking that, but i didnot check

no i cant telnet
i m trying to add these lines,

iptables - A INPUT -p tcp --dport 389 -j accept

will it be allright?
0
 
LVL 29

Author Comment

by:fosiul01
ID: 22741032
I am such an idot!!!!!
shame on me!!

i always tell every one to check port!! and i forgot.

i used iptables --flush, so after that it works
but why its saying : no directory /home/user1!
loggin with home ="/"
you dont have to answer it here. i will ask in another question
but if you can give me a clue that would be realy helpful
0
Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

 
LVL 20

Expert Comment

by:edster9999
ID: 22741165
Every user has a home directory specified.
Normally this would be in /etc/passwd
if you have migrated that file to ldap then you need to check it in there.
Start by checking there is a directory for the user and it has the right access privs
0
 
LVL 29

Author Comment

by:fosiul01
ID: 22741209
yes, i just realized, in when i migratge, i didnot use user home direcotry.
i will open another question soon, and i will post the link here, if you have time please have a look

i will close this question, thanks
0
 
LVL 29

Author Comment

by:fosiul01
ID: 22741267
here is the link for that new quesiton, please have a look

http://www.experts-exchange.com/OS/Linux/Q_23824028.html
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question