ldap_create_orphan_partition

Creates an orphan partition on the specified server.

LDAP Version:v3
Library:*ldapx.*
NDS Version:8.5
Platform:NLM, Windows (NT, 95, 98, 2000, XP, Vista 32-bit and 64-bit ), Linux (32-bit and 64-bit), Solaris, AIX, and HP-UX

Syntax

  #include <ldapx.h>
  
  int ldap_create_orphan_partition (
     LDAP   *ld, 
     char   *serverDN, 
     char   *contextName);
  
  

Parameters

ld

(IN) Points to the handle for the LDAP session.

serverDN

(IN) Points to the distinguished name, in LDAP format, of the server that will hold the orphan naming context.

contextName

(IN) Points to the distinguished name for the partition (naming context), for example, "dc=test, dc=germany, dc=provo, dc=novell, dc=com, t=dns".

Return Values

0x00

LDAP_SUCCESS

0x53

LDAP_ENCODING_ERROR

0x5A

LDAP_NO_MEMORY

0x5C

LDAP_NOT_SUPPORTED

Non-zero

Non-zero values indicate errors. See LDAP Return Codes.

Packet Format

The requestName is set to the OID (2.16.840.1.113719.1.27.100.39) and the requestValue is a BER encoding of the following:

  RequestBer
      serverDN    LDAPDN
      contextName LDAPDN
  
  

The responseName is set to the OID (2.16.840.1.113719.1.27.100.40) and there is no responseValue.

  ResponseBer
      NULL
  

See Also