Parametrized ldap-sample variables
Use ldap-sample template variables
Removed unused template
Fixed template affectations
Initialize LDAP DB structure
Refactored functions