summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-06-09 11:02:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:21 -0500
commit97f496a0e3e19a8d35f209d6896c2ebc4ccfb9db (patch)
tree2143475b620ef520a61af94cf4c71ad0b285ddcc /source3
parentc12c557a13ad5e26e1c3c8a7e46f3e096b7f6479 (diff)
downloadsamba-97f496a0e3e19a8d35f209d6896c2ebc4ccfb9db.tar.gz
samba-97f496a0e3e19a8d35f209d6896c2ebc4ccfb9db.tar.bz2
samba-97f496a0e3e19a8d35f209d6896c2ebc4ccfb9db.zip
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)
Diffstat (limited to 'source3')
-rw-r--r--source3/libads/ldap.c8
1 files changed, 6 insertions, 2 deletions
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) {