refactoring Ldapdapter, RDBMSAdapter