mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-12 15:10:31 +08:00
ITS#10185 autogroup: check for invalid memberURL filter
This commit is contained in:
parent
687bd194c9
commit
1a5007f386
@ -684,6 +684,10 @@ autogroup_add_group( Operation *op, autogroup_info_t *agi, autogroup_def_t *agd,
|
||||
if ( lud->lud_filter != NULL ) {
|
||||
ber_str2bv( lud->lud_filter, 0, 1, &agf->agf_filterstr);
|
||||
agf->agf_filter = str2filter( lud->lud_filter );
|
||||
if ( !agf->agf_filter ) {
|
||||
Debug( LDAP_DEBUG_TRACE, "autogroup_add_group: URL filter is invalid <%s>\n", bv->bv_val );
|
||||
goto cleanup;
|
||||
}
|
||||
} else {
|
||||
Debug( LDAP_DEBUG_TRACE, "autogroup_add_group: URL filter is missing <%s>\n", bv->bv_val );
|
||||
/* FIXME: error? */
|
||||
|
Loading…
x
Reference in New Issue
Block a user