LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-10-2012, 12:57 AM   #1
decenter
Member
 
Registered: Sep 2011
Distribution: Fedora release 21 (Twenty One)
Posts: 156

Rep: Reputation: 19
LDAP question


Hi,

How to login to a ldap server from a linux and windows machine?

Thanks.
 
Old 11-10-2012, 06:19 AM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Greetingz!

SSH works pretty well for me (PuTTY is a good choice if you need a Windows-based SSH client).
 
Old 11-10-2012, 02:03 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
The question is not clear. Do you want to login to a machine running an LDAP server? If so, follow xeleema's advice. Or, do you want to set up an LDAP server as an authentication source for Linux and Windows machines? The latter is a much more in-depth question and will require you to do some reading on OpenLDAP and SAMBA (for Windows auth).
 
Old 11-24-2012, 07:27 AM   #4
decenter
Member
 
Registered: Sep 2011
Distribution: Fedora release 21 (Twenty One)
Posts: 156

Original Poster
Rep: Reputation: 19
I need to login to a machine running LDAP server. I get this error when I try to login to ldap server.

Code:
[root@phpldapadmin]# ssh -l giffen xxx.xxx.xxx.xxx
giffen@xxx.xxx.xxx.xxx's password: 
Last login: Wed Nov 21 13:08:40 2012 from xxx.xxx.xxx.xxx
Connection to xxx.xxx.xxx.xxx closed.
 
Old 11-24-2012, 07:47 AM   #5
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
You come all the way to the forums so someone can tell you to go check the logs?
Google "syslog" and the name of your Linux distribution.

Or just run this command on "xxx.xxx.xxx.xxx"
Code:
[[ -f /var/adm/messages ]] && tail -f /var/adm/messages
P.S: Pretty sure "ssh giffen@xxx.xxx.xxx.xxx" will work as well.
 
Old 11-25-2012, 06:02 AM   #6
decenter
Member
 
Registered: Sep 2011
Distribution: Fedora release 21 (Twenty One)
Posts: 156

Original Poster
Rep: Reputation: 19
Alright. Here is what the log file says, but I can't find the log file /var/adm/messages . It is not logging in /var/log/messages. I got this from /var/log/secure

Code:
Nov 25 16:24:00 xxx sudo: PAM unable to resolve symbol: pam_sm_open_session
Nov 25 16:24:00 xxx sudo: PAM unable to resolve symbol: pam_sm_close_session
Nov 25 16:24:02 xxx sshd[20912]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=client  user=max
Nov 25 16:24:02 xxx sshd[20912]: Accepted password for max from client port 56345 ssh2
Nov 25 16:24:02 xxx sshd[20912]: pam_unix(sshd:session): session opened for user max by (uid=0)
Nov 25 16:24:02 xxx sshd[20915]: Received disconnect from client: 11: disconnected by user
Nov 25 16:24:02 xxx sshd[20912]: pam_unix(sshd:session): session closed for user max
 
Old 11-25-2012, 07:26 AM   #7
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
I think you're using RHEL. Did you check LDAP server's /etc/ssh/sshd_config file, whether it accepts ssh connections or not?
In this file find DenyUsers and AllowedUsers entries, and check if your username i.e. giffen is there against DenyUsers.
Also check /etc/hosts.deny file, if your local hostname or IP is mentioned there.

Last edited by shivaa; 11-25-2012 at 07:28 AM.
 
Old 11-25-2012, 07:41 AM   #8
decenter
Member
 
Registered: Sep 2011
Distribution: Fedora release 21 (Twenty One)
Posts: 156

Original Poster
Rep: Reputation: 19
Thank you for the reply. Yes, I'm using Cent OS. There are no bad entries in both /etc/ssh/sshd_config and /etc/hosts.deny files.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Question about LDAP Benso37 Linux - General 6 11-30-2011 11:26 PM
ldap question cmontr Programming 3 05-28-2009 09:30 AM
Question on LDAP chickenjoy Linux - Server 1 06-12-2007 11:39 AM
LDAP question wslyhbb Linux - Server 3 02-10-2007 07:26 PM
LDAP question dominant Linux - General 3 03-30-2004 10:22 AM


All times are GMT -5. The time now is 07: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration