Move ldap into a module

Change-Id: I3261299a5e2d237eb7f6555ed8b43f2321770e76