Strategy for using ldapsearch and security