repl_modrdn.c 717 B

123456789101112131415161718192021222324252627282930313233343536
  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 "slapi-plugin.h"
  13. #include "repl.h"
  14. /* The modrdn plugin points for the legacy replication plugin */
  15. int
  16. legacy_preop_modrdn( Slapi_PBlock *pb )
  17. {
  18. return legacy_preop(pb, "legacy_preop_modrdn", OP_MODDN);
  19. }
  20. int
  21. legacy_bepreop_modrdn( Slapi_PBlock *pb )
  22. {
  23. return 0; /* OK */
  24. }
  25. int
  26. legacy_postop_modrdn( Slapi_PBlock *pb )
  27. {
  28. return legacy_postop(pb, "legacy_postop_modrdn", OP_MODDN);
  29. }