Check Password Expiry operation
The Check Password Expiry operation lists the user accounts that have not changed their passwords for a specified number of days.
The following table describes the elements for the <items> XML element and adapter request for the Check Password Expiry operation:
Elements for the <items> XML element and adapter request for the Check Password Expiry operation
The following figure shows a sample adapter request for the Check Password Expiry operation:
Adapter request for the Check Password Expiry operation
<active-directory-request>
<target>
<host>vm-w23-rds19</host>
<user-name>administrator</user-name>
<password>bmcAdm1n</password>
</target>
<commands>
<command>
<active-directory-command>Check Password Expiry</active-directory-command>
<object-class>User</object-class>
<parameters>
<name>test*</name>
<stale-password>10</stale-password>
<server>vm-w23-rds19</server>
<user-name>administrator</user-name>
<password>bmcAdm1n</password>
</parameters>
</command>
</commands>
</active-directory-request>
<target>
<host>vm-w23-rds19</host>
<user-name>administrator</user-name>
<password>bmcAdm1n</password>
</target>
<commands>
<command>
<active-directory-command>Check Password Expiry</active-directory-command>
<object-class>User</object-class>
<parameters>
<name>test*</name>
<stale-password>10</stale-password>
<server>vm-w23-rds19</server>
<user-name>administrator</user-name>
<password>bmcAdm1n</password>
</parameters>
</command>
</commands>
</active-directory-request>
The following figure shows a sample adapter response for the Check Password Expiry operation:
Sample adapter response for the Check Password Expiry operation
<active-directory-response>
<metadata>
<status>success</status>
</metadata>
<target-output host="vm-w23-rds19">
<metadata>
<os-id>Windows 2003</os-id>
<os-version>5.2 Build 3790 Service Pack 2</os-version>
<status>success</status>
</metadata>
<commands-output>
<command-output>
<metadata>
<command>dsquery user -stalepwd "10" -name "test*" -s "vm-w23-rds19"
-u "administrator" -p "bmcAdm1n"</command>
<line-count>19</line-count>
<execution-milliseconds>3055</execution-milliseconds>
<exit-code>0</exit-code>
<status>success</status>
</metadata>
<output>
<line index="1">Attempting to connect to remote host...</line>
<line index="2">Initialising rctrlx server component...</line>
<line index="3">Executing remote application: cmd /c dsquery user
-stalepwd "10" -name "test*" -s "vm-w23-rds19" -u "administrator"
-p "bmcAdm1n"</line>
<line index="4">Remote application process ID: 4948</line>
<line index="5">"CN=TestUser-02,OU=Test-Users-OU,DC=vm-w23-rds19,
DC=local"</line>
<line index="6">"CN=TestUser-03,OU=Test-Users-OU,DC=vm-w23-rds19,
DC= <line index="12">"CN=TestUser-12,OU=Test-Users-OU,DC=vm-w23-rds19,
DC=local"</line>
<line index="13">"CN=TestUser-14,OU=Test-Users-OU,DC=vm-w23-rds19,
DC=local"</line>
<line index="14">"CN=TestUser-15,OU=Test-Users-OU,DC=vm-w23-rds19,
DC=local"</line>
<line index="15">"CN=TestUser-16,OU=Test-Users-OU,DC=vm-w23-rds19,
DC=local"</line>
<line index="16">"CN=TestUser-18,OU=Test-Users-OU,DC=vm-w23-rds19,
DC=local"</line>
<line index="17">"CN=TestUser-19,OU=Test-Users-OU,DC=vm-w23-rds19,
DC=local"</line>
<line index="18">"CN=TestUser-20,OU=Test-Users-OU,DC=vm-w23-rds19,
DC=local"</line>
<line index="19">Remote application exited with code: 0</line>
</output>
</command-output>
</commands-output>
</target-output>
</active-directory-response>
<metadata>
<status>success</status>
</metadata>
<target-output host="vm-w23-rds19">
<metadata>
<os-id>Windows 2003</os-id>
<os-version>5.2 Build 3790 Service Pack 2</os-version>
<status>success</status>
</metadata>
<commands-output>
<command-output>
<metadata>
<command>dsquery user -stalepwd "10" -name "test*" -s "vm-w23-rds19"
-u "administrator" -p "bmcAdm1n"</command>
<line-count>19</line-count>
<execution-milliseconds>3055</execution-milliseconds>
<exit-code>0</exit-code>
<status>success</status>
</metadata>
<output>
<line index="1">Attempting to connect to remote host...</line>
<line index="2">Initialising rctrlx server component...</line>
<line index="3">Executing remote application: cmd /c dsquery user
-stalepwd "10" -name "test*" -s "vm-w23-rds19" -u "administrator"
-p "bmcAdm1n"</line>
<line index="4">Remote application process ID: 4948</line>
<line index="5">"CN=TestUser-02,OU=Test-Users-OU,DC=vm-w23-rds19,
DC=local"</line>
<line index="6">"CN=TestUser-03,OU=Test-Users-OU,DC=vm-w23-rds19,
DC= <line index="12">"CN=TestUser-12,OU=Test-Users-OU,DC=vm-w23-rds19,
DC=local"</line>
<line index="13">"CN=TestUser-14,OU=Test-Users-OU,DC=vm-w23-rds19,
DC=local"</line>
<line index="14">"CN=TestUser-15,OU=Test-Users-OU,DC=vm-w23-rds19,
DC=local"</line>
<line index="15">"CN=TestUser-16,OU=Test-Users-OU,DC=vm-w23-rds19,
DC=local"</line>
<line index="16">"CN=TestUser-18,OU=Test-Users-OU,DC=vm-w23-rds19,
DC=local"</line>
<line index="17">"CN=TestUser-19,OU=Test-Users-OU,DC=vm-w23-rds19,
DC=local"</line>
<line index="18">"CN=TestUser-20,OU=Test-Users-OU,DC=vm-w23-rds19,
DC=local"</line>
<line index="19">Remote application exited with code: 0</line>
</output>
</command-output>
</commands-output>
</target-output>
</active-directory-response>
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*