Solved

How to connect a client to LDAP Server

Posted on 2008-10-17
6
518 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
  • 4
  • 2
6 Comments
 
LVL 20

Accepted Solution

by:
edster9999 earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 20

Expert Comment

by:edster9999
Comment Utility
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
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Read about achieving the basic levels of HRIS security in the workplace.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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.:
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now