[CreateLDAP] Add function that waits for ldap to start before adding .ldif

The previous implementation uses sleep to "wait" for ldap to start.
However, sometimes, the service does not start in less than 2 seconds
making the infrastructure unusable.

Signed-off-by: Elena Mihailescu <maria.mihailescu@upb.ro>