Previous: Attributes, Up: Retrieving Information About a Principal


5.3.1.2 Retrieving a List of Principals

To generate a listing of principals, use the kadmin list_principals command, which requires the “list” privilege. The syntax is:

     list_principals [expression]

where expression is a shell-style glob expression that can contain the characters `*', `?', `[', and `]'. All policy names matching the expression are displayed. The list_principals command has the aliases listprincs, get_principals, and getprincs. For example:

     kadmin: listprincs test*
     test3@ATHENA.MIT.EDU
     test2@ATHENA.MIT.EDU
     test1@ATHENA.MIT.EDU
     testuser@ATHENA.MIT.EDU
     kadmin:

If no expression is provided, all principals are printed.