core: remove unused code and fix param name

Remove unused code and fix param name from adUser to ldapUser

Change-Id: Ic242cc5da9dfe4c70c671b90f2eed49ad3d35723
Signed-off-by: Alissa Bonas <abonas@redhat.com>