ldap_restore_object

Restores an object's attribute name and values that were saved by calling ldap_backup_object.

LDAP Version:v3
Library:*ldapx.*
NDS Version:8.8 or higher
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>
  
  ldap_restore_object (
           LDAP *ld,
           const char *dn,
           const char *passwd,
           char *objectInfo,
           char *chunckSize,
           int size);
  
  

Parameters

ld

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

dn

(IN) Points to the distinguished name of the object for which information is to be restored.

passwd

(IN) Points to the password for encryption and decryption, when any one of the attributes in the user object has been encrypted. If password is supplied then the connection to the servers will be over TLS.

objectInfo

(OUT) Points to the requested attribute names and values.

chunckSize

(OUT) Specifies the length of each chunk.

size

(OUT) Specifies the length of the information to be restored.

Return Values

See Also

ldap_backup_object