title: LDAP. Java Application without Authentication
body: <p>This application will be run on clients that are already authenticated in Active Directory. </p>
  
  <p>Problem: the LDAP protocol (or Active Directory settings) seem to require username and password. </p>
  
  <p>Goal: query Active Directory using LDAP in Java without having to authenticate (ask for username and password). </p>
  
  <p>Gist: all clients who run this application have already logged in. Thus, they are already authenticated (into)/ by Active Directory. </p>
  
  <p>Now that they are logged in and have access to AD outside the application, isn't it possible to "mooch" off of the fact that they are already authenticated and run my LDAP queries in my application?</p>
  
  <p>Errors: while trying to maneuver past authentication; I have become accustomed to binding errors, log4j errors; and almost everything recommended on Stack Overflow, Oracle and Apache. </p>
  
  <p>Methods tried: I have tried anonymous binding, Ldap api's, nada!! </p>
  
  <p>Questions:</p>
  
  <ol>
  <li>Is it possible to query Active Directory without authentication?</li>
  <li>Is it possible to query Active Directory by telling the server that "hey, I am already logged into AD, proceed with my queries?" without prompting the user for Username and password?</li>
  </ol>