'how to display principalName and uid with wsadmin
trying to display principalName and uid fields with wsadmin.sh.
Filtering with the wild card:
wsadmin>print AdminTask.searchUsers('[-principalName *]')
CN=John Dow,OU=company1,OU=Accounts,DC=foo,DC=company1,DC=com
CN=Jane Dow,OU=company2,OU=Accounts,DC=foo,DC=company2,DC=com
<and so on>
How do I get the uid displayed along with the CN?
Something like:
uid=johnD,CN=John Dow,OU=company1,OU=Accounts,DC=foo,DC=company1,DC=com
uid=janeD,CN=Jane Dow,OU=company2,OU=Accounts,DC=foo,DC=company2,DC=com
Or something along these lines?
The help clause isn't helpful either:
wsadmin>print AdminTask.help('searchUsers')
WASX8006I: Detailed help for command: searchUsers
Description: Searches PersonAccounts.
Target object: None
Arguments:
securityDomainName - Name used to uniquely identify the security domain.
cn - The common name of the entity.
sn - The surname of the entity.
principalName - The principal name of a PersonAccount.
mail - The e-mail address of the PersonAccount.
uid - The UID of the PersonAccount.
timeLimit - A maximum amount of time, in milliseconds, to run a search.
countLimit - The maximum number of entities to return.
clearCache - The mode of clearing cache before the operation. Valid value is 'clearAll'.
definitely a noob here. Any useful doc refs would help as well - couldn't find any examples with what I'm after and/or how to change the output formatting in general.
I tried different filters, but I don't know how to force the uid get displayed.
Thanks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
