AM 7.3.1

Set multiple attributes in a single ssoadm command

You can set multiple attributes in a single ssoadm command by using a text file or by specifying multiple attributes with the -a option.

Text file

  1. Create a text file with each property on each line followed by a line feed and save the file for example, as TEXT_FILE:

    iplanet-am-session-max-session-time=150
    iplanet-am-session-max-idle-time=15
    iplanet-am-session-max-caching-time=5
  2. Run the ssoadm command specifying the name of the file with the --datafile (-D) option:

    $ ./ssoadm set-attr-defs \
      --servicename iPlanetAMSessionService \
      --schematype dynamic \
      --adminid uid=amAdmin,ou=People,dc=openam,dc=forgerock,dc=org \
      --password-file passwordfile \
      --datafile TEXT_FILE

The --attributevalues option

Run ssoadm using the --attributevalues (-a) option. Separate each attribute with a space:

$ ./ssoadm set-attr-defs \
  --servicename iPlanetAMSessionService \
  --schematype dynamic \
  --adminid uid=amAdmin,ou=People,dc=openam,dc=forgerock,dc=org \
  --password-file passwordfile \
  --attributevalues \
      iplanet-am-session-max-session-time=150 \
      iplanet-am-session-max-idle-time=15 \
      iplanet-am-session-max-caching-time=5
Copyright © 2010-2024 ForgeRock, all rights reserved.