LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-02-2023, 06:23 PM   #1
scottieH
Member
 
Registered: Mar 2021
Posts: 58

Rep: Reputation: Disabled
Looking to temporarily spoil a PKI cert in OpenLdap


I'm running OpenLDAP v 2.4.44 on Red Hat 7/8.

Background
We have 3 web applications that require passwordless authentication to access.
Two of these applications use UserID, the public PKI key, and look for membership in the proper group for access.
The third just checks the UserID and membership in the appropriate group.

There is no requirement to log in to our network. These URLs are available remotely, however the user must still have an account on our system.

Lockouts
If a user hasn't logged in for a while, one of our sysadmins will "lock" their account in LDAP. This is done either by changing their password or setting the pwdAccountLockoutTime in their LDAP record.

We have noticed that OpenSSH (v7.4) does not consult LDAP before allowing access. Therefore, locked users who use SSH keys to log in to the system are still granted access.

To prevent this, we are temporarily adding 2 dashes '--' to their login shell name. i.e. /bin/ksh becomes --/bin/ksh. This prevents them from logging in.

When the user calls to 'complain,' we politely remind them that they need to log in periodically to prevent lockouts & deletions. We then unlock the account and 'un-mangle' the login shell.

The Problem
Locking the users account in the manner does not prevent access to the Web Apps.

The initial thought is to 'mangle' or somehow temporarily invalidate their PKI key. This would need to be done in a controllable way so it can be easily undone.

This would at least prevent access to the first 2 Web Apps.

Question
Can this be done? IF so, how?
Is there another way to do this?

Thanks,
-S
 
Old 02-21-2023, 01:13 PM   #2
scottieH
Member
 
Registered: Mar 2021
Posts: 58

Original Poster
Rep: Reputation: Disabled
I was not able to find a way to temporarily spoil the PKI cert. I did find a way to re-name the user, which thereby manes the user record cannot be found == no pki cert.
 
  


Reply

Tags
lockout, openldap, openssh, pki



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
Error: Can't read cert file /etc/pki/tls/certs/cert.pem in Twiki jsaravana87 Linux - Server 1 09-09-2011 06:01 PM
LXer: Will Too Many Android Flavors Spoil The Platform LXer Syndicated Linux News 0 09-15-2010 04:20 PM
LXer: Do Package Managers Spoil Us? LXer Syndicated Linux News 9 05-18-2010 04:57 AM
nss_ldap, openldap and openldap-server ... what is openldap for? chakkerz Linux - Server 2 08-13-2009 07:16 PM
PKI+wireless+wpa+tls cert config help t1n0m3n Linux - Wireless Networking 12 07-17-2007 03:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:20 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
Open Source Consulting | Domain Registration