windowsrepl.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /** BEGIN COPYRIGHT BLOCK
  2. * This Program is free software; you can redistribute it and/or modify it under
  3. * the terms of the GNU General Public License as published by the Free Software
  4. * Foundation; version 2 of the License.
  5. *
  6. * This Program is distributed in the hope that it will be useful, but WITHOUT
  7. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  8. * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  9. *
  10. * You should have received a copy of the GNU General Public License along with
  11. * this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
  12. * Place, Suite 330, Boston, MA 02111-1307 USA.
  13. *
  14. * In addition, as a special exception, Red Hat, Inc. gives You the additional
  15. * right to link the code of this Program with code not covered under the GNU
  16. * General Public License ("Non-GPL Code") and to distribute linked combinations
  17. * including the two, subject to the limitations in this paragraph. Non-GPL Code
  18. * permitted under this exception must only link to the code of this Program
  19. * through those well defined interfaces identified in the file named EXCEPTION
  20. * found in the source code files (the "Approved Interfaces"). The files of
  21. * Non-GPL Code may instantiate templates or use macros or inline functions from
  22. * the Approved Interfaces without causing the resulting work to be covered by
  23. * the GNU General Public License. Only Red Hat, Inc. may make changes or
  24. * additions to the list of Approved Interfaces. You must obey the GNU General
  25. * Public License in all respects for all of the Program code and other code used
  26. * in conjunction with the Program except the Non-GPL Code covered by this
  27. * exception. If you modify this file, you may extend this exception to your
  28. * version of the file, but you are not obligated to do so. If you do not wish to
  29. * provide this exception without modification, you must delete this exception
  30. * statement from your version and license this file solely under the GPL without
  31. * exception.
  32. *
  33. *
  34. * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  35. * Copyright (C) 2005 Red Hat, Inc.
  36. * All rights reserved.
  37. * END COPYRIGHT BLOCK **/
  38. /* windows_private.c */
  39. typedef struct windowsprivate Dirsync_Private;
  40. Dirsync_Private* windows_private_new();
  41. void windows_private_set_windows_subtree (const Repl_Agmt *ra,const Slapi_DN* sdn );
  42. const Slapi_DN* windows_private_get_windows_subtree (const Repl_Agmt *ra);
  43. void windows_private_set_directory_subtree (const Repl_Agmt *ra,const Slapi_DN* sdn );
  44. const Slapi_DN* windows_private_get_directory_subtree (const Repl_Agmt *ra);
  45. LDAPControl* windows_private_dirsync_control(const Repl_Agmt *ra);
  46. ConnResult send_dirsync_search(Repl_Connection *conn);
  47. ConnResult windows_search_entry(Repl_Connection *conn, char* searchbase, char *filter, Slapi_Entry **entry);
  48. Slapi_Entry *windows_conn_get_search_result(Repl_Connection *conn );
  49. void windows_private_update_dirsync_control(const Repl_Agmt *ra,LDAPControl **controls );
  50. PRBool windows_private_dirsync_has_more(const Repl_Agmt *ra);
  51. void windows_private_null_dirsync_cookie(const Repl_Agmt *ra);
  52. int windows_private_save_dirsync_cookie(const Repl_Agmt *ra);
  53. int windows_private_load_dirsync_cookie(const Repl_Agmt *ra);
  54. void windows_private_set_create_users(const Repl_Agmt *ra, PRBool value);
  55. PRBool windows_private_create_users(const Repl_Agmt *ra);
  56. const char *windows_private_get_windows_domain(const Repl_Agmt *ra);
  57. static void windows_private_set_windows_domain(const Repl_Agmt *ra, char *domain);
  58. int windows_private_get_isnt4(const Repl_Agmt *ra);
  59. void windows_private_set_isnt4(const Repl_Agmt *ra, int isit);
  60. const char* windows_private_get_purl(const Repl_Agmt *ra);
  61. /* in windows_connection.c */
  62. ConnResult windows_conn_connect(Repl_Connection *conn);
  63. void windows_conn_disconnect(Repl_Connection *conn);
  64. void windows_conn_delete(Repl_Connection *conn);
  65. void windows_conn_get_error(Repl_Connection *conn, int *operation, int *error);
  66. ConnResult windows_conn_send_add(Repl_Connection *conn, const char *dn, LDAPMod **attrs,
  67. LDAPControl *update_control, LDAPControl ***returned_controls);
  68. ConnResult windows_conn_send_delete(Repl_Connection *conn, const char *dn,
  69. LDAPControl *update_control, LDAPControl ***returned_controls);
  70. ConnResult windows_conn_send_modify(Repl_Connection *conn, const char *dn, LDAPMod **mods,
  71. LDAPControl *update_control, LDAPControl ***returned_controls);
  72. ConnResult windows_conn_send_rename(Repl_Connection *conn, const char *dn,
  73. const char *newrdn, const char *newparent, int deleteoldrdn,
  74. LDAPControl *update_control, LDAPControl ***returned_controls);
  75. ConnResult windows_conn_send_extended_operation(Repl_Connection *conn, const char *extop_oid,
  76. struct berval *payload, char **retoidp, struct berval **retdatap,
  77. LDAPControl *update_control, LDAPControl ***returned_controls);
  78. const char *windows_conn_get_status(Repl_Connection *conn);
  79. void windows_conn_start_linger(Repl_Connection *conn);
  80. void windows_conn_cancel_linger(Repl_Connection *conn);
  81. ConnResult windows_conn_replica_supports_ds5_repl(Repl_Connection *conn);
  82. ConnResult windows_conn_replica_supports_dirsync(Repl_Connection *conn);
  83. ConnResult windows_conn_read_entry_attribute(Repl_Connection *conn, const char *dn, char *type,
  84. struct berval ***returned_bvals);
  85. ConnResult windows_conn_push_schema(Repl_Connection *conn, CSN **remotecsn);
  86. void windows_conn_set_timeout(Repl_Connection *conn, long timeout);
  87. void windows_conn_set_agmt_changed(Repl_Connection *conn);