[server/test] Extract a "ldapsource" function in unittest_ldapsource.py
We will add more use of this pattern in forthcoming changesets,
so avoid repetition.
Multiple sources of data========================Data sources include SQL, LDAP, RQL, mercurial and subversion... XXX feed me