What is the syntax for using the EXPIRES property with the command line interface (CLI)? (NETIQKB50634)

  • 7750634
  • 02-Feb-2007
  • 19-Jun-2007

Resolution

goal
What is the syntax for using the EXPIRES property with the command line interface (CLI)?

goal
How do I set an account expiration date using the command line interface (CLI)?

goal
Can I set an account expiration date to "Never" with the command line interface (CLI)?

fact
Directory and Resource Administrator 6.x

fact
Directory and Resource Administrator 7.x

fix

You can use the command line interface (CLI) for Directory and Resource Administrator (DRA) to set the expiration dates for user accounts. The basic syntax for this operation is as follows:

EA USER target UPDATE EXPIRES:yyyy-mm-dd

For example, to set the "asmith" user account to expire on April 1, 2007, enter the following CLI command:

EA USER asmith UPDATE EXPIRES:2007-04-01

To set the expiration date to "Never" for a user account, use a blank field after the EXPIRES: property. For example, to set the expiration for the same "asmith" user back to "Never," enter the following CLI command:

EA USER asmith UPDATE EXPIRES:



note

You can use the CLI to update several accounts at once with a batch process. For more information about this process, see NetIQ Knowledge Base article NETIQKB22483 "How do I create bulk accounts and set their passwords during the create operation?" at https://www.netiq.com/kb/esupport/consumer/esupport.asp?id=NETIQKB22483.



Additional Information

Formerly known as NETIQKB50634