Commits any changed made in the LDAPSchema structure since the schema was fetched from a directory.
#include <ldap.h>
int ldap_schema_save (
LDAP *ld,
LDAPSchema *schema,
const char *subschemaSubentryDN);
(IN) LDAP session handle.
(IN) A handle to the schema of a directory..
(IN) Distinguished name of the entry from which to return schema.
See the LDAP Return Codes
for return values.
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.