diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-12-10 22:21:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:29:05 -0500 |
commit | 1e6807d8a1b74e48b5df144469ddb0179adea081 (patch) | |
tree | b2a1a5d6cb66f8cec0e017886b6627a54d1a270f /source4 | |
parent | cc0edee3f65cb934bdfd051fe52c22c5e37c0a68 (diff) | |
download | samba-1e6807d8a1b74e48b5df144469ddb0179adea081.tar.gz samba-1e6807d8a1b74e48b5df144469ddb0179adea081.tar.bz2 samba-1e6807d8a1b74e48b5df144469ddb0179adea081.zip |
r20099: Add some comments, and correct others.
Andrew Bartlett
(This used to be commit d1b1a4c059bfa93bd55f9ffc718e802695c50cc9)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libnet/libnet_join.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/libnet/libnet_join.c b/source4/libnet/libnet_join.c index 8e3753065e..3bd1a9783e 100644 --- a/source4/libnet/libnet_join.c +++ b/source4/libnet/libnet_join.c @@ -467,7 +467,7 @@ NTSTATUS libnet_JoinDomain(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, stru return NT_STATUS_NO_MEMORY; } - /* prepare connect to the LSA pipe of PDC */ + /* prepare connect to the SAMR pipe of PDC */ if (r->in.level == LIBNET_JOINDOMAIN_AUTOMATIC) { connect_with_info->in.binding = NULL; connect_with_info->in.name = r->in.domain_name; @@ -476,11 +476,13 @@ NTSTATUS libnet_JoinDomain(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, stru connect_with_info->in.name = NULL; } + /* This level makes a connection to the LSA pipe on the way, + * to get some useful bits of information about the domain */ connect_with_info->level = LIBNET_RPC_CONNECT_DC_INFO; connect_with_info->in.dcerpc_iface = &dcerpc_table_samr; /* - establish a SAMR connection, on the same CIFS transport + establish the SAMR connection */ status = libnet_RpcConnect(ctx, tmp_ctx, connect_with_info); if (!NT_STATUS_IS_OK(status)) { |