ldap_delete_ext_s() instead.
#include <ldap.h>
int ldap_delete_s(LDAP *ld, const char *dn);
ld |
Connection handle, which is a pointer to an |
dn |
ldap_delete_ext_s() function.
ldap_delete_s() function removes an entry from the directory.
A newer version of this function, ldap_delete_ext_s(), is available in this release of the LDAP API. ldap_delete_s() (the older version of the function) is included only for backward-compatibility. If you are writing a new LDAP client, use ldap_delete_ext_s() instead of ldap_delete_s().
If you want more information on ldap_delete_s(), refer to the LDAP C SDK 1.0 Programmer's Guide.
ldap_delete_s() function to delete the entry for Barbara Jensen from the directory.
#include <ldap.h>
LDAP *ld;
/* Distinguished name of the entry that you want to delete. */
char *dn = "uid=bjensen, ou=People, o=Airius.com";
...
/* Delete the entry */
if ( ldap_delete_s( ld, dn ) != LDAP_SUCCESS ) {ldap_perror( ld, "ldap_delete_s" );
return( 1 );
}
...
ldap_delete_ext_s().
Last Updated: 10/01/98 17:06:23