cb_unbind.c 727 B

12345678910111213141516171819202122232425262728293031
  1. /** BEGIN COPYRIGHT BLOCK
  2. * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  3. * Copyright (C) 2005 Red Hat, Inc.
  4. * All rights reserved.
  5. *
  6. * License: GPL (version 3 or any later version).
  7. * See LICENSE for details.
  8. * END COPYRIGHT BLOCK **/
  9. #ifdef HAVE_CONFIG_H
  10. # include <config.h>
  11. #endif
  12. #include "cb.h"
  13. int
  14. chainingdb_unbind( Slapi_PBlock *pb ) {
  15. /* Nothing to do because connection mgmt is stateless*/
  16. Slapi_Backend * be;
  17. cb_backend_instance * cb;
  18. slapi_pblock_get( pb, SLAPI_BACKEND, &be );
  19. cb = cb_get_instance(be);
  20. cb_update_monitor_info(pb,cb,SLAPI_OPERATION_UNBIND);
  21. cb_send_ldap_result( pb, LDAP_SUCCESS, NULL, NULL, 0, NULL );
  22. return SLAPI_BIND_SUCCESS;
  23. }