Samba 2.2.0 with this patch allows Win2K to join domain

Richard Sharpe sharpe at ns.aus.com
Sun Nov 5 10:22:33 GMT 2000


Hi,

With the attached patch, my reasonably recent version of Samba 2.2.0 allows
Win2K to join the domain.

I cannot see who applied the changes as I can't figure out how to get CVS
to tell me the differences or history ...

As you can see, if you look at the patch, the changes are reasonably minor.

-------------- next part --------------
--- srv_lsa.c.orig	Sun Oct 29 07:38:13 2000
+++ srv_lsa.c	Sun Nov  5 18:48:20 2000
@@ -88,7 +88,7 @@
 
 static void init_dom_query(DOM_QUERY *d_q, char *dom_name, DOM_SID *dom_sid)
 {
-	int domlen = (dom_name != NULL) ? strlen(dom_name) : 0;
+	int domlen = (dom_name != NULL) ? strlen(dom_name)+1 : 0;
 
 	d_q->uni_dom_max_len = domlen * 2;
 	d_q->uni_dom_str_len = domlen * 2;
@@ -183,7 +183,7 @@
 	ref->max_entries = MAX_REF_DOMAINS;
 	ref->num_ref_doms_2 = num+1;
 
-	len = (dom_name != NULL) ? strlen(dom_name) : 0;
+	len = (dom_name != NULL) ? strlen(dom_name)+1 : 0;
 	if(dom_name != NULL && len == 0)
 		len = 1;
 
-------------- next part --------------


Regards
-------
Richard Sharpe, sharpe at ns.aus.com
Samba (Team member, www.samba.org), Ethereal (Team member, www.zing.org)
Contributing author, SAMS Teach Yourself Samba in 24 Hours
Author, Special Edition, Using Samba



More information about the samba-ntdom mailing list