How to disable linux user authentication on ldap server

0 votes

Suppose I am having one user named user1 on my linux server, with password p1. I then did the set up of ldap server and added user1 with password p2. Now I am able to login as user1 by using both p1 and p2. How do I disable p1? Can anyone resolve this query?

Thanks.

Apr 27, 2018 in DevOps & Agile by Atul
• 10,220 points
51 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
You can try the below steps:
passwd -l user

The command will lock the user account in case of  LDAP authentication, you do not need user on server. And passwd -u user command can undo that.

You can try the below steps:

There is one more way to achieve that, It can be accomplished  by adding a ! before the user's password in /etc/shadow,

I hope it will work for you.

answered Apr 27, 2018 by shubham
• 6,560 points

Related Questions In DevOps & Agile

0 votes
1 answer

How to install Docker on Windows Server 2008?

Docker For Windows only works on Windows ...READ MORE

answered Oct 31, 2018 in DevOps & Agile by Sophie may
• 9,330 points
148 views
0 votes
1 answer

How to disable auto-restart task in TeamCity

There is a parameter which can be ...READ MORE

answered Apr 29, 2018 in DevOps & Agile by DareDev
• 6,670 points
44 views
0 votes
2 answers

How to customize the RAM allocation on Docker for Windows?

Try this: docker update --cpu-shares 5120 -m 3000M ...READ MORE

answered Dec 6, 2018 in DevOps & Agile by Maverick
• 10,020 points
60 views
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
846 views
+13 votes
2 answers
+1 vote
2 answers

How do I run Apache server from Docker without mapping to a location?

If you're seeing a 500 error, that's ...READ MORE

answered Oct 18, 2018 in DevOps & Agile by lina
• 8,100 points
54 views
0 votes
1 answer

How to give Jenkins super user permission?

Here is what you can try. Go ...READ MORE

answered Feb 27 in DevOps & Agile by shubham
• 6,560 points
25 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.