1
0
mirror of https://github.com/altlinux/admc.git synced 2024-10-26 17:25:38 +03:00
Commit Graph

3409 Commits

Author SHA1 Message Date
kevl
a48f7b140a optimize console_object_properties()
previously was wastefully repeating object searches when one
\ pass was sufficient and could be reused for both main and buddy
\ consoles
2022-05-31 11:14:10 +04:00
kevl
06e26ed387 fix recursion in get_object_tree_root() 2022-05-31 11:00:54 +04:00
kevl
4c828a35b5 fix apply_changes() problems
add missing find branch to apply_changes() for properties
fix apply_changes() for properties
explicitly apply changes to each tree branch in set_disabled() instead
\ of doing a search over whole tree which implicitly finds indexes in
\ branches
2022-05-31 10:55:13 +04:00
kevl
f39e1e291a improve base for "all policies" fetch() 2022-05-30 17:18:40 +04:00
kevl
8ab606973c remove "object_is_ou" check from Policy's drop()
possible drop targets are now restricted to PolicyOU's in can_drop()
\ so don't need this check
add normal_index_list()
2022-05-30 16:13:35 +04:00
kevl
182b10c3e2 add roles for PolicyOU
add policy_ou_impl_load_item_data()
before was reusing ObjectRole, just for ObjectRole_DN
create separate roles because PolicyOU doesn't need all ObjectRole's
add "dn_role" arg to some f-ns in object_impl.cpp that are reused
\ by PolicyOUImpl
modify console_object_properties() to apply_changes to each tree
\ branch separately, better to be explicit here
remove object specific index_list_to_dn_list(), use the general one
2022-05-30 16:10:15 +04:00
kevl
3fb382a61f remove unused test_gplink_equality() 2022-05-30 11:39:49 +04:00
kevl
8582879fa3 inline drop_objects()
used in only one place now
remove unused drop_policies() definition
2022-05-27 17:00:28 +04:00
kevl
49a38fc4a9 change domain string in gplink test
so that it's obvious that test values do not depend on current
\ domain setup
2022-05-27 16:21:05 +04:00
kevl
6e39c33496 revert addition of adconfig to gplink test 2022-05-27 16:20:00 +04:00
kevl
8d4cc58e6d remove adconfig dependency from gplink
change get_gpo_list() to fix textcase without relying
\ on adconfig DN's
2022-05-27 16:19:36 +04:00
kevl
9191bcbfec test Gplink::get_gpo_list()
modify gplink test to have access to adconfig
2022-05-27 15:49:46 +04:00
kevl
3f94d980b6 remove unnecessary UNUSED_ARG() 2022-05-27 15:28:05 +04:00
kevl
f6222c00a2 add missing effect for "remove link" action
when policy is unlinked from within results, it should also get
\ removed from it's previously linked OU in scope pane (console)
2022-05-25 14:15:04 +04:00
kevl
67ac141d3c fix incorrect "delete" action for policies
when policy is deleted from under an OU, it is unlinked
\ no deleted as an object
policy can still be delete normally under "all policies"
2022-05-25 12:02:35 +04:00
kevl
4943a644fa add test for policy ou results 2022-05-25 10:59:23 +04:00
kevl
3527375532 fix handling of ou without links
by results widget
previously, such ou's were incorrectly displaying all policies
add update() and get_view() f-ns for testing
2022-05-25 10:59:13 +04:00
kevl
742090c037 remove todo about object search
can't share code there, too different
2022-05-24 14:31:40 +04:00
kevl
1453c92665 remove duplication in policy ou results 2022-05-24 12:11:29 +04:00
kevl
eead05cba0 simplify console_object_delete()
applying changes separately for policy ou's is easier to understand
change type arg for console_object_delete_dn_list() from list
\ to single value, since list is not needed anymore
2022-05-24 11:58:50 +04:00
kevl
709672f330 remove TODO about apply_changes
can't improve other apply_changes(), they need different logic
\ for different parts of the tree
2022-05-24 11:55:00 +04:00
kevl
00673d4498 add missing effect of "create and link gpo"
create policy needs to be added to "all policies" folder
2022-05-24 11:32:29 +04:00
kevl
e022cfc831 inline singly used f-n
in all policies folder impl
also simplify search, it's just a single object
2022-05-23 15:49:30 +04:00
kevl
e23bf56e0e optimize multi-object searches
do in one search by using an OR filter
add filter_dn_list()
2022-05-23 15:44:23 +04:00
kevl
718ec0b039 save state for policy ou results
previously was using wrong settings key
2022-05-23 15:13:58 +04:00
kevl
bbfc0e81a4 trim includes 2022-05-23 15:12:13 +04:00
kevl
bf1a5bde57 change policy icon to be more distinct
previous was too similar to OU icons
2022-05-23 15:07:12 +04:00
kevl
93d5a35f64 update results after drop operations
in policy tree
trigger an update by refreshing current scope
2022-05-23 15:02:38 +04:00
kevl
e347550910 remove dropping policies in object tree
replaced by drag and drop in policy tree
remove policy_impl reference from object impl
2022-05-23 14:40:21 +04:00
kevl
fef3f568c5 add drag and drop to PolicyOUImpl
dropping policies onto OU's links them
remove code duplication between link_gpo() and create_and_link_gpo()
2022-05-23 14:36:07 +04:00
kevl
93621f85c0 rework dropping OU's onto policies
disable dropping OU's from object tree
enable for OU's in policy tree
2022-05-23 13:48:46 +04:00
kevl
7cece01347 set icons in policy ou results widget 2022-05-23 13:05:23 +04:00
kevl
81b282cf9c remove group policy tab
not needed anymore, replaced by policy ou results widget
2022-05-23 13:03:54 +04:00
kevl
e70d7baf0f add results widget for PolicyOUImpl
specialized widget
similar to results widget for PolicyImpl but reverse
displays gpo's linked to selected policy
replaces group policy tab
2022-05-23 13:01:53 +04:00
kevl
e8a1cc5df9 improve comments for impl's 2022-05-19 13:06:48 +04:00
kevl
a940292c66 add "create and link gpo" action
for OU's in policy tree
2022-05-19 13:02:38 +04:00
kevl
ccfa2a052b add gpo's after "link gpo" action
as child of linked OU in policy tree
change Gplink::get_gpo_list() to return DN's in correct letter case
\ not letter case used in Gplink string
reuse policy_ou_impl_add_objects_from_dns() in fetch()
2022-05-19 10:20:48 +04:00
kevl
603ca55178 add "link gpo" action to policy tree 2022-05-18 13:04:57 +04:00
kevl
9c1c9d07c4 remove unused action from policyouimpl 2022-05-18 11:16:28 +04:00
kevl
651c8cbcec fix "refresh" action for policy ou's
hide this action if policy ou can't be refresh because
\ it hasn't been fetched yet
2022-05-17 14:37:57 +04:00
kevl
caed3dcdce add "properties" action to OU's in policy tree 2022-05-17 14:37:07 +04:00
kevl
fecda2f30b add "delete" action to OU's in policy tree 2022-05-17 14:29:49 +04:00
kevl
f9df203c99 add "rename ou" action to policy tree
added missing check for parent validity when applying changes
\ to object tree in rename. Caused a bug when renaming object outside
\ object tree
2022-05-17 13:38:35 +04:00
kevl
196a0ccf1c apply changes from "create ou" to policy tree 2022-05-17 12:23:19 +04:00
kevl
675803f422 fix icon of "create user" toolbar action 2022-05-17 12:15:02 +04:00
kevl
baad18a202 add "create OU" action to OU's
in policy tree
reuse code from object_impl
doesn't affect policy tree yet
2022-05-16 16:40:35 +04:00
kevl
49e5652ae3 load linked policies under OU's
in policy tree
2022-05-16 15:33:09 +04:00
kevl
2dfe183132 add policy ou impl
load domain + OU tree into policy tree
move "All policies" folder down into domain item in policy tree
need a special impl for OU's/domain in policy tree, can't reuse
\ object impl because their functionality is very different
2022-05-16 14:49:51 +04:00
kevl
aed86a35c2 fix typo in gplink test 2022-05-16 12:47:21 +04:00
kevl
134d13701b add "all policies" to policy tree
same thing as how policy tree root originally was
\ just as a child, so that it's possible to populate the
\ rest of the policy tree with OU's
2022-05-16 10:43:07 +04:00