try
{
ControlPanelInfo info = ControlPanelInfo.getInstance();
info.setTrustManager(getTrustManager());
info.setConnectTimeout(timeout);
info.regenerateDescriptor();
ConfigFromFile conf = new ConfigFromFile();
conf.readConfiguration();
String dn = ADSContext.getAdministratorDN(tfUid.getText());
String pwd = tfPwd.getText();
info.setConnectionPolicy(ConnectionProtocolPolicy.USE_ADMIN);