From d0c350327e3292b56e91f1b76855efca64b96700 Mon Sep 17 00:00:00 2001 From: Martin Nagy Date: Mon, 31 Aug 2009 10:46:00 +0200 Subject: Use uppercase LDAP booleans according to RFC 2252 The search filter for active zones used value "True" for attribute "idnsZoneActive". This is incorrect according to section 6.4 of RFC 2252 which states that boolean syntax is either "TRUE" or "FALSE". --- doc/example.ldif | 2 +- src/ldap_helper.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/example.ldif b/doc/example.ldif index e812257..52604cf 100644 --- a/doc/example.ldif +++ b/doc/example.ldif @@ -11,7 +11,7 @@ objectClass: idnsZone objectClass: idnsRecord idnsName: ipatest.com idnsUpdatePolicy: grant EXAMPLE.COM krb5-self * A; -idnsZoneActive: True +idnsZoneActive: TRUE idnsSOAmName: server.example.com idnsSOArName: root.server.example.com idnsSOAserial: 1 diff --git a/src/ldap_helper.c b/src/ldap_helper.c index eb98b86..1b953f5 100644 --- a/src/ldap_helper.c +++ b/src/ldap_helper.c @@ -613,7 +613,7 @@ refresh_zones_from_ldap(ldap_instance_t *ldap_inst, isc_boolean_t create) CHECK(ldap_query(ldap_conn, str_buf(ldap_inst->base), LDAP_SCOPE_SUBTREE, attrs, 0, - "(&(objectClass=idnsZone)(idnsZoneActive=True))")); + "(&(objectClass=idnsZone)(idnsZoneActive=TRUE))")); CHECK(cache_query_results(ldap_conn)); for (entry = HEAD(ldap_conn->ldap_entries); -- cgit