oh maaan, that's really sad: i know what the stuff in subauth.h is all about, aaaaagh!
it is incredibly similar to the MSRPC "NETLOGON" stuff that's implemented in cli_nt_login_interactive, cli_nt_login_network and cli_nt_login_generic in rpc_client/cli_login.c
joy.
l.