posix-wsp-ident.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /**
  2. $Id: posix-wsp-ident.h 39 2011-06-10 08:22:11Z grzemba $
  3. **/
  4. #ifndef POSIX_WINSYNC_H
  5. #define POSIX_WINSYNC_H
  6. #define POSIX_WINSYNC_PLUGIN_NAME "posix-winsync"
  7. #define PLUGIN_MAGIC_VENDOR_STR "contac Datentechnik GmbH"
  8. #define PRODUCTTEXT "1.1"
  9. #define null NULL
  10. #define true -1
  11. #define false 0
  12. #define POSIX_WINSYNC_MSSFU_SCHEMA "posixWinsyncMsSFUSchema"
  13. #define POSIX_WINSYNC_MAP_MEMBERUID "posixWinsyncMapMemberUID"
  14. #define POSIX_WINSYNC_CREATE_MEMBEROFTASK "posixWinsyncCreateMemberOfTask"
  15. #define POSIX_WINSYNC_LOWER_CASE "posixWinsyncLowerCaseUID"
  16. #define POSIX_WINSYNC_MAP_NESTED_GROUPING "posixWinsyncMapNestedGrouping"
  17. void * posix_winsync_get_plugin_identity();
  18. typedef struct posix_winsync_config_struct {
  19. Slapi_Mutex *lock; /* for config access */
  20. Slapi_Entry *config_e; /* configuration entry */
  21. PRBool mssfuSchema; /* use W2k3 Schema msSFU30 */
  22. PRBool mapMemberUID; /* map uniqueMember to memberUid */
  23. PRBool lowercase; /* store the uid in group memberuid in lower case */
  24. PRBool createMemberOfTask; /* should memberOf Plugin Task run after AD sync */
  25. PRBool MOFTaskCreated;
  26. PRBool mapNestedGrouping;
  27. Slapi_DN *rep_suffix; /* namingContext in DS of the replicated suffix */
  28. } POSIX_WinSync_Config;
  29. int posix_winsync_config(Slapi_Entry *config_e);
  30. void posix_winsync_config_free();
  31. POSIX_WinSync_Config *posix_winsync_get_config();
  32. PRBool posix_winsync_config_get_mapMemberUid();
  33. PRBool posix_winsync_config_get_msSFUSchema();
  34. PRBool posix_winsync_config_get_lowercase();
  35. PRBool posix_winsync_config_get_createMOFTask();
  36. Slapi_DN *posix_winsync_config_get_suffix();
  37. void posix_winsync_config_reset_MOFTaskCreated();
  38. void posix_winsync_config_set_MOFTaskCreated();
  39. PRBool posix_winsync_config_get_MOFTaskCreated();
  40. PRBool posix_winsync_config_get_mapNestedGrouping();
  41. int posix_group_task_add(Slapi_PBlock *pb, Slapi_Entry *e,
  42. Slapi_Entry *eAfter, int *returncode, char *returntext,
  43. void *arg);
  44. PRUint64 get_plugin_started();
  45. void plugin_op_started();
  46. void plugin_op_finished();
  47. void posix_winsync_plugin_op_all_finished();
  48. #endif