From 97f496a0e3e19a8d35f209d6896c2ebc4ccfb9db Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 9 Jun 2006 11:02:52 +0000 Subject: r16117: Make winbindd work again in security=ads. We still used the old HOST/* UPN to get e.g. users, now we need samaccountname$@REA.LM. Guenther (This used to be commit f6516a799aec2db819f79b9a1e641637422a9b4c) --- source3/libads/ldap.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source3/libads/ldap.c') diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index bac85f3222..7b8b41b10a 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -287,9 +287,13 @@ got_connection: not servicePrincipalName; found by Guenther Deschner @ Sernet. Is this still correct? The comment does not match - the code. --jerry */ + the code. --jerry + + Yes it is :) + - Guenther + */ - asprintf(&ads->auth.user_name, "host/%s", global_myname() ); + asprintf(&ads->auth.user_name, "%s$", global_myname() ); } if (!ads->auth.realm) { -- cgit