Click here to Skip to main content
15,743,429 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am new to Linux and I am trying to connect to Active directory using putty.
But I am unable to do so. I don't know the proper Linux command to connect to the AD and fetch user information. So, if you provide any link or document that will work for me.


What I have tried:

I found this link[^]

but it doesn't work for me.
Updated 14-Nov-22 1:45am

That command is supposed to run from a normal terminal window, not through putty. See ldapsearch[^] for full details.

Note: Saying, "it doesn't work" does not give us any clue what your problem may be. In future please provide full details, including any relevant error messages/codes.
Share this answer
First, you cannot connect to AD using Putty, or any other telnet client. You can use Putty to connect to other machines running Linux or Windows, on which you can run a tool to execute your query.

You have to use a query tool, like ldapsearch on Linux or powershell on Windows to query AD. In either case, the machine running the query must be joined to the Active Directory domain you are querying.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900