From a76daa7e35983ef4d22840dba1c7650caf6ffeb8 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Mon, 29 Mar 2010 01:13:30 -0700 Subject: [PATCH] support WIND_PROFILE_LDAP_CASE --- lib/wind/stringprep.py | 4 +++- lib/wind/wind.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/wind/stringprep.py b/lib/wind/stringprep.py index d64686a25..249b1dc2a 100644 --- a/lib/wind/stringprep.py +++ b/lib/wind/stringprep.py @@ -46,7 +46,8 @@ ldap_error = ['A.1', 'C.3', 'C.4', 'C.5', 'C.8', 'rfc4518-error' ] sasl_error = ['C.1.2', 'C.2.1', 'C.2.2', 'C.3', 'C.4', 'C.5', 'C.6', 'C.7', 'C.8', 'C.9'] name_map = ['B.1', 'B.2'] -ldap_map = ['rfc4518-map', 'B.2'] +ldap_map = ['rfc4518-map'] +ldap_case_map = ['rfc4518-map', 'B.2'] sasl_map = ['C.1.2', 'B.1'] def symbols(tabledict, tables): @@ -69,6 +70,7 @@ def get_maplist(): d = dict() _merge_table(d, dict(map(lambda x: [x, ['name']], name_map))) _merge_table(d, dict(map(lambda x: [x, ['ldap']], ldap_map))) + _merge_table(d, dict(map(lambda x: [x, ['ldap_case']], ldap_case_map))) _merge_table(d, dict(map(lambda x: [x, ['sasl']], sasl_map))) return d diff --git a/lib/wind/wind.h b/lib/wind/wind.h index e890bebee..dd55ea35d 100644 --- a/lib/wind/wind.h +++ b/lib/wind/wind.h @@ -46,6 +46,7 @@ typedef unsigned int wind_profile_flags; #define WIND_PROFILE_NAME 0x00000001 #define WIND_PROFILE_SASL 0x00000002 #define WIND_PROFILE_LDAP 0x00000004 +#define WIND_PROFILE_LDAP_CASE 0x00000008 #define WIND_PROFILE_LDAP_CASE_EXACT_ATTRIBUTE 0x00010000 #define WIND_PROFILE_LDAP_CASE_EXACT_ASSERTION 0x00020000