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
-
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 -
Run the
ssoadmcommand 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=am,dc=example,dc=com \ --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=am,dc=example,dc=com \
--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