kadmin: Use kadm5_iter_principals() to list princs
Now that we have a properly working API for listing principals in an online way, and a server-side implementation of it, use it. This should work with old and new servers, but it will only be online and fast when talking to new servers. (Old servers have a bug though that prevents LIST from working.)
This commit is contained in:
@@ -500,6 +500,12 @@ command = {
|
||||
type = "string"
|
||||
help = "filename to save the principal's krb5.confg in"
|
||||
}
|
||||
option = {
|
||||
long = "upto"
|
||||
type = "integer"
|
||||
default = "-1"
|
||||
help = "maximum number of principals to get/list"
|
||||
}
|
||||
argument = "principal..."
|
||||
min_args = "1"
|
||||
help = "Shows information about principals matching the expressions."
|
||||
@@ -674,6 +680,13 @@ command = {
|
||||
option = {
|
||||
long = "krb5-config-file"
|
||||
type = "string"
|
||||
help = "only use this option with the get command"
|
||||
}
|
||||
option = {
|
||||
long = "upto"
|
||||
type = "integer"
|
||||
default = "-1"
|
||||
help = "maximum number of principals to get/list"
|
||||
}
|
||||
argument = "principal..."
|
||||
min_args = "1"
|
||||
|
||||
Reference in New Issue
Block a user