> For the complete documentation index, see [llms.txt](https://www.pentestwiki.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.pentestwiki.com/post-exploit/protocols/389-636-ldap.md).

# 389/636 - ldap

<pre class="language-bash"><code class="lang-bash"><strong># 서버 FQDN 등의 정보 수집(기본 익명 바인딩 활성화)
</strong>ldapsearch -x -H ldap://'&#x3C;server-address>' -s base

<strong># FQDN 및 DN을 통한 세부 정보 수집
</strong>ldapsearch -x -H ldap://'&#x3C;server-address>' -s sub -b 'DC=contoso,DC=com'

<strong># 계정정보로 실명 바인딩
</strong>ldapsearch -H ldap://'&#x3C;server-address>' -s sub -b 'DC=contoso,DC=com' -D '&#x3C;domain\username>' -w '&#x3C;password>'
</code></pre>
