title: How to convert a HTTP header into another?
body: <p>I use Apache as a proxy for Tomcat.</p>
  
  <p>I have to extract a field from an incoming HTTP header and create a new header to send to proxied Tomcat. To be more specific:</p>
  
  <ul>
  <li>My Apache receives a LDAP DN value in a header, ie: <code>CN=Jeff Smith/OU=Sales/DC=Fabrikam/DC=COM</code></li>
  <li>I need to extract the token <code>OU=Sales</code> and forward the value <code>Sales</code> into a new header</li>
  </ul>
  
  <p><strong>Important:</strong> the Tomcat app. is commercial and is not able to parse the first header. That's why I have to do that.</p>
  
  <p>I googled around mod_rewrite and mod_header but now I'm running out of inspiration... Help is very welcome!</p>