LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-13-2010, 01:57 PM   #1
whit_wolf1
LQ Newbie
 
Registered: Sep 2004
Distribution: ubuntu, Centos, Redhat, Vmware ESX, Debian, SLES
Posts: 24

Rep: Reputation: 15
openssh Match block support for Ldap? Centos 5.3


I am having some issues with opensshd ive recompiled with 5.6p1 on centos so that it supports Match Blocks.

I would like it so that only certain users can use passwords and others only keys mind you this is all ldap authentication

here is my config:

Code:
UsePAM no
PasswordAuthentication no
PermitRootLogin no
Match Group thesshgroup
    X11Forwarding no
    AllowTCPForwarding yes
    PasswordAuthentication yes

But when I go to login it fails like it is having issues looking up the user name in ldap I have enabled UsePam and was successful with a local user but I would like to use ldap.

Any ideas?
 
Old 10-14-2010, 07:04 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Can you post output of

tail -f /var/log/secure
 
Old 10-14-2010, 08:23 AM   #3
fiku
LQ Newbie
 
Registered: Oct 2010
Posts: 25

Rep: Reputation: 2
post also the output of
Code:
getent group thesshgroup
and
Code:
id the_user_in_thesshgroup
 
  


Reply



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
[SOLVED] openssh 5.5, RHEL 5.4 (or centos 5), chroot jail Tinkster Red Hat 8 01-18-2012 07:26 PM
OpenSSH 4.7+ chroot-ed SFTP and CentOS 5.3 iSpaZZZ^ Linux - Software 2 06-04-2010 09:51 AM
Openssh + PAM + LDAP fails only with LDAP users asimula Linux - Newbie 2 04-01-2010 07:10 AM
How to install OpenSSH on CentOS with tcp wrappers support Brandon.Wamboldt Linux - Server 4 05-05-2009 10:20 PM
Want to install Mail Server on CentOS 5.0 which support both Ldap and Active Drectory ad1325 Linux - Server 2 03-19-2009 12:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:15 AM.

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
Open Source Consulting | Domain Registration