posix-wsp-ident.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. POSIX_WinSync_Config *posix_winsync_get_config();
  31. PRBool posix_winsync_config_get_mapMemberUid();
  32. PRBool posix_winsync_config_get_msSFUSchema();
  33. PRBool posix_winsync_config_get_lowercase();
  34. PRBool posix_winsync_config_get_createMOFTask();
  35. Slapi_DN *posix_winsync_config_get_suffix();
  36. void posix_winsync_config_reset_MOFTaskCreated();
  37. void posix_winsync_config_set_MOFTaskCreated();
  38. PRBool posix_winsync_config_get_MOFTaskCreated();
  39. PRBool posix_winsync_config_get_mapNestedGrouping();
  40. int posix_group_task_add(Slapi_PBlock *pb, Slapi_Entry *e,
  41. Slapi_Entry *eAfter, int *returncode, char *returntext,
  42. void *arg);
  43. #endif