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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-09-2012, 11:57 PM
|
#1
|
Member
Registered: Sep 2011
Distribution: Fedora release 21 (Twenty One)
Posts: 156
Rep:
|
LDAP question
Hi,
How to login to a ldap server from a linux and windows machine?
Thanks.
|
|
|
11-10-2012, 05:19 AM
|
#2
|
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: 988
|
Greetingz!
SSH works pretty well for me (PuTTY is a good choice if you need a Windows-based SSH client).
|
|
|
11-10-2012, 01:03 PM
|
#3
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
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).
|
|
|
11-24-2012, 06:27 AM
|
#4
|
Member
Registered: Sep 2011
Distribution: Fedora release 21 (Twenty One)
Posts: 156
Original Poster
Rep:
|
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.
|
|
|
11-24-2012, 06:47 AM
|
#5
|
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: 988
|
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.
|
|
|
11-25-2012, 05:02 AM
|
#6
|
Member
Registered: Sep 2011
Distribution: Fedora release 21 (Twenty One)
Posts: 156
Original Poster
Rep:
|
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
|
|
|
11-25-2012, 06:26 AM
|
#7
|
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
|
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 06:28 AM.
|
|
|
11-25-2012, 06:41 AM
|
#8
|
Member
Registered: Sep 2011
Distribution: Fedora release 21 (Twenty One)
Posts: 156
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 10:33 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|