posix-wsp-ident.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. void * posix_winsync_get_plugin_identity();
  17. typedef struct posix_winsync_config_struct {
  18. Slapi_Mutex *lock; /* for config access */
  19. Slapi_Entry *config_e; /* configuration entry */
  20. PRBool mssfuSchema; /* use W2k3 Schema msSFU30 */
  21. PRBool mapMemberUID; /* map uniqueMember to memberUid */
  22. PRBool lowercase; /* store the uid in group memberuid in lower case */
  23. PRBool createMemberOfTask; /* should memberOf Plugin Task run after AD sync */
  24. PRBool MOFTaskCreated;
  25. Slapi_DN *rep_suffix; /* namingContext in DS of the replicated suffix */
  26. } POSIX_WinSync_Config;
  27. int posix_winsync_config(Slapi_Entry *config_e);
  28. POSIX_WinSync_Config *posix_winsync_get_config();
  29. PRBool posix_winsync_config_get_mapMemberUid();
  30. PRBool posix_winsync_config_get_msSFUSchema();
  31. PRBool posix_winsync_config_get_lowercase();
  32. PRBool posix_winsync_config_get_createMOFTask();
  33. Slapi_DN *posix_winsync_config_get_suffix();
  34. void posix_winsync_config_reset_MOFTaskCreated();
  35. void posix_winsync_config_set_MOFTaskCreated();
  36. PRBool posix_winsync_config_get_MOFTaskCreated();
  37. int posix_group_task_add(Slapi_PBlock *pb, Slapi_Entry *e,
  38. Slapi_Entry *eAfter, int *returncode, char *returntext,
  39. void *arg);
  40. #endif