From: Pierangelo Masarati Date: Sat, 19 Jun 2004 18:32:55 +0000 (+0000) Subject: detect mechs that are known to perform native authz X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~220 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5d843b2b13d85e562c399aadb7c455ced58349c7;p=openldap detect mechs that are known to perform native authz --- diff --git a/servers/slapd/back-ldap/config.c b/servers/slapd/back-ldap/config.c index 806516053b..89408dc1ed 100644 --- a/servers/slapd/back-ldap/config.c +++ b/servers/slapd/back-ldap/config.c @@ -838,6 +838,13 @@ parse_idassert( } ber_str2bv( val, 0, 1, &li->idassert_sasl_mech ); +#ifdef LDAP_BACK_HOW_TO_DETECT_SASL_NATIVE_AUTHZ + /* mechs that are known to support native authz... */ + if ( strcasecmp( li->idassert_sasl_mech.bv_val, "DIGEST-MD5" ) == 0 ) { + li->idassert_flags |= LDAP_BACK_AUTH_NATIVE_AUTHZ; + } +#endif /* LDAP_BACK_HOW_TO_DETECT_SASL_NATIVE_AUTHZ */ + } else if ( strncasecmp( argv[arg], "realm=", STRLENOF( "realm=" ) ) == 0 ) { char *val = argv[arg] + STRLENOF( "realm=" );