RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1769644 - [RFE] adcli should allow to modify DONT_EXPIRE_PASSWORD attribute
Summary: [RFE] adcli should allow to modify DONT_EXPIRE_PASSWORD attribute
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: adcli
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Sumit Bose
QA Contact: shridhar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-07 04:59 UTC by Hemant B Khot
Modified: 2021-11-10 09:24 UTC (History)
5 users (show)

Fixed In Version: adcli-0.8.2-11.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 19:50:53 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4453 0 None None None 2021-11-09 19:50:58 UTC

Comment 3 Amy Farley 2019-12-11 19:57:15 UTC
Moving this to RHEL 8 as RHEL 7 is too late in lifecycle for this feature.

Comment 11 shridhar 2021-06-21 09:05:54 UTC
# numEntries: 1
[root@ci-vm-10-0-137- tmp.agRhcHLkkj]# rpm -q adcli
adcli-0.8.2-12.el8.x86_64


[root@ci-vm-10-0-137- tmp.agRhcHLkkj]# adcli --verbose update --dont-expire-password=no -C
 * Found realm in keytab: AD.BASEOS.QE
 * Found computer name in keytab: CI-VM-10-0-137-
 * Found service principal in keytab: host/CI-VM-10-0-137-
 * Found service principal in keytab: host/ci-vm-10-0-137-.ad.baseos.qe
 * Found host qualified name in keytab: ci-vm-10-0-137-.ad.baseos.qe
 * Found service principal in keytab: RestrictedKrbHost/CI-VM-10-0-137-
 * Found service principal in keytab: RestrictedKrbHost/ci-vm-10-0-137-.ad.baseos.qe
 * Calculated domain name from host fqdn: ad.baseos.qe
 * Using computer account name: CI-VM-10-0-137-
 * Using domain realm: ad.baseos.qe
 * Discovering domain controllers: _ldap._tcp.ad.baseos.qe
 * Sending NetLogon ping to domain controller: sec-ad1.ad.baseos.qe
 * Sending NetLogon ping to domain controller: sec-ad1.ad.baseos.qe
 * Received NetLogon info from: sec-ad1.ad.baseos.qe
 * Wrote out krb5.conf snippet to /tmp/adcli-krb5-rBkV68/krb5.d/adcli-krb5-conf-TnJ1G6
 * Using GSS-SPNEGO for SASL bind
 * Looked up short domain name: AD
 * Looked up domain SID: S-1-5-21-3917357665-4280980005-1639201238
 * Using fully qualified name: ci-vm-10-0-137-.ad.baseos.qe
 * Using domain name: ad.baseos.qe
 * Using computer account name: CI-VM-10-0-137-
 * Using domain realm: ad.baseos.qe
 * Using fully qualified name: ci-vm-10-0-137-.ad.baseos.qe
 * Enrolling computer name: CI-VM-10-0-137-
 * Generated 120 character computer password
 * Using keytab: FILE:/etc/krb5.keytab
 * Found computer account for CI-VM-10-0-137-$ at: CN=CI-VM-10-0-137-,CN=Computers,DC=ad,DC=baseos,DC=qe
 * Retrieved kvno '2' for computer account in directory: CN=CI-VM-10-0-137-,CN=Computers,DC=ad,DC=baseos,DC=qe
 * Password not too old, no change needed
 * Sending NetLogon ping to domain controller: sec-ad1.ad.baseos.qe
 * Sending NetLogon ping to domain controller: sec-ad1.ad.baseos.qe
 * Received NetLogon info from: sec-ad1.ad.baseos.qe
 * Modifying computer account: userAccountControl
 * Checking RestrictedKrbHost/ci-vm-10-0-137-.ad.baseos.qe
 *    Added RestrictedKrbHost/ci-vm-10-0-137-.ad.baseos.qe
 * Checking RestrictedKrbHost/CI-VM-10-0-137-
 *    Added RestrictedKrbHost/CI-VM-10-0-137-
 * Checking host/ci-vm-10-0-137-.ad.baseos.qe
 *    Added host/ci-vm-10-0-137-.ad.baseos.qe
 * Checking host/CI-VM-10-0-137-
 *    Added host/CI-VM-10-0-137-


