Enumerating AD from Linux

This article will describe two scenarios where you have a foothold in an Active Directory environment on a Linux system. The first is that you have a limited user account on a machine that is not attached to the domain. The second is that you are on a Linux machine that is domain joined but do not have any user credentials. This was a scenario I encountered in a client environment and it turned out to be very useful to be able to make LDAP queries to the domain.