From 9fd2775fe1ced6ff6a9a3ff7db124fcb52dade5d Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Thu, 3 May 2012 12:51:55 +0200 Subject: Fix endian issue in SID conversion Since the byte-order is only important when dealing with the binary SID the sub-auth values are stored in host order and are only converted while reading or writing the binary SID. --- src/tests/sss_idmap-tests.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/tests') diff --git a/src/tests/sss_idmap-tests.c b/src/tests/sss_idmap-tests.c index 5be7a5fdb..d81922f11 100644 --- a/src/tests/sss_idmap-tests.c +++ b/src/tests/sss_idmap-tests.c @@ -349,7 +349,9 @@ START_TEST(idmap_test_bin_sid2sid) &sid); fail_unless(err == IDMAP_SUCCESS, "Failed to convert binary SID to SID string."); - fail_unless(strcmp(sid, test_sid) == 0, "SID strings do not match"); + fail_unless(strcmp(sid, test_sid) == 0, "SID strings do not match, " + "expected [%s], get [%s]", + test_sid, sid); talloc_free(sid); } -- cgit