2019-02-07 15:36:58 -05:00
|
|
|
// Module included in the following assemblies:
|
|
|
|
|
//
|
2019-02-19 14:25:06 -05:00
|
|
|
// * applications/pruning-objects.adoc
|
2019-02-07 15:36:58 -05:00
|
|
|
|
2019-05-13 08:55:00 +10:00
|
|
|
[id="pruning-groups_{context}"]
|
2019-02-07 15:36:58 -05:00
|
|
|
= Pruning groups
|
|
|
|
|
|
|
|
|
|
To prune groups records from an external provider, administrators can run the
|
|
|
|
|
following command:
|
|
|
|
|
|
2020-08-06 14:09:31 +01:00
|
|
|
[source,terminal]
|
2019-02-07 15:36:58 -05:00
|
|
|
----
|
|
|
|
|
$ oc adm prune groups \
|
|
|
|
|
--sync-config=path/to/sync/config [<options>]
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
.Prune groups CLI configuration options
|
|
|
|
|
[cols="4,8",options="header"]
|
|
|
|
|
|===
|
|
|
|
|
|
|
|
|
|
|Options |Description
|
|
|
|
|
|
|
|
|
|
.^|`--confirm`
|
|
|
|
|
|Indicate that pruning should occur, instead of performing a dry-run.
|
|
|
|
|
|
|
|
|
|
.^|`--blacklist`
|
|
|
|
|
|Path to the group blacklist file.
|
|
|
|
|
|
|
|
|
|
.^|`--whitelist`
|
|
|
|
|
|Path to the group whitelist file.
|
|
|
|
|
|
|
|
|
|
.^|`--sync-config`
|
|
|
|
|
|Path to the synchronization configuration file.
|
|
|
|
|
|===
|
|
|
|
|
|
|
|
|
|
To see the groups that the prune command deletes:
|
|
|
|
|
|
2020-08-06 14:09:31 +01:00
|
|
|
[source,terminal]
|
2019-02-07 15:36:58 -05:00
|
|
|
----
|
2020-05-19 21:53:36 -04:00
|
|
|
$ oc adm prune groups --sync-config=ldap-sync-config.yaml
|
2019-02-07 15:36:58 -05:00
|
|
|
----
|
|
|
|
|
|
|
|
|
|
To perform the prune operation:
|
|
|
|
|
|
2020-08-06 14:09:31 +01:00
|
|
|
[source,terminal]
|
2019-02-07 15:36:58 -05:00
|
|
|
----
|
2020-05-19 21:53:36 -04:00
|
|
|
$ oc adm prune groups --sync-config=ldap-sync-config.yaml --confirm
|
2019-02-07 15:36:58 -05:00
|
|
|
----
|
|
|
|
|
|
|
|
|
|
////
|
|
|
|
|
Needs "Additional resources" links when converted:
|
|
|
|
|
|
2020-10-08 11:10:45 -07:00
|
|
|
//Future xref:../install_config/syncing_groups_with_ldap.adoc#configuring-ldap-sync[Configuring LDAP Sync]
|
|
|
|
|
//Future xref:../install_config/syncing_groups_with_ldap.adoc#overview[Syncing Groups With LDAP]
|
2019-02-07 15:36:58 -05:00
|
|
|
////
|