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,240 points
1,867 views

1 answer to this question.

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
• 7,340 points

Related Questions In DevOps & Agile

0 votes
2 answers

How to install Docker on Windows Server 2008?

You can install it with "Docker Toolbox ...READ MORE

answered Aug 25, 2020 in DevOps & Agile by Pistle
• 1,000 points
5,023 views
0 votes
2 answers

How to configure Prometheus server in linux?

Hi there , Setup Prometheus Configuration All the prometheus ...READ MORE

answered Jul 9, 2020 in DevOps & Agile by Suhana
• 340 points
1,166 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,890 points
1,752 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
3,856 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,987 views
+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,220 points
2,164 views
0 votes
1 answer

How to give Jenkins super user permission?

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

answered Feb 27, 2019 in DevOps & Agile by shubham
• 7,340 points
17,275 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP