ldap_schema_save

Commits any changed made in the LDAPSchema structure since the schema was fetched from a directory.

Library:*ldapsdk.*
NDS Version:7.xx 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 <ldap.h>
  
  int ldap_schema_save (
     LDAP          *ld,
     LDAPSchema    *schema,
     const char    *subschemaSubentryDN);
  

Parameters

ld

(IN) LDAP session handle.

schema

(IN) A handle to the schema of a directory..

subschemaSubentryDN

(IN) Distinguished name of the entry from which to return schema.

Return Values

See the LDAP Return Codes for return values.

Remarks

The schema changes will be saved to the subschemaSubentry passed in. If subschemaSubentryDN is NULL then the first subschemaSubentry listed in the root DSE will be used.

NOTE:Setting the SubSchemaSubentryDN to NULL requires version 3 and eDirectory 8.xx.

All changes made to the LDAPSchema structure using ldap_schema_add, ldap_schema_modify, and ldap_schema_delete, are sent to the directory as a single transactional request.