Only import ldap when needed

Signed-off-by: Rémi Duraffort <remi.duraffort@linaro.org>
15 jobs for <span class="ref-name">ldap</span> in 8 minutes and 29 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Test
passed #47944
amd64
dispatcher-debian-10

00:02:22

passed #47942
amd64
dispatcher-debian-9

00:02:42

passed #47945
amd64
server-debian-10

00:01:44

passed #47943
amd64
server-debian-9

00:01:59

 
  Analyze
passed #47947
amd64
black

00:00:30

passed #47949
amd64
code_quality

00:00:24

passed #47948
amd64
codestyle

00:00:38

passed #47951
amd64
job-schema

00:00:42

passed #47950
amd64
pylint

00:02:19

passed #47946
amd64-dind allowed to fail
sast

00:01:49

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

00:01:16

passed #47953
amd64
amd64/pkg-debian-9

00:01:38

passed #47952
amd64
doc

00:01:15

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

00:00:43

passed #47956
amd64-dind
amd64/lava-server

00:01:48