Author: gd
Date: 2006-06-09 11:02:52 +0000 (Fri, 09 Jun 2006)
New Revision: 16117

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16117

Log:
Make winbindd work again in security=ads.

We still used the old HOST/* UPN to get e.g. users, now we need 
[EMAIL PROTECTED]

Guenther

Modified:
   branches/SAMBA_3_0/source/libads/ldap.c
   trunk/source/libads/ldap.c


Changeset:
Modified: branches/SAMBA_3_0/source/libads/ldap.c
===================================================================
--- branches/SAMBA_3_0/source/libads/ldap.c     2006-06-09 10:50:45 UTC (rev 
16116)
+++ branches/SAMBA_3_0/source/libads/ldap.c     2006-06-09 11:02:52 UTC (rev 
16117)
@@ -287,9 +287,13 @@
                   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) {

Modified: trunk/source/libads/ldap.c
===================================================================
--- trunk/source/libads/ldap.c  2006-06-09 10:50:45 UTC (rev 16116)
+++ trunk/source/libads/ldap.c  2006-06-09 11:02:52 UTC (rev 16117)
@@ -287,9 +287,13 @@
                   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) {

Reply via email to