# ldapsearch w Active Directory

DevFeed: [ldapsearch w Active Directory](<https://devfeed.tech/articles/ldapsearch-w-active-directory-27558.md>)

Original publisher: [Read original article](<https://gagor.pro/2012/12/ldapsearch-w-active-directory/>)

Author: Tom

Published: 2012-12-05T00:00:00Z

Content type: tutorial

Language: pl

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [active directory](<https://devfeed.tech/topics/active-directory.md>), [apt](<https://devfeed.tech/topics/apt.md>)

Tags: [active-directory](<https://devfeed.tech/tags/active-directory.md>), [apt](<https://devfeed.tech/tags/apt.md>), [bash](<https://devfeed.tech/tags/bash.md>), [info](<https://devfeed.tech/tags/info.md>), [install](<https://devfeed.tech/tags/install.md>), [ip](<https://devfeed.tech/tags/ip.md>), [ldap](<https://devfeed.tech/tags/ldap.md>), [port](<https://devfeed.tech/tags/port.md>)

## AI overview

A Polish tutorial explains how to use ldapsearch from Linux to query and test access to Active Directory through LDAP. It covers installing ldap-utils, searching the directory, configuring search bases and credentials, applying filters, and extracting user logins or email addresses.

## Source excerpt

Można lubieć AD, można go nie lubieć... Ale jak już się ma to warto czasem zintegrować go z tym... i tamtym... Od strony Linuksa najwygodniej można to osiągnąć przez LDAP. A żeby to dobrze zrobić trzeba najpierw przetestować czy aby wszystko działa jak byśmy sobie tego życzyli. I tutaj bardzo przydatne jest narzędzie ldapsearch. Do odpytywania LDAP'a potrzebujemy jeden pakiecik, który zawiera kilka narzędzi do jego obsługi: apt-get install ldap-utils Teraz możemy próbować przeszukiwać katalog np. tak: