]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
allow edits of structural attributes.
authorAlan T. DeKok <aland@freeradius.org>
Sun, 17 Jul 2022 14:10:14 +0000 (10:10 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 17 Jul 2022 18:08:40 +0000 (14:08 -0400)
this should work, as the underlying infrastructure now supports it.

src/lib/unlang/edit.c

index 978e9f163e80b094adaea8820acd0d0bb0f1c65e..402420af3d7ed2e2e933f95dc3137e662189560b 100644 (file)
@@ -597,11 +597,6 @@ static unlang_action_t process_edit(rlm_rcode_t *p_result, request_t *request, u
                                        goto error;
                                }
 
-                               if (tmpl_is_attr(state->lhs.vpt) && fr_type_is_structural(tmpl_da(state->lhs.vpt)->type)) {
-                                       REDEBUG("Can't edit structural %s", state->lhs.vpt->name);
-                                       goto error;
-                               }
-
                                fr_assert(!tmpl_is_list(state->lhs.vpt));
 
                                /*