Bug 1859218
| Summary: | dsidm doesn't support modrdn | ||
|---|---|---|---|
| Product: | Red Hat Directory Server | Reporter: | mreynolds |
| Component: | 389-ds-base | Assignee: | Simon Pichugin <spichugi> |
| Status: | CLOSED ERRATA | QA Contact: | RHDS QE <ds-qe-bugs> |
| Severity: | unspecified | Docs Contact: | Marc Muehlfeld <mmuehlfe> |
| Priority: | unspecified | ||
| Version: | 11.0 | CC: | gkimetto, pasik, sgouvern, spichugi |
| Target Milestone: | --- | ||
| Target Release: | dirsrv-11.3 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | redhat-ds-11-8040020210326143715.45c09202 | Doc Type: | Enhancement |
| Doc Text: |
.The `dsidm` utility supports renaming and moving entries
With this enhancement, you can use the `dsidm` utility to rename and move users, groups, POSIX groups, roles, and organizational units (OU) in Directory Server. For further details and examples, see the link:https://access.redhat.com/documentation/en-us/red_hat_directory_server/11/html/administration_guide/renaming_an_entry#renaming-users-groups-posix-groups-and-ous[Renaming Users, Groups, POSIX Groups, and OUs] section in the Directory Server Administration Guide.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-05-19 07:54:28 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
mreynolds
2020-07-21 13:31:16 UTC
Additionally, with this enhancement, you can use the `dsidm` utility to rename and move Roles. The rest looks good to me! Thank you! Build Version:
389-ds-base-1.4.3.22-1.module+el8dsrv+10501+8ce33e95.x86_64
389-ds-base-libs-1.4.3.22-1.module+el8dsrv+10501+8ce33e95.x86_64
STEPS:
1.) Create a DS instance with sample entries
2.) List current user ids:
dsidm -D "Directory manager" -w <password> <instance> -b "<base dn>" user list
$demo_user
3.) Command has been updated to rename the username and now works as follows:
dsidm -D "Directory manager" -w <password> <instance> -b "<base dn>" user --help
usage: dsidm instance user [-h]
{list,get,get_dn,create,modify,rename,delete} ...
positional arguments:
{list,get,get_dn,create,modify,rename,delete}
action
list list
get get
get_dn get_dn
create create
modify modify <add|delete|replace>:<attribute>:<value> ...
rename rename the object
delete deletes the object
optional arguments:
-h, --help show this help message and exit
4.) Rename the user that was listed above:
dsidm -D "Directory manager" -w <password> <instance> -b "<base dn>" user rename <current UID> <new UID>
5.) Verify that a Success message is given
Successfully renamed to uid=demo_....
6.) List current user id verify that that UID was successfully renamed
dsidm -D "Directory manager" -w <password> <instance> -b "<base dn>" user list
# demo_user2
marking as VERIFIED
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (redhat-ds:11 bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2021:2038 |