我正在尝试从命令显示所有禁用的帐户:
ipa user-find --all
该命令的基本输出显示如下:
dn: uid=johnd,cn=users,cn=accounts,dc=mydomain,dc=com
User login: johnd
First Name: John
Last Name: Doe
Full Name: John Doe
Home directory: /home/johnd
GECOS field: John Doe
Login shell: /bin/bash
Kerberos principal: johnd@DOMAIN.COM
Email address: johnd@domain.com
UID: 501
GID: 1022
Account disabled: True
Password: True
Member of groups: ipausers
Kerberos keys available: False
ipauniqueid: 75732ha-482x82l-13xa-d820-0120xbba142
objectclass: ipaobject, krbticketpolicyaux, etc.
如果我运行:
ipa user-find --all | grep "Account disabled: True"
我会得到:
Account disabled: True
Account disabled: True
Account disabled: True
Account disabled: True
对于所有禁用的帐户。有没有办法让它显示所有匹配的字段"Account disabled: True"
?