Solved

How to connect a client to LDAP Server

Posted on 2008-10-17
6
523 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MS SQL GROUP BY 6 84
SSH in linux 9 72
C# DataTable (in memory) vs SQL Lookups 4 38
Access Runtime Error '3070' 5 10
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

696 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