SEC-2405: Use DirContextAdapter directly from search. Configure OBJECT_FACTORIES on DirContext created for ActiveDirectory.
SEC-2405: Added tests for OBJECT_FACTORIES