-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 6067 - Improve dsidm CLI No Such Entry handling (#6079)
Description: Add additional error processing to dsidm CLI tool for when basedn or OU subentries are absent. Related: #6067 Reviewed by: @vashirov (Thanks!)
- Loading branch information
Showing
8 changed files
with
67 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# --- BEGIN COPYRIGHT BLOCK --- | ||
# Copyright (C) 2023, Red Hat inc, | ||
# Copyright (C) 2024, Red Hat inc, | ||
# Copyright (C) 2018, William Brown <[email protected]> | ||
# All rights reserved. | ||
# | ||
|
@@ -91,7 +91,6 @@ def entry_status(inst, basedn, log, args): | |
|
||
|
||
def subtree_status(inst, basedn, log, args): | ||
basedn = _get_dn_arg(args.basedn, msg="Enter basedn to check") | ||
filter = "" | ||
scope = ldap.SCOPE_SUBTREE | ||
epoch_inactive_time = None | ||
|
@@ -121,7 +120,6 @@ def subtree_status(inst, basedn, log, args): | |
|
||
|
||
def bulk_update(inst, basedn, log, args): | ||
basedn = _get_dn_arg(args.basedn, msg="Enter basedn to search") | ||
search_filter = "(objectclass=*)" | ||
scope = ldap.SCOPE_SUBTREE | ||
scope_str = "sub" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters