title: Is it possible to fetch LDAP fields and store them in a SQL database?
body: <p>I've got LDAP authentication working in my application. How can I go about fetching fields such as 'givenname' or 'surname' from the LDAP store and storing them in an SQL database?</p>
  
  <p>Additionally, is it also possible to authorise users only if the LDAP 'uid' matches the 'uid' stored in the local database?</p>
  
  <p>Any help would be appreciated. Thanks.</p>