owncloud/core — pull request #12943 by blizzz (2014-12-18 17:07:08+00:00)
Title: [WIP] read all relevant user attributes on login, in one query. saves us some.

What has happened before:
1. upon login, we queried LDAP for the DN corresponding to the username
2. we would do a bind to verify authentication
3. if they need to be updated, single readQueries will be done for quota, email, avatar
4. home directory attribute would also be read with a single request

What we do now:
1. upon login, we query LDAP for DN, quota, email, avatar, home directory attribute in the same request
2. we do a bing to verfiy authentication
3. we apply (i.e. store or cache) all the values we fetched before without any single additional request

I.e. in general this brings us performance improvements by less queries to the LDAP server. LDAP server will be happy, too, about less work. Helped with https://github.com/owncloud/enterprise/issues/442 in a OC 7 version (although it was not the root problem).

## todos left ##

* [ ] user tests need to be adjusted and extended