issue #532: Fix ldap admin filtering

LDAP admin ID is filtered because leading/trailing spaces.
Fix this by truncating spaces.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>