summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2012-05-03 12:51:55 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-05-04 13:36:42 -0400
commit9fd2775fe1ced6ff6a9a3ff7db124fcb52dade5d (patch)
tree28bcaa849b1140d7e12de2c0ef8ec82531a712e7 /src/tests
parentaef21bb77289a61796436eff7a08f64480f813ce (diff)
downloadsssd-9fd2775fe1ced6ff6a9a3ff7db124fcb52dade5d.tar.gz
sssd-9fd2775fe1ced6ff6a9a3ff7db124fcb52dade5d.tar.bz2
sssd-9fd2775fe1ced6ff6a9a3ff7db124fcb52dade5d.zip
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.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/sss_idmap-tests.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/sss_idmap-tests.c b/src/tests/sss_idmap-tests.c
index 5be7a5fd..d81922f1 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);
}