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