diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-08-14 17:50:18 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-08-17 11:08:42 +1000 |
commit | 7496095c1b119c1e4f99d985b6dca6ee68dcb520 (patch) | |
tree | 7fe3e5ffbdb90276374826e54de79c6f77484047 /source4 | |
parent | df3ef12cf858290ffcef650a23d32ec2271648b0 (diff) | |
download | samba-7496095c1b119c1e4f99d985b6dca6ee68dcb520.tar.gz samba-7496095c1b119c1e4f99d985b6dca6ee68dcb520.tar.bz2 samba-7496095c1b119c1e4f99d985b6dca6ee68dcb520.zip |
s4:libcli/ldap Explain why we set a hostname for ldapi:// connections
It is a pretty odd thing to do, and it's only because of the
restrictions of DIGEST-MD5 in Cyrus SASL that we do it.
Andrew Bartlett
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libcli/ldap/ldap_client.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/libcli/ldap/ldap_client.c b/source4/libcli/ldap/ldap_client.c index 9135b42574..d278f407dc 100644 --- a/source4/libcli/ldap/ldap_client.c +++ b/source4/libcli/ldap/ldap_client.c @@ -335,7 +335,9 @@ _PUBLIC_ struct composite_context *ldap_connect_send(struct ldap_connection *con SMB_ASSERT(sizeof(protocol)>10); SMB_ASSERT(sizeof(path)>1024); - /* LDAPI connections are to localhost, so give the local host name as the target for gensec */ + /* LDAPI connections are to localhost, so give the + * local host name as the target for gensec's + * DIGEST-MD5 mechanism */ conn->host = talloc_asprintf(conn, "%s.%s", lp_netbios_name(conn->lp_ctx), lp_realm(conn->lp_ctx)); if (composite_nomem(conn->host, state->ctx)) { return result; |