summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-05-31 12:57:46 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-06-02 11:11:52 -0400
commit4c51ec32c11aadd6a3c7a43c2d12a612301aaea8 (patch)
treef445ae24eadbcaad4e0007afc201fac70707ef46 /src
parent07a093af8274f7b051184ec7be8f0807e05eb68e (diff)
downloadsssd-4c51ec32c11aadd6a3c7a43c2d12a612301aaea8.tar.gz
sssd-4c51ec32c11aadd6a3c7a43c2d12a612301aaea8.tar.xz
sssd-4c51ec32c11aadd6a3c7a43c2d12a612301aaea8.zip
Compare full service name
Diffstat (limited to 'src')
-rw-r--r--src/providers/ipa/ipa_access.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_access.c b/src/providers/ipa/ipa_access.c
index 55b833b91..2db5dd7d6 100644
--- a/src/providers/ipa/ipa_access.c
+++ b/src/providers/ipa/ipa_access.c
@@ -1336,7 +1336,8 @@ static errno_t get_service_data(const char *cn, size_t count,
return ENOENT;
} else {
for (j = 0; j < el->num_values; j++) {
- if (strncmp(cn, (const char *) el->values[j].data,
+ if (strlen(cn) == el->values[j].length &&
+ strncmp(cn, (const char *) el->values[j].data,
el->values[j].length) == 0) {
ret = sysdb_attrs_get_string(list[i], SYSDB_ORIG_DN, dn);