title: explaining the parts of the ldap string "LDAP://DC=amrs,DC=win,DC=ml,dc=COM"
body: <p>can someone explain the makeup of the ldap string parts.</p>
  
  <p>the one i have is:</p>
  
  <pre><code>string strSQL = "SELECT mail FROM 'LDAP://DC=amrs,DC=win,DC=ml,dc=COM' WHERE samaccountname = '" + UserName.Replace(@"AMRS\", "") + "'";
  </code></pre>
  
  <p>this gets an email for a particular username. now i need to get other info from an ldap query and fail to get the setting correct and also i have no clue what the values are in the ldap settings. "LDAP://DC=amrs,DC=win,DC=ml,dc=COM" </p>
  
  <p>can anyone explain this to me please?</p>