| | |
| | | private final JDBCConnectionFactory jdbcFactory;
|
| | | private final Connection ldapConnection;
|
| | | private final JDBCConnection jdbcConnection;
|
| | | final JDBCMapper jdbcMapper;
|
| | | private JDBCMapper jdbcMapper;
|
| | | private ConnectionEntryReader ldapEntries;
|
| | | private List<Entry> jdbcEntries;
|
| | |
|
| | |
| | | this.jdbcFactory = jdbcfactory;
|
| | | this.ldapConnection = ldapFactory.getConnection();
|
| | | this.jdbcConnection = (JDBCConnection) jdbcFactory.getConnection();
|
| | | this.jdbcMapper = new JDBCMapper(jdbcConnection, ldapConnection);
|
| | | jdbcMapper.setDatabaseName(jdbcFactory.getDatabaseName());
|
| | | jdbcConnection.initializeMapper(jdbcMapper);
|
| | | }
|
| | |
|
| | | /**
|
| | |
| | | {
|
| | | BindResult r = ldapConnection.bind(ldapBindRequest);
|
| | | if(r.isSuccess()) r = jdbcConnection.bind(jdbcBindRequest);
|
| | |
|
| | | jdbcMapper = new JDBCMapper(jdbcConnection, ldapConnection);
|
| | | jdbcMapper.setDatabaseName(jdbcFactory.getDatabaseName());
|
| | | jdbcConnection.initializeMapper(jdbcMapper);
|
| | | return r;
|
| | | }
|
| | |
|