[root@ci-vm-10-0-137- tmp.agRhcHLkkj]# ldapsearch -Y GSSAPI -h sec-ad1.ad.baseos.qe -D 'Administrator.qe' -b 'cn=computers,dc=ad,dc=baseos,dc=qe' 'cn=ci-vm-10-0-137-*' 'userAccountControl'
SASL/GSSAPI authentication started
SASL username: ADMINISTRATOR.QE
SASL SSF: 256
SASL data security layer installed.
# extended LDIF
#
# LDAPv3
# base <cn=computers,dc=ad,dc=baseos,dc=qe> with scope subtree
# filter: cn=ci-vm-10-0-137-*
# requesting: userAccountControl 
#

# CI-VM-10-0-137-, Computers, ad.baseos.qe
dn: CN=CI-VM-10-0-137-,CN=Computers,DC=ad,DC=baseos,DC=qe
userAccountControl: 4096

# search result
search: 4
result: 0 Success

[root@ci-vm-10-0-137- tmp.agRhcHLkkj]# adcli --verbose update --dont-expire-password=yes -C
 * Found realm in keytab: AD.BASEOS.QE
 * Found computer name in keytab: CI-VM-10-0-137-
 * Found service principal in keytab: host/CI-VM-10-0-137-
 * Found service principal in keytab: host/ci-vm-10-0-137-.ad.baseos.qe
 * Found host qualified name in keytab: ci-vm-10-0-137-.ad.baseos.qe
 * Found service principal in keytab: RestrictedKrbHost/CI-VM-10-0-137-
 * Found service principal in keytab: RestrictedKrbHost/ci-vm-10-0-137-.ad.baseos.qe
 * Calculated domain name from host fqdn: ad.baseos.qe
 * Using computer account name: CI-VM-10-0-137-
 * Using domain realm: ad.baseos.qe
 * Discovering domain controllers: _ldap._tcp.ad.baseos.qe
 * Sending NetLogon ping to domain controller: sec-ad1.ad.baseos.qe
 * Sending NetLogon ping to domain controller: sec-ad1.ad.baseos.qe
 * Received NetLogon info from: sec-ad1.ad.baseos.qe
 * Wrote out krb5.conf snippet to /tmp/adcli-krb5-HPH5ak/krb5.d/adcli-krb5-conf-wqxaZg
 * Using GSS-SPNEGO for SASL bind
 * Looked up short domain name: AD
 * Looked up domain SID: S-1-5-21-3917357665-4280980005-1639201238
 * Using fully qualified name: ci-vm-10-0-137-.ad.baseos.qe
 * Using domain name: ad.baseos.qe
 * Using computer account name: CI-VM-10-0-137-
 * Using domain realm: ad.baseos.qe
 * Using fully qualified name: ci-vm-10-0-137-.ad.baseos.qe
 * Enrolling computer name: CI-VM-10-0-137-
 * Generated 120 character computer password
 * Using keytab: FILE:/etc/krb5.keytab
 * Found computer account for CI-VM-10-0-137-$ at: CN=CI-VM-10-0-137-,CN=Computers,DC=ad,DC=baseos,DC=qe
 * Retrieved kvno '2' for computer account in directory: CN=CI-VM-10-0-137-,CN=Computers,DC=ad,DC=baseos,DC=qe
 * Password not too old, no change needed
 * Sending NetLogon ping to domain controller: sec-ad1.ad.baseos.qe
 * Sending NetLogon ping to domain controller: sec-ad1.ad.baseos.qe
 * Received NetLogon info from: sec-ad1.ad.baseos.qe
 * Modifying computer account: userAccountControl
 * Checking RestrictedKrbHost/ci-vm-10-0-137-.ad.baseos.qe
 *    Added RestrictedKrbHost/ci-vm-10-0-137-.ad.baseos.qe
 * Checking RestrictedKrbHost/CI-VM-10-0-137-
 *    Added RestrictedKrbHost/CI-VM-10-0-137-
 * Checking host/ci-vm-10-0-137-.ad.baseos.qe
 *    Added host/ci-vm-10-0-137-.ad.baseos.qe
 * Checking host/CI-VM-10-0-137-
 *    Added host/CI-VM-10-0-137-
[root@ci-vm-10-0-137- tmp.agRhcHLkkj]# ldapsearch -Y GSSAPI -h sec-ad1.ad.baseos.qe -D 'Administrator.qe' -b 'cn=computers,dc=ad,dc=baseos,dc=qe' 'cn=ci-vm-10-0-137-*' 'userAccountControl'
SASL/GSSAPI authentication started
SASL username: ADMINISTRATOR.QE
SASL SSF: 256
SASL data security layer installed.
# extended LDIF
#
# LDAPv3
# base <cn=computers,dc=ad,dc=baseos,dc=qe> with scope subtree
# filter: cn=ci-vm-10-0-137-*
# requesting: userAccountControl 
#

