modify search base dn depending on search filter