W2K Joining SMB Server

Manea Mirko mami at arena.sci.univr.it
Thu Dec 14 16:35:58 GMT 2000


now the patch :)


On Thu, Dec 14, 2000 at 05:32:44PM +0100, Manea Mirko wrote:
> On Thu, Dec 14, 2000 at 10:50:06AM -0500, William Jojo wrote:
> 
> > 
> > Okay...I've had similar problems and asked the same question several times as
> > well...
> > 
> > The ONLY way I've been able to make Win2k authenticate against a 2.0.7 or 2.2.0
> > domain controller is to *UPGRADE* NT 4.0 to 2000. 
> > 
> > Whenever we've tried to get a plain vanilla install to join we still get the
> > "command value out of range" or some such stupid error.
> > 
> > I've checked the documentation from Microshaft (the Win2k Pro Resource guide)
> > and it says "sure you can do legacy lanman authentication".
> > 
> > I'm currently looking through the CD to find the answer (as referred on page
> > 544). In the meantime, I can say without doubt that Win2K will work. It's just a
> > pain in the a** to get it working.
> > 
> > BTW: I did try the instruction from David Bannon on "The Samba 2.2 PDC Howto".
> > It's very well written and even easier to follow than the 2.0.x stuff.
> > 
> > Also I've found the letter from Manea Mirko who indicates success using the
> > "patch" from Richard Sharpe which I cannot find (dopey me probably filed it in
> > the wrong place).
> 
> 
> The patch is against a cvs snapshot (~ 5 nov), but was only a workaround.
> I attach it.
> 
> Now I am testing tng and it seems very good. W2K joins the domain without
> problems (after creating the machine account). I am also storing accounts
> in LDAP.
> 
> > 
> > Bill
> > 
> > Hazen Valliant-Saunders wrote:
> > > 
> > > Hello Mr. Sharpe:
> > >         Ok heres a little dillema i am having.  I have bulit and tried 2.2.0-cvs,
> > > 2.2.0-prealpha1, 2.0.7, HEAD 3.0, and TNG.  TNG won't work at all (IT's
> > > broken and not documented anywhere close to enough!) The 2.2.0 CVS PDC is
> > > working for my NT4 and W98 clients, it has an odd numbered domain and has
> > > been compiled using the SAMBA_2_2 tag for cvs.  Moreover mabye a lack of
> > > judgement on my part but it is in a "production " environment.  Now a lot of
> > > people say that they have thier samba working with domain logons from W2K ,
> > > if they could mail me ther smb.conf files (and domaingroup.map,
> > > domainuser.map and and localuser.map files for those TNG-ers) because there
> > > are no syntax examples anywhere!!!!! and me bieng silly likes to find syntax
> > > so that i know that isin't wrong.
> > > 
> > > So
> > > 1. My version of 2.2.0CVS won't work with W2k (I don't know why!)
> > >         it fits all of the specifed peramiters to work and does not.  (the error
> > > for a fourth time is "could not connect to domain "domain" because the
> > > procedure is out of range!"
> > > 
> > > 2. 3.0 won't support domain logons in w2k (Sama advertizes this everywhere.)
> > > 
> > > 3. tng doesen't have anywhere close to enough documentation (no mention of
> > > syntax for the *.map files anywhere and thier site is currently down.)
> > > 
> > > so I now have to invest in an NT box becuase samba can't do it.
> > > any help would be apprecieated.
> > > 
> > > Thank you for your time.
> > > Hazen Valliant-Saunders
> > > Potentia Telecom Power
> > > (613) 592-0027 x107
> > > (613) 592-1686 (facimile)
> > > "Peace can only come as a natural consequence of universal
> > > enlightenment...''
> > > --Nikola Tesla, "My Inventions: the autobiography of Nikola Tesla", Hart
> > > Bros., 1982--
> 

-- 
Best Regards,
      Mirko Manea <mami at mami.net>
      URL: http://www.mami.net
-------------- 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;
 


More information about the samba-ntdom mailing list