Only import ldap when needed

Signed-off-by: Rémi Duraffort <remi.duraffort@linaro.org>
16 jobs from ldap in 19 minutes and 45 seconds (queued for 2 seconds)
latest
Status Job ID Name Coverage
  Test
passed #32550
amd64
dispatcher-debian-10

00:05:37

passed #32548
amd64
dispatcher-debian-9

00:04:28

passed #32551
amd64
server-debian-10

00:03:35

passed #32549
amd64
server-debian-9

00:03:40

 
  Analyze
passed #32552
amd64
black

00:00:48

passed #32554
amd64
code_quality

00:00:24

passed #32553
amd64
codestyle

00:00:45

passed #32557
amd64
job-schema

00:01:15

passed #32555
amd64
pylint

00:02:54

passed #33780
amd64 dind allowed to fail
sast

00:03:18

failed #32556
dind amd64 allowed to fail
sast

00:25:10

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

00:01:34

passed #32559
amd64
amd64/pkg-debian-9

00:01:50

passed #32558
amd64
doc

00:02:17

 
  Docker
passed #32561
dind amd64
amd64/lava-dispatcher

00:01:46

passed #32562
dind amd64
amd64/lava-server

00:03:33