I use
(kas-create-user () () () user key)
which creates the user with the given key; I don't think there's any
way to specify a password and have adm run a string to key function on
it.
(although it shouldn't matter - there's little reason why the
program making the adm call can't also be the program that does the
stringtokey...)
To create a pt identity, the call should be
(pts-new-user () () () user () owner)
I've never written code that calls this, but I've used pts-new-group
a lot, and the arguments are exactly the same. The () between user
and owner can be replaced with an integer that specifies the uid to
use for the new entry; () has the ptserver pick one.
)Rob