mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
detect mechs that are known to perform native authz
This commit is contained in:
parent
92cdecc686
commit
5d843b2b13
1 changed files with 7 additions and 0 deletions
|
|
@ -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=" );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue