ldap_schema_delete

Removes a schema element definition from the directory and from the local copy of schema in an LDAPSchema structure.

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_delete (
     LDAPSchema     *schema,
     char           *nameOrOid,
     int            type);
  

Parameters

schema

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

nameOrOid

(IN) A name or OID that identifies the schema definition to modify.

type

(IN) Type of element to modify. Use the definitions listed in Section 6.11, Schema Element Types.

Return Values

See the LDAP Return Codes for return values.

Remarks

ldap_schema_delete removes a schema element definition from the from the local copy of schema in an LDAPSchema structure, ’schema’. Deletions are only made to the LDAPSchema structure. To commit deletions to the directory, call ldap_schema_save.