Use wgLDAPPreferences rather than hardcoded values

For synching preferences we have an array of prefrences available.
Let's use this rather than a hardcoded set of values.

Change-Id: I106bcd2e091955379dcb2d6fadc1ee954de0cdbf
Merge "Use wgLDAPPreferences rather than hardcoded values"