Solved

How to connect a client to LDAP Server

Posted on 2008-10-17
6
522 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
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Creating and Managing Databases with phpMyAdmin in cPanel.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

840 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