~ubuntu-branches/ubuntu/vivid/389-ds-base/vivid

« back to all changes in this revision

Viewing changes to ldap/servers/plugins/posix-winsync/posix-winsync-config.c

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2014-07-08 15:50:11 UTC
  • mfrom: (0.2.2)
  • Revision ID: package-import@ubuntu.com-20140708155011-r66lvtioamqwaype
Tags: 1.3.2.19-1
* New upstream release.
* admin_scripts.diff: Updated to fix more bashisms.
* watch: Update the url.
* Install failedbinds.py and logregex.py scripts.
* init: Use status from init-functions.
* control: Update my email.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
 
73
73
    sdn = slapi_get_first_suffix(&node, 0);
74
74
    while (sdn) {
75
 
        if (slapi_sdn_isparent(sdn, ds_subtree) == 0) {
 
75
        /* if sdn is a parent of ds_subtree or sdn is the WinSync Subtree itself */
 
76
        if (slapi_sdn_isparent(sdn, ds_subtree) || !slapi_sdn_compare(sdn, ds_subtree)) {
76
77
            theConfig.rep_suffix = sdn;
77
78
            slapi_log_error(SLAPI_LOG_PLUGIN, POSIX_WINSYNC_PLUGIN_NAME, "Found suffix's '%s'\n",
78
79
                            slapi_sdn_get_dn(sdn));
239
240
    if (!slapi_entry_attr_find(e, POSIX_WINSYNC_MSSFU_SCHEMA, &testattr) && (NULL != testattr)) {
240
241
        mssfuSchema = slapi_entry_attr_get_bool(e, POSIX_WINSYNC_MSSFU_SCHEMA);
241
242
        slapi_log_error(SLAPI_LOG_PLUGIN, POSIX_WINSYNC_PLUGIN_NAME,
242
 
                        "_apply_config: Config paramter %s: %d\n", POSIX_WINSYNC_MSSFU_SCHEMA,
 
243
                        "_apply_config: Config parameter %s: %d\n", POSIX_WINSYNC_MSSFU_SCHEMA,
243
244
                        mssfuSchema);
244
245
    }
245
246
 
247
248
    if (!slapi_entry_attr_find(e, POSIX_WINSYNC_MAP_MEMBERUID, &testattr) && (NULL != testattr)) {
248
249
        mapMemberUID = slapi_entry_attr_get_bool(e, POSIX_WINSYNC_MAP_MEMBERUID);
249
250
        slapi_log_error(SLAPI_LOG_PLUGIN, POSIX_WINSYNC_PLUGIN_NAME,
250
 
                        "_apply_config: Config paramter %s: %d\n", POSIX_WINSYNC_MAP_MEMBERUID,
 
251
                        "_apply_config: Config parameter %s: %d\n", POSIX_WINSYNC_MAP_MEMBERUID,
251
252
                        mapMemberUID);
252
253
    }
253
254
    /* get create task value */
255
256
        != testattr)) {
256
257
        createMemberOfTask = slapi_entry_attr_get_bool(e, POSIX_WINSYNC_CREATE_MEMBEROFTASK);
257
258
        slapi_log_error(SLAPI_LOG_PLUGIN, POSIX_WINSYNC_PLUGIN_NAME,
258
 
                        "_apply_config: Config paramter %s: %d\n",
 
259
                        "_apply_config: Config parameter %s: %d\n",
259
260
                        POSIX_WINSYNC_CREATE_MEMBEROFTASK, createMemberOfTask);
260
261
    }
261
262
    /* get lower case UID in memberUID */
262
263
    if (!slapi_entry_attr_find(e, POSIX_WINSYNC_LOWER_CASE, &testattr) && (NULL != testattr)) {
263
264
        lowercase = slapi_entry_attr_get_bool(e, POSIX_WINSYNC_LOWER_CASE);
264
265
        slapi_log_error(SLAPI_LOG_PLUGIN, POSIX_WINSYNC_PLUGIN_NAME,
265
 
                        "_apply_config: Config paramter %s: %d\n", POSIX_WINSYNC_LOWER_CASE,
 
266
                        "_apply_config: Config parameter %s: %d\n", POSIX_WINSYNC_LOWER_CASE,
266
267
                        lowercase);
267
268
    }
268
269
    /* propogate memberuids in nested grouping */
269
270
    if (!slapi_entry_attr_find(e, POSIX_WINSYNC_MAP_NESTED_GROUPING, &testattr) && (NULL != testattr)) {
270
271
        mapNestedGrouping = slapi_entry_attr_get_bool(e, POSIX_WINSYNC_MAP_NESTED_GROUPING);
271
272
        slapi_log_error(SLAPI_LOG_PLUGIN, POSIX_WINSYNC_PLUGIN_NAME,
272
 
                        "_apply_config: Config paramter %s: %d\n", POSIX_WINSYNC_MAP_NESTED_GROUPING,
 
273
                        "_apply_config: Config parameter %s: %d\n", POSIX_WINSYNC_MAP_NESTED_GROUPING,
273
274
                        mapNestedGrouping);
274
275
    }
275
276
    /* if we got here, we have valid values for everything