From 5d843b2b13d85e562c399aadb7c455ced58349c7 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 19 Jun 2004 18:32:55 +0000 Subject: [PATCH] detect mechs that are known to perform native authz --- servers/slapd/back-ldap/config.c | 7 +++++++ 1 file changed, 7 insertions(+) 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=" ); -- 2.39.5