/* * Directory Lookup Service */ package com.c2kernel.lookup.ldap; import com.c2kernel.utils.ObjectProperties; /** * @version $Revision: 1.16 $ $Date: 2005/10/12 12:51:54 $ * @author $Author: abranson $ */ public class LDAPProperties { public String mGlobalPath = null; //o=cern.ch public String mRootPath = null; //cn=cristal2 public String mLocalPath = null; //cn=lab27 public Integer mPort = null; public String mHost = null; public String mUser = null; public String mPassword = null; public LDAPProperties(ObjectProperties obj) { mGlobalPath = obj.getProperty( "LDAP.GlobalPath" ); mRootPath = obj.getProperty( "LDAP.RootPath" ); mLocalPath = obj.getProperty( "LDAP.LocalPath" ); mPort = obj.getInt( "LDAP.port", 389 ); mHost = obj.getProperty( "LDAP.host" ); mUser = obj.getProperty( "LDAP.user" ); mPassword = obj.getProperty( "LDAP.password" ); mRootPath += "," + mGlobalPath; mLocalPath += "," + mRootPath; } }