info: infoldap: prevent NameError in case bind fails
In case the bind failed, we had no base defined, but the error
handler did expect this to be defined.
We move the definition of base up so this is always defined,
even if the error binding fails.
Fixes: #204
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Reviewed-by: Rob Crittenden <rcritten@redhat.com>