# CI-VM-10-0-137-, Computers, ad.baseos.qe
dn: CN=CI-VM-10-0-137-,CN=Computers,DC=ad,DC=baseos,DC=qe
userAccountControl: 69632

# search result
search: 4
result: 0 Success

# numResponses: 2
# numEntries: 1
[root@ci-vm-10-0-137- tmp.agRhcHLkkj]# adcli --verbose update --dont-expire-password=false -C
 * Found realm in keytab: AD.BASEOS.QE
 * Found computer name in keytab: CI-VM-10-0-137-
 * Found service principal in keytab: host/CI-VM-10-0-137-
 * Found service principal in keytab: host/ci-vm-10-0-137-.ad.baseos.qe
 * Found host qualified name in keytab: ci-vm-10-0-137-.ad.baseos.qe
 * Found service principal in keytab: RestrictedKrbHost/CI-VM-10-0-137-
 * Found service principal in keytab: RestrictedKrbHost/ci-vm-10-0-137-.ad.baseos.qe
 * Calculated domain name from host fqdn: ad.baseos.qe
 * Using computer account name: CI-VM-10-0-137-
 * Using domain realm: ad.baseos.qe
 * Discovering domain controllers: _ldap._tcp.ad.baseos.qe
 * Sending NetLogon ping to domain controller: sec-ad1.ad.baseos.qe
 * Sending NetLogon ping to domain controller: sec-ad1.ad.baseos.qe
 * Received NetLogon info from: sec-ad1.ad.baseos.qe
 * Wrote out krb5.conf snippet to /tmp/adcli-krb5-8wqmtq/krb5.d/adcli-krb5-conf-bnTgbs
 * Using GSS-SPNEGO for SASL bind
 * Looked up short domain name: AD
 * Looked up domain SID: S-1-5-21-3917357665-4280980005-1639201238
 * Using fully qualified name: ci-vm-10-0-137-.ad.baseos.qe
 * Using domain name: ad.baseos.qe
 * Using computer account name: CI-VM-10-0-137-
 * Using domain realm: ad.baseos.qe
 * Using fully qualified name: ci-vm-10-0-137-.ad.baseos.qe
 * Enrolling computer name: CI-VM-10-0-137-
 * Generated 120 character computer password
 * Using keytab: FILE:/etc/krb5.keytab
 * Found computer account for CI-VM-10-0-137-$ at: CN=CI-VM-10-0-137-,CN=Computers,DC=ad,DC=baseos,DC=qe
 * Retrieved kvno '2' for computer account in directory: CN=CI-VM-10-0-137-,CN=Computers,DC=ad,DC=baseos,DC=qe
 * Password not too old, no change needed
 * Sending NetLogon ping to domain controller: sec-ad1.ad.baseos.qe
 * Sending NetLogon ping to domain controller: sec-ad1.ad.baseos.qe
 * Received NetLogon info from: sec-ad1.ad.baseos.qe
 * Modifying computer account: userAccountControl
 * Checking RestrictedKrbHost/ci-vm-10-0-137-.ad.baseos.qe
 *    Added RestrictedKrbHost/ci-vm-10-0-137-.ad.baseos.qe
 * Checking RestrictedKrbHost/CI-VM-10-0-137-
 *    Added RestrictedKrbHost/CI-VM-10-0-137-
 * Checking host/ci-vm-10-0-137-.ad.baseos.qe
 *    Added host/ci-vm-10-0-137-.ad.baseos.qe
 * Checking host/CI-VM-10-0-137-
 *    Added host/CI-VM-10-0-137-
[root@ci-vm-10-0-137- tmp.agRhcHLkkj]# ldapsearch -Y GSSAPI -h sec-ad1.ad.baseos.qe -D 'Administrator.qe' -b 'cn=computers,dc=ad,dc=baseos,dc=qe' 'cn=ci-vm-10-0-137-*' 'userAccountControl'
SASL/GSSAPI authentication started
SASL username: ADMINISTRATOR.QE
SASL SSF: 256
SASL data security layer installed.
# extended LDIF
#
# LDAPv3
# base <cn=computers,dc=ad,dc=baseos,dc=qe> with scope subtree
# filter: cn=ci-vm-10-0-137-*
# requesting: userAccountControl 
#

# CI-VM-10-0-137-, Computers, ad.baseos.qe
dn: CN=CI-VM-10-0-137-,CN=Computers,DC=ad,DC=baseos,DC=qe
userAccountControl: 4096

# search result
search: 4
result: 0 Success

# numResponses: 2
# numEntries: 1

[root@ci-vm-10-0-137- tmp.agRhcHLkkj]# adcli --verbose update --dont-expire-password=true -C
 * Found realm in keytab: AD.BASEOS.QE
 * Found computer name in keytab: CI-VM-10-0-137-
 * Found service principal in keytab: host/CI-VM-10-0-137-
 * Found service principal in keytab: host/ci-vm-10-0-137-.ad.baseos.qe
 * Found host qualified name in keytab: ci-vm-10-0-137-.ad.baseos.qe
 * Found service principal in keytab: RestrictedKrbHost/CI-VM-10-0-137-
 * Found service principal in keytab: RestrictedKrbHost/ci-vm-10-0-137-.ad.baseos.qe
 * Calculated domain name from host fqdn: ad.baseos.qe
 * Using computer account name: CI-VM-10-0-137-
 * Using domain realm: ad.baseos.qe
 * Discovering domain controllers: _ldap._tcp.ad.baseos.qe
 * Sending NetLogon ping to domain controller: sec-ad1.ad.baseos.qe
 * Sending NetLogon ping to domain controller: sec-ad1.ad.baseos.qe
 * Received NetLogon info from: sec-ad1.ad.baseos.qe
 * Wrote out krb5.conf snippet to /tmp/adcli-krb5-gPmFjz/krb5.d/adcli-krb5-conf-OhgfsC
 * Using GSS-SPNEGO for SASL bind
 * Looked up short domain name: AD
 * Looked up domain SID: S-1-5-21-3917357665-4280980005-1639201238
 * Using fully qualified name: ci-vm-10-0-137-.ad.baseos.qe
 * Using domain name: ad.baseos.qe
 * Using computer account name: CI-VM-10-0-137-
 * Using domain realm: ad.baseos.qe
 * Using fully qualified name: ci-vm-10-0-137-.ad.baseos.qe
 * Enrolling computer name: CI-VM-10-0-137-
 * Generated 120 character computer password
 * Using keytab: FILE:/etc/krb5.keytab
 * Found computer account for CI-VM-10-0-137-$ at: CN=CI-VM-10-0-137-,CN=Computers,DC=ad,DC=baseos,DC=qe
 * Retrieved kvno '2' for computer account in directory: CN=CI-VM-10-0-137-,CN=Computers,DC=ad,DC=baseos,DC=qe
 * Password not too old, no change needed
 * Sending NetLogon ping to domain controller: sec-ad1.ad.baseos.qe
 * Sending NetLogon ping to domain controller: sec-ad1.ad.baseos.qe
 * Received NetLogon info from: sec-ad1.ad.baseos.qe
 * Modifying computer account: userAccountControl
 * Checking RestrictedKrbHost/ci-vm-10-0-137-.ad.baseos.qe
 *    Added RestrictedKrbHost/ci-vm-10-0-137-.ad.baseos.qe
 * Checking RestrictedKrbHost/CI-VM-10-0-137-
 *    Added RestrictedKrbHost/CI-VM-10-0-137-
 * Checking host/ci-vm-10-0-137-.ad.baseos.qe
 *    Added host/ci-vm-10-0-137-.ad.baseos.qe
 * Checking host/CI-VM-10-0-137-
 *    Added host/CI-VM-10-0-137-
[root@ci-vm-10-0-137- tmp.agRhcHLkkj]# ldapsearch -Y GSSAPI -h sec-ad1.ad.baseos.qe -D 'Administrator.qe' -b 'cn=computers,dc=ad,dc=baseos,dc=qe' 'cn=ci-vm-10-0-137-*' 'userAccountControl'
SASL/GSSAPI authentication started
SASL username: ADMINISTRATOR.QE
SASL SSF: 256
SASL data security layer installed.
# extended LDIF
#
# LDAPv3
# base <cn=computers,dc=ad,dc=baseos,dc=qe> with scope subtree
# filter: cn=ci-vm-10-0-137-*
# requesting: userAccountControl 
#

# CI-VM-10-0-137-, Computers, ad.baseos.qe
dn: CN=CI-VM-10-0-137-,CN=Computers,DC=ad,DC=baseos,DC=qe
userAccountControl: 69632

# search result
search: 4
result: 0 Success

# numResponses: 2
# numEntries: 1


marking verified

Comment 19 errata-xmlrpc 2021-11-09 19:50:53 UTC
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 (adcli 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/RHBA-2021:4453


Note You need to log in before you can comment on or make changes to this bug.