{
connections = new Hashtable();
connector = null;
parser = null;
env = new Properties();
ResourceService serviceConf = ((TurbineServices)TurbineServices.getInstance())
.getResources(SERVICE_NAME);
this.host = serviceConf.getString("host");
this.port = serviceConf.getInt("port",DEFAULT_PORT);
this.sslport = serviceConf.getInt("sslport",DEFAULT_SSLPORT);
this.limit = serviceConf.getInt("limit",DEFAULT_LIMIT);
this.timeout = serviceConf.getInt("timeout",DEFAULT_TIMEOUT);
this.version = serviceConf.getInt("version",DEFAULT_VERSION);
this.listFilter = repair(serviceConf.getString("listfilter","(objectclass=*)"));
this.basedn = repair(serviceConf.getString("basedn"));
this.managerdn = repair(serviceConf.getString("managerdn"));
this.password = serviceConf.getString("password");
this.attributesList = getList(serviceConf.getString("attributeslist")," ");
this.showOpAttributes = serviceConf.getBoolean("showopattributes",false);
this.anonymousBind = serviceConf.getBoolean("anonymousbind",false);
this.securityAuthentication = serviceConf.getString("securityauthentication","simple");
this.securityProtocol = serviceConf.getString("securityprotocol");
this.socketFactory = serviceConf.getString("socketfactory");
this.useCachedDirContexts = serviceConf.getBoolean("contextcache", false);
this.jndiprovider = serviceConf.getString("jndiprovider",DEFAULT_CTX);
this.saslclientpckgs = serviceConf.getString("saslclientpckgs");
mainConnect(new LDAPURL(host,port,basedn));
setInit(true);
}