windowsrepl.h 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. * END COPYRIGHT BLOCK **/
  6. /* windows_private.c */
  7. typedef struct windowsprivate Dirsync_Private;
  8. Dirsync_Private* windows_private_new();
  9. void windows_private_set_windows_subtree (const Repl_Agmt *ra,const Slapi_DN* sdn );
  10. const Slapi_DN* windows_private_get_windows_subtree (const Repl_Agmt *ra);
  11. void windows_private_set_directory_subtree (const Repl_Agmt *ra,const Slapi_DN* sdn );
  12. const Slapi_DN* windows_private_get_directory_subtree (const Repl_Agmt *ra);
  13. LDAPControl* windows_private_dirsync_control(const Repl_Agmt *ra);
  14. ConnResult send_dirsync_search(Repl_Connection *conn);
  15. ConnResult windows_search_entry(Repl_Connection *conn, char* searchbase, char *filter, Slapi_Entry **entry);
  16. Slapi_Entry *windows_conn_get_search_result(Repl_Connection *conn );
  17. void windows_private_update_dirsync_control(const Repl_Agmt *ra,LDAPControl **controls );
  18. PRBool windows_private_dirsync_has_more(const Repl_Agmt *ra);
  19. void windows_private_null_dirsync_cookie(const Repl_Agmt *ra);
  20. int windows_private_save_dirsync_cookie(const Repl_Agmt *ra);
  21. int windows_private_load_dirsync_cookie(const Repl_Agmt *ra);
  22. void windows_private_set_create_users(const Repl_Agmt *ra, PRBool value);
  23. PRBool windows_private_create_users(const Repl_Agmt *ra);
  24. const char *windows_private_get_windows_domain(const Repl_Agmt *ra);
  25. static void windows_private_set_windows_domain(const Repl_Agmt *ra, char *domain);
  26. int windows_private_get_isnt4(const Repl_Agmt *ra);
  27. void windows_private_set_isnt4(const Repl_Agmt *ra, int isit);
  28. const char* windows_private_get_purl(const Repl_Agmt *ra);
  29. /* in windows_connection.c */
  30. ConnResult windows_conn_connect(Repl_Connection *conn);
  31. void windows_conn_disconnect(Repl_Connection *conn);
  32. void windows_conn_delete(Repl_Connection *conn);
  33. void windows_conn_get_error(Repl_Connection *conn, int *operation, int *error);
  34. ConnResult windows_conn_send_add(Repl_Connection *conn, const char *dn, LDAPMod **attrs,
  35. LDAPControl *update_control, LDAPControl ***returned_controls);
  36. ConnResult windows_conn_send_delete(Repl_Connection *conn, const char *dn,
  37. LDAPControl *update_control, LDAPControl ***returned_controls);
  38. ConnResult windows_conn_send_modify(Repl_Connection *conn, const char *dn, LDAPMod **mods,
  39. LDAPControl *update_control, LDAPControl ***returned_controls);
  40. ConnResult windows_conn_send_rename(Repl_Connection *conn, const char *dn,
  41. const char *newrdn, const char *newparent, int deleteoldrdn,
  42. LDAPControl *update_control, LDAPControl ***returned_controls);
  43. ConnResult windows_conn_send_extended_operation(Repl_Connection *conn, const char *extop_oid,
  44. struct berval *payload, char **retoidp, struct berval **retdatap,
  45. LDAPControl *update_control, LDAPControl ***returned_controls);
  46. const char *windows_conn_get_status(Repl_Connection *conn);
  47. void windows_conn_start_linger(Repl_Connection *conn);
  48. void windows_conn_cancel_linger(Repl_Connection *conn);
  49. ConnResult windows_conn_replica_supports_ds5_repl(Repl_Connection *conn);
  50. ConnResult windows_conn_replica_supports_dirsync(Repl_Connection *conn);
  51. ConnResult windows_conn_read_entry_attribute(Repl_Connection *conn, const char *dn, char *type,
  52. struct berval ***returned_bvals);
  53. ConnResult windows_conn_push_schema(Repl_Connection *conn, CSN **remotecsn);
  54. void windows_conn_set_timeout(Repl_Connection *conn, long timeout);
  55. void windows_conn_set_agmt_changed(Repl_Connection *conn);