View Source

{anchor:acfgx}
h1. commadmin user search

The {{commadmin user search}} command displays all provisioned directory properties associated with a single user. To obtain all the directory properties for multiple users, use the {{-i}} option. Only active users are displayed after a search.

h2. Syntax

{noformat}
commadmin user search -D <login> -n <domain> -w <password> [-d <domain>] [-E <string>]
[-F <string>] [-h] [-?] [-i <inputfile>] [-L <string>] [-l <string>] [-p <AM port>] [-s]
[-S <service>] [-t <Search Template>] [-v] [-V] [-X <AM host>]
{noformat}

{anchor:acfgz}

h2. Options

The following options are mandatory:

||Option ||Description ||
|{{-D}} _login_ |The user ID of the user with permission to execute this command. |
|{{-n}} _domain_ |The domain of the user specified with the {{-D}} option. |
|{{-w}} _password_ |The password of the user specified with the {{-D}} option. |


The following options are non-mandatory:

||Option ||Description ||
|{{-d}} _domain_ |The domain of the user. The user is searched only in the specified domain.If {{-d}} is not specified, all domains are considered for the search. |
|{{-E}} _string_ |Searches for user&rsquo;s mail address. The wildcard operator ( * ) may be used within any part of string. |
|{{-F}} _string_ |Searches for user&rsquo;s first name. The wildcard operator ( * ) may be used within any part of string. |
|{{-h}}, {{&ndash;?}} |Prints command usage syntax. |
|{{-i}} _inputfile_ |Reads the command information from a file instead of the command line.\\
An option value specified in the input file overrides any value for the same option set in the command line. |
|{{-L}} _string_ |Searches for user&rsquo;s last name. The wildcard operator ( * ) may be used within any part of string. |
|{{-l}} _string_ |Searches for user's login name. The wildcard operator ( * ) may be used within any part of string. |
|{{-p}} _AM port_ |Use this option to specify an alternate TCP port where the Access Manager is listening. If not specified, the default _AM port_ is used, or Port 80 is used if no default was configured at install time. |
|{{-s}} |Use SSL (Secure Socket Layer) to connect to the directory. |
|{{-S}} _service_ |Specifies the services to match in the user search.\\
_services_ can have the value of a single service or multiple services. The valid _service_ values are {{mail}}, {{cal}}, and {{im}}_._ These values are case-insensitive.\\
The list of services is separated by the comma (,) delimiter.\\
For example:\\
{{-S mail,cal,im}} |
|{{-t}} _Search template_ |Specifies the name of the search templates to be used instead of the default search templates. This is an entry in the directory that defines the filter for the search. Only active users are searched for. |
|{{-v}} |Enable debugging output. |
|{{-V}} |Prints information about the utility and its version. |
|{{-X}} _AM host_ |Specifies the host on which the Access Manager is running. If not specified, the default _AM host_ is used, or the localhost if no default was configured at install time. |

{anchor:acfha}

h2. Example

The following example searches for users in the {{varrius.com}} domain:

{code}
commadmin user search -D chris -w bolton -d varrius.com -n sesta.com
{code}

The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact