fix bug caused by divergence of datasource-ldap and datasource-db