Bug 1769644
| Summary: | [RFE] adcli should allow to modify DONT_EXPIRE_PASSWORD attribute | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Hemant B Khot <hkhot> |
| Component: | adcli | Assignee: | Sumit Bose <sbose> |
| Status: | CLOSED ERRATA | QA Contact: | shridhar <sgadekar> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.0 | CC: | afarley, mpfuetzn, pcech, pkettman, sgadekar |
| Target Milestone: | rc | Keywords: | FutureFeature, Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | adcli-0.8.2-11.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-11-09 19:50:53 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Comment 3
Amy Farley
2019-12-11 19:57:15 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 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 |