kadmind: Online LIST using kadm5_iter_principals()

Implement a variation on the op for listing principals where if the
client indicates support for the new variation then we stream the list
instead of collecting it into one reply.  This is the server-side
version of the associated, preceding commit:

    kadm5: Add online kadm5_iter_principals()
This commit is contained in:
Nicolas Williams
2022-03-18 00:28:10 -05:00
parent ed4b1be5bb
commit b92a02edda
4 changed files with 333 additions and 19 deletions

View File

@@ -98,6 +98,7 @@
extern krb5_context context;
extern void * kadm_handle;
extern int list_chunk_size;
#undef ALLOC
#define ALLOC(X) ((X) = malloc(sizeof(*(X))))