Movatterモバイル変換


[0]ホーム

URL:


man7.org > Linux >man-pages

Linux/UNIX system programming training


ldap_delete(3) — Linux manual page

NAME |LIBRARY |SYNOPSIS |DESCRIPTION |ERRORS |SEE ALSO |ACKNOWLEDGEMENTS |COLOPHON

LDAP_DELETE(3)           Library Functions ManualLDAP_DELETE(3)

NAME        top

       ldap_delete, ldap_delete_s, ldap_delete_ext, ldap_delete_ext_s -       Perform an LDAP delete operation.

LIBRARY        top

       OpenLDAP LDAP (libldap, -lldap)

SYNOPSIS        top

#include <ldap.h>int ldap_delete_s(ld, dn)       LDAP *ld;       char *dn;int ldap_delete(ld, dn)       LDAP *ld;       char *dn;int ldap_delete_ext(ld, dn, serverctrls, clientctrls, msgidp)       LDAP *ld;       char *dn;       LDAPControl **serverctrls, **clientctrls;       int *msgidp;int ldap_delete_ext_s(ld, dn, serverctrls, clientctrls)       LDAP *ld;       char *dn;       LDAPControl **serverctrls, **clientctrls;

DESCRIPTION        top

       Theldap_delete_s()routine is used to perform an LDAP delete       operation synchronously. It takesdn, the DN of the entry to be       deleted.  It returns an LDAP error code, indicating the success or       failure of the operation.       Theldap_delete()routine is used to perform an LDAP delete       operation asynchronously. It takes the same parameters asldap_delete_s(),but returns the message id of the request it       initiated. The result of the delete can be obtained by a       subsequent call toldap_result(3).       Theldap_delete_ext()routine  allows  server  and client controls       to be specified to extend the delete request. This routine is       asynchronous like ldap_delete(), but its return value is an LDAP       error code. It stores the message id of the request in the integer       pointed to by msgidp.       Theldap_delete_ext_s()routine is the synchronous version ofldap_delete_ext().It also returns an LDAP error code indicating       success or failure of the operation.

ERRORS        top

ldap_delete_s()returns an LDAP error code which can be       interpreted by calling one ofldap_perror(3) and friends.ldap_delete()returns -1 if something went wrong initiating the       request. It returns the non-negative message id of the request if       things went ok.ldap_delete_ext()andldap_delete_ext_s()return some Non-zero       value if something  went wrong initiating the request, else return       0.

SEE ALSO        top

ldap(3),ldap_error(3)

ACKNOWLEDGEMENTS        top

OpenLDAP Softwareis developed and maintained by The OpenLDAP       Project <http://www.openldap.org/>.OpenLDAP Softwareis derived       from the University of Michigan LDAP 3.3 Release.

COLOPHON        top

       This page is part of theOpenLDAP (an open source implementation       of the Lightweight Directory Access Protocol) project.       Information about the project can be found at        ⟨http://www.openldap.org/⟩.  If you have a bug report for this       manual page, see ⟨http://www.openldap.org/its/⟩.  This page was       obtained from the project's upstream Git repository       ⟨https://git.openldap.org/openldap/openldap.git⟩ on 2025-08-11.       (At that time, the date of the most recent commit that was found       in the repository was 2025-08-05.)  If you discover any rendering       problems in this HTML version of the page, or you believe there is       a better or more up-to-date source for the page, or you have       corrections or improvements to the information in this COLOPHON       (which isnot part of the original manual page), send a mail to       man-pages@man7.orgOpenLDAP LDVERSION             RELEASEDATELDAP_DELETE(3)

Pages that refer to this page:ldapdelete(1)ldapmodify(1)



HTML rendering created 2025-09-06 byMichael Kerrisk, author ofThe Linux Programming Interface.

For details of in-depthLinux/UNIX system programming training courses that I teach, lookhere.

Hosting byjambit GmbH.

Cover of TLPI


[8]ページ先頭

©2009-2025 Movatter.jp