summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-12-19 14:40:28 +1300
committerGarming Sam <garming@samba.org>2014-12-22 05:57:08 +0100
commite9f6dc730df7c496b743f258b03d6fbcef76211e (patch)
tree62c84e3654e74220ef993292972e9154c96ce8b1
parent336ffb29b50298a0597c15b9f60416adb745bc3d (diff)
downloadsamba-e9f6dc730df7c496b743f258b03d6fbcef76211e.tar.gz
samba-e9f6dc730df7c496b743f258b03d6fbcef76211e.tar.xz
samba-e9f6dc730df7c496b743f258b03d6fbcef76211e.zip
dsdb: Use ldb_attr_cmp() for comparing objectclass names
This is the same as strcasecmp, but it is best to remain consistent. Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/dsdb/samdb/ldb_modules/dns_notify.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/dns_notify.c b/source4/dsdb/samdb/ldb_modules/dns_notify.c
index 28a1be960c..2d3ed86163 100644
--- a/source4/dsdb/samdb/ldb_modules/dns_notify.c
+++ b/source4/dsdb/samdb/ldb_modules/dns_notify.c
@@ -160,7 +160,7 @@ static int dns_notify_add(struct ldb_module *module, struct ldb_request *req)
return ldb_operr(ldb);
}
- if (strcasecmp(objectclass->lDAPDisplayName, "dnsZone") == 0) {
+ if (ldb_attr_cmp(objectclass->lDAPDisplayName, "dnsZone") == 0) {
data->reload_zones = true;
break;
}
@@ -233,7 +233,7 @@ static int dns_notify_modify(struct ldb_module *module, struct ldb_request *req)
return ldb_operr(ldb);
}
- if (strcasecmp(objectclass->lDAPDisplayName, "dnsZone") == 0) {
+ if (ldb_attr_cmp(objectclass->lDAPDisplayName, "dnsZone") == 0) {
data->reload_zones = true;
break;
}
@@ -306,7 +306,7 @@ static int dns_notify_delete(struct ldb_module *module, struct ldb_request *req)
return ldb_operr(ldb);
}
- if (strcasecmp(objectclass->lDAPDisplayName, "dnsZone") == 0) {
+ if (ldb_attr_cmp(objectclass->lDAPDisplayName, "dnsZone") == 0) {
data->reload_zones = true;
break;
}