factor out attrlist and attrsonly test
switch to ldif backend for ease of debugging