Only import ldap when needed

Signed-off-by: Rémi Duraffort <remi.duraffort@linaro.org>
15 jobs for ldap in 8 minutes and 35 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Test
passed #43239
amd64
dispatcher-debian-10

00:02:50

passed #43237
amd64
dispatcher-debian-9

00:03:09

passed #43240
amd64
server-debian-10

00:01:52

passed #43238
amd64
server-debian-9

00:02:12

 
  Analyze
passed #43242
amd64
black

00:00:29

passed #43244
amd64
code_quality

00:00:23

passed #43243
amd64
codestyle

00:00:36

passed #43246
amd64
job-schema

00:00:41

passed #43245
amd64
pylint

00:02:14

passed #43241
amd64-dind allowed to fail
sast

00:01:53

 
  Build
passed #43249
amd64
amd64/pkg-debian-10

00:01:24

passed #43248
amd64
amd64/pkg-debian-9

00:01:28

passed #43247
amd64
doc

00:01:08

 
  Docker
passed #43250
amd64-dind
amd64/lava-dispatcher

00:00:45

passed #43251
amd64-dind
amd64/lava-server

00:01:42