nsILDAPConnection

IID:337ad2fe-1dd2-11b2-89f8-aae1221ec86c
Inherits From:nsISupports

This interface is implemented by the following components:


Constants

PRUint32 VERSION2 = 2
PRUint32 VERSION3 = 3

Properties

readonly AUTF8String bindName

DN to bind as. use the init() method to set this.

nsISupports closure

Private parameter (anything caller desires)

readonly PRUnichar* errorString

The string version of lderrno


Methods

PRInt32 getLdErrno ( out AUTF8String matched , out AUTF8String s ) void init ( char* host , PRInt32 port , PRBool SSL , AUTF8String bindName , nsILDAPMessageListener messageListener , nsISupports closure , PRUint32 version )

PRInt32 getLdErrno ( out AUTF8String matched , out AUTF8String s )

Get information about the last error that occured on this connection.

Arguments:
matched: if the server is returning LDAP_NO_SUCH_OBJECT, LDAP_ALIAS_PROBLEM, LDAP_INVALID_DN_SYNTAX, or LDAP_ALIAS_DEREF_PROBLEM, this will contain the portion of DN that matches the entry that is closest to the requested entry
s: additional error information from the server
Returns:
nsILDAPErrors.idl

void init ( char* host , PRInt32 port , PRBool SSL , AUTF8String bindName , nsILDAPMessageListener messageListener , nsISupports closure , PRUint32 version )

Set up the connection. Note that init() must be called on a thread that already has an nsIEventQueue.

Arguments:
host: server name for ldap_init()
port: server port number for ldap_init() -1 == default port (389)
SSL: use SSL on this connection?
bindName: DN to bind as
messageListener: Callback for DNS resolution completion
closure: private parameter (anything caller desires)
version: LDAP version to use (currently VERSION2 or VERSION3)

References

This interface is the type of the following properties:

nsIAbLDAPReplicationQuery.connection, nsILDAPOperation.connection

This interface is passed as an argument to the following methods:

nsILDAPMessageListener.onLDAPInit, nsILDAPOperation.init

This interface is returned from the following methods:

nsILDAPService.getConnection

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com