git.samba.org
/
ab
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c1e008
)
r4385: Set the correct target service.
author
Andrew Bartlett
<abartlet@samba.org>
Tue, 28 Dec 2004 23:59:22 +0000
(23:59 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:07:41 +0000
(13:07 -0500)
Andrew Bartlett
(This used to be commit
722f59c7c8d09f548d9325c6051d6687d7aa16c2
)
source4/libcli/ldap/ldap_client.c
patch
|
blob
|
history
diff --git
a/source4/libcli/ldap/ldap_client.c
b/source4/libcli/ldap/ldap_client.c
index a9b20b4ea8e0e8a6743e233d82897895b70c28e5..b405b4f41701e16775a72a47b47cb5acfe01f0f8 100644
(file)
--- a/
source4/libcli/ldap/ldap_client.c
+++ b/
source4/libcli/ldap/ldap_client.c
@@
-412,6
+412,13
@@
int ldap_bind_sasl(struct ldap_connection *conn, const char *username, const cha
goto done;
}
+ status = gensec_set_target_service(conn->gensec, "ldap");
+ if (!NT_STATUS_IS_OK(status)) {
+ DEBUG(1, ("Failed to start set GENSEC target hostname: %s\n",
+ nt_errstr(status)));
+ goto done;
+ }
+
status = gensec_start_mech_by_sasl_name(conn->gensec, "GSS-SPNEGO");
if (!NT_STATUS_IS_OK(status)) {
DEBUG(1, ("Failed to start set GENSEC client SPNEGO mechanism: %s\n",