From: <svn...@op...> - 2009-04-04 21:47:48
|
Author: scriptor Date: Sat Apr 4 23:47:43 2009 New Revision: 5533 URL: http://www.opensync.org/changeset/5533 Log: Changed run_delete() to pay regard to the peculiarity of the file-sync plugin, that it changes the UID quasi on the fly just to eliminate problems of certain characters with the different file systems. It is not really clear what kind of consequences this has to the whole synchronization process: Mapping engine, hashtable... Not really good ones, I suppose... Cf. filename_scape_characters() in file-sync/src/filename_scape.h which maps the problematic characters uniformly to '_', so that any remapping into the other direction would never lead to the original character... Modified: plugins/ldap-sync/tests/check_osynctool_common.inc Modified: plugins/ldap-sync/tests/check_osynctool_common.inc ============================================================================== --- plugins/ldap-sync/tests/check_osynctool_common.inc Sat Apr 4 02:37:33 2009 (r5532) +++ plugins/ldap-sync/tests/check_osynctool_common.inc Sat Apr 4 23:47:43 2009 (r5533) @@ -580,8 +580,12 @@ $LDAPDELETE $AUTH -r $DN rv=$? if test $rv -ne 0; then - echo "${FUNCNAME}(): ERROR: ldapdelete has failed. Exiting." - exit $rv; + $LDAPDELETE $AUTH -r ${DN/@/_} + rv=$? + if test $rv -ne 0; then + echo "${FUNCNAME}(): ERROR: ldapdelete has failed. Exiting." + exit $rv; + fi fi |