Backport Adapter#ldap_search from EE
Backport Adapter#dn_matches_filter? from EE
Add spec for LDAP::Access#allowed?
Add LDAP::Person#ad_disabled?

Check the bit for disabled Active Directory users. The filter is based
on http://ctogonewild.com/2009/09/03/bitmask-searches-in-ldap/ .
Check for the AD disabled flag in Access#allowed?
Fix syntax error in AD disabled user filter
Use LDAP::Access.open to reuse the LDAP connection
Document the Active Directory magic numbers
Improve ad_disabled method name
Merge branch 'ad_disabled_users' into 'master'

Block 'disabled' AD users over SSH

The existing SSH access check for LDAP users ignored the ActiveDirectory 'disabled' flag.
Add CHANGELOG entry for the AD disabled flag
Add test for current behavior of current_user
Move user access check to Gitlab::UserAccess
Check user access status in API for current_user
Make user access test pass for the right reason

If we do not set a private token during the test, current_user will be
nil because the user is not found, not due to the access check.
Add API access checks to CHANGELOG
Hide control elements and last login for xs display

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Hide group dashboard and project sidebar for xs size

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Merge branch 'master' of github.com:gitlabhq/gitlabhq
Merge branch 'mobile-ui-improvements' into 'master'

Mobile ui improvements

* Fixes blob view - https://twitter.com/jamesgecko/status/466675058664951808
* Hide project sidebar for xs
* Hide group activity for xs