[ldap] - fix undefined variable ldap_conf

Code was attempting to access a variable within the incorrect scope.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>