| java.lang.Object com.sun.portal.util.LDAPUtil
LDAPUtil | public class LDAPUtil (Code) | | This class provides LDAP utility methods for Portal Admin Server
clients and MBeans.
|
Method Summary | |
public static LDAPConnection | getLDAPConnection(String host, String port, String principal, String credentials, boolean secure) | public static void | loadLDIF(String ldifFile, LDAPConnection connection) Loads the given ldif file into the LDAP server with the given
connection. | public static boolean | objectClassExists(String objectClass, LDAPConnection connection) Checks if the given object class exists in the LDAP server with
the given connection.
Parameters: objectClass - the object class to be checked for existence. Parameters: connection - the connection to the LDAP server. |
loadLDIF | public static void loadLDIF(String ldifFile, LDAPConnection connection) throws IOException, LDAPException(Code) | | Loads the given ldif file into the LDAP server with the given
connection.
Parameters: ldifFile - the ldif file to be loaded. Parameters: connection - the connection of the LDAP server. exception: IOException - if an I/O error occurs. exception: LDAPException - if an opertion cannot be performed onthe LDAP server. |
objectClassExists | public static boolean objectClassExists(String objectClass, LDAPConnection connection) throws LDAPException(Code) | | Checks if the given object class exists in the LDAP server with
the given connection.
Parameters: objectClass - the object class to be checked for existence. Parameters: connection - the connection to the LDAP server. true if the given object class exists inthe LDAP server; false otherwise. exception: LDAPException - if fetching the schema from the LDAPserver fails. |
|
|