Sun Java System Directory Server Enterprise Edition 6.2 Developer's Guide

Connection Information

The following parameters allow you to access information about the client connection through the parameter block.

Table 18–7 Connection Information Parameters

Parameter ID  

Data Type  

Description  

SLAPI_CLIENT_DNS

struct berval *

Fully qualified domain name of the client. 

SLAPI_CONN_AUTHMETHOD

char *

Authentication method used. 

  • SLAPD_AUTH_NONE (anonymous)

  • SLAPD_AUTH_SASL (extensible SASL)

  • SLAPD_AUTH_SIMPLE (password)

  • SLAPD_AUTH_SSL (certificate)

SLAPI_CONN_CLIENTNETADDR

PRNetAddr *

IP address of client. 

SLAPI_CONN_DN

char *

DN of the user authenticated for the current connection. 

SLAPI_CONNECTION

Slapi_Connection *

The current connection. 

SLAPI_CONN_ID

int

Identifier for the current connection. 

SLAPI_CONN_IS_REPLICATION_SESSION

int

Whether the connection is for replication. 

  • 0 false.

  • 1 true.

SLAPI_CONN_IS_SSL_SESSION

int

Whether the connection is over SSL. 

  • 0 false.

  • 1 true.

SLAPI_CONN_SERVERNETADDR

PRNetAddr *

IP address client is connected to.