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
99 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
• 6,890 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,850 points
431 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,810 points
72 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,040 points
117 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
1,032 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
206 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,110 points
82 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,890 points
45 views