posix-wsp-ident.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. Slapi_Mutex *lock; /* for config access */
  21. Slapi_Entry *config_e; /* configuration entry */
  22. PRBool mssfuSchema; /* use W2k3 Schema msSFU30 */
  23. PRBool mapMemberUID; /* map uniqueMember to memberUid */
  24. PRBool lowercase; /* store the uid in group memberuid in lower case */
  25. PRBool createMemberOfTask; /* should memberOf Plugin Task run after AD sync */
  26. PRBool MOFTaskCreated;
  27. PRBool mapNestedGrouping;
  28. Slapi_DN *rep_suffix; /* namingContext in DS of the replicated suffix */
  29. } POSIX_WinSync_Config;
  30. int posix_winsync_config(Slapi_Entry *config_e);
  31. void posix_winsync_config_free(void);
  32. POSIX_WinSync_Config *posix_winsync_get_config(void);
  33. PRBool posix_winsync_config_get_mapMemberUid(void);
  34. PRBool posix_winsync_config_get_msSFUSchema(void);
  35. PRBool posix_winsync_config_get_lowercase(void);
  36. PRBool posix_winsync_config_get_createMOFTask(void);
  37. Slapi_DN *posix_winsync_config_get_suffix(void);
  38. void posix_winsync_config_reset_MOFTaskCreated(void);
  39. void posix_winsync_config_set_MOFTaskCreated(void);
  40. PRBool posix_winsync_config_get_MOFTaskCreated(void);
  41. PRBool posix_winsync_config_get_mapNestedGrouping(void);
  42. int posix_group_task_add(Slapi_PBlock *pb, Slapi_Entry *e,
  43. Slapi_Entry *eAfter, int *returncode, char *returntext,
  44. void *arg);
  45. PRUint64 get_plugin_started(void);
  46. void plugin_op_started(void);
  47. void plugin_op_finished(void);
  48. void posix_winsync_plugin_op_all_finished(void);
  49. #endif