| java.lang.Object com.knowgate.ldap.LDAPModel com.knowgate.ldap.LDAPNovell
LDAPNovell | public class LDAPNovell extends LDAPModel (Code) | | Very Basic LDAP interface API implementation
author: Sergio Montoro Ten version: 2.1 |
Method Summary | |
public void | addAddress(Connection oJdbc, String sAddrId) Add an address from v_ldap_contacts view to an LDAP directory
Addresses may be either public or private depending on the value of field
v_ldap_contacts.bo_private. | public void | addOrReplaceAddress(Connection oJdbc, String sAddrId) Add or replace an Address
This method is the same as addAddress() except that it does not raise an
LDAPException if address already exists; in that case address is just replaced. | public void | addOrReplaceUser(Connection oJdbc, String sUserId) | public void | addUser(Connection oJdbc, String sUserId) | public void | bind(String sUser, String sPass) Synchronously authenticates to the LDAP server using LDAP_V3.
If the object has been disconnected from an LDAP server, this method attempts to reconnect to the server. | public void | connect(String sConnStr) Connect to LDAP Service
At this point, there is no authentication, and any operations are conducted as an anonymous client. | public void | connectAndBind(Properties oProps) | public void | deleteAddress(Connection oJdbc, String sAddrId) | public void | deleteUser(Connection oJdbc, String sUserId) | public void | deleteWorkArea(String sDomainNm, String sWorkAreaNm) | public void | disconnect() Synchronously disconnects from the LDAP server
The disconnect method abandons any outstanding requests, issues an unbind request to the server, and then closes the socket. | public void | dropAll() | public boolean | exists(String sSearchString) | public void | loadDomain(Connection oJdbc, int iDomainId) | public void | loadWorkArea(Connection oJdbc, String sDomainNm, String sWorkAreaNm) | public static void | main(String[] argv) |
LDAPNovell | public LDAPNovell()(Code) | | |
addAddress | public void addAddress(Connection oJdbc, String sAddrId) throws com.knowgate.ldap.LDAPException, java.sql.SQLException, java.lang.IllegalStateException(Code) | | Add an address from v_ldap_contacts view to an LDAP directory
Addresses may be either public or private depending on the value of field
v_ldap_contacts.bo_private. If bo_private is zero then the address is public,
if bo_private is not zero then the address is private.
Private addresses are only visible to the user that created them.
Public addresses are stored at cn=user@mail.com,dc=publicContacts,dc=workarea_name,dc=domain_name,dc=hipergate,dc=org
Private addresses are stored at cn=user@mail.com,dc=privateContacts,cn=owner_guid,dc=users,dc=domain_name,dc=hipergate,dc=org
Parameters: oJdbc - JDBC Connection Parameters: sAddrId - GUID of address to be added throws: com.knowgate.ldap.LDAPException - If address already exists at directory throws: SQLException - If sAddrId is not found at v_ldap_contacts SQL view throws: IllegalStateException - If not connected to LDAP |
bind | public void bind(String sUser, String sPass) throws com.knowgate.ldap.LDAPException, IllegalStateException(Code) | | Synchronously authenticates to the LDAP server using LDAP_V3.
If the object has been disconnected from an LDAP server, this method attempts to reconnect to the server. If the object has already authenticated, the old authentication is discarded.
Parameters: sUser - If non-null and non-empty, specifies that the connection and all operations through it should be authenticated with dn as the distinguished name. Parameters: sPass - If non-null and non-empty, specifies that the connection and all operations through it should be authenticated with dn as the distinguished name and passwd as password. throws: LDAPException - throws: IllegalStateException - If not conencted to LDAP |
exists | public boolean exists(String sSearchString) throws com.knowgate.ldap.LDAPException(Code) | | Check whether or not an LDAP entry exists
The directory is searched from the connection string key.
For example if ldapconnect connection property is ldap://192.168.1.1:389/dc=hipergate,dc=org
then only entries under "dc=hipergate,dc=org" will be searched
Parameters: sSearchString - LDAP search string, for example "cn=user@mail.com,dc=publicContacts,dc=my_workarea,dc=my_domain" throws: com.knowgate.ldap.LDAPException - |
Methods inherited from com.knowgate.ldap.LDAPModel | abstract public void addAddress(Connection oJdbc, String sAddrId) throws LDAPException, SQLException(Code)(Java Doc) abstract public void addOrReplaceAddress(Connection oJdbc, String sAddrId) throws LDAPException, SQLException(Code)(Java Doc) abstract public void addOrReplaceUser(Connection oJdbc, String sUserId) throws LDAPException, SQLException(Code)(Java Doc) abstract public void addUser(Connection oJdbc, String sUserId) throws LDAPException, SQLException(Code)(Java Doc) abstract public void bind(String sUser, String sPass) throws LDAPException(Code)(Java Doc) abstract public void connect(String sConnStr) throws LDAPException(Code)(Java Doc) abstract public void connectAndBind(Properties oProps) throws LDAPException(Code)(Java Doc) abstract public void deleteAddress(Connection oJdbc, String sAddrId) throws LDAPException, SQLException(Code)(Java Doc) abstract public void deleteUser(Connection oJdbc, String sUserId) throws LDAPException, SQLException(Code)(Java Doc) abstract public void deleteWorkArea(String sDomainNm, String sWorkAreaNm) throws LDAPException, IllegalStateException(Code)(Java Doc) abstract public void disconnect() throws LDAPException(Code)(Java Doc) abstract public void dropAll() throws LDAPException(Code)(Java Doc) abstract public boolean exists(String sSearchString) throws LDAPException(Code)(Java Doc) abstract public void loadDomain(Connection oJdbc, int iDomainId) throws LDAPException, SQLException(Code)(Java Doc) abstract public void loadWorkArea(Connection oJdbc, String sDomainNm, String sWorkAreaNm) throws LDAPException, SQLException(Code)(Java Doc)
|
|
|