Pryz / terraform-provider-ldap

LDAP provider for Terraform
MIT License
36 stars 31 forks source link

Lazily initialize and bind the connection. #9

Open philsttr opened 6 years ago

philsttr commented 6 years ago

This will avoid connecting/binding to LDAP if, for example, you have defined the ldap provider and some ldap resources in your terraform config, but the ldap resource count is 0 (say if the count was calculated dynamically).

Note that you can also now prevent the provider for prompting for bind credentials if you specify bogus credentials in the provider configuration (assuming the ldap resource counts are zero)

i.e. connecting/binding to LDAP is now only performed if absolutely required.