rpcclient/samlogon in Samba 3.0alpha9

Vijay Kota vijay at spinnakernet.com
Wed Sep 18 15:45:01 GMT 2002


Pushing a 0x006B006B just before the Neg_flags in the Netlogon
Authenticate2 request fixed this for me.
 
Here are the diffs (w.r.t 3.0 alpha19 *not* 9) in case anyone is
interested:
 
diff include/rpc_netlogon.h include/rpc_netlogon.my
359a360
>     uint32 magic;     
 
diff rpc_parse/parse_net.c rpc_parse/parse_net.my
678a679
>     q_a->magic = 0x006b006b;
710c711,712
<     ps->align = old_align;
---
>     if(!prs_uint32("auth2_magic", ps, depth, &q_a->magic))
>           return False;
 
Vijay
 
 
-----Original Message-----
From: samba-technical-admin at lists.samba.org
[mailto:samba-technical-admin at lists.samba.org] On Behalf Of Vijay Kota
Sent: Monday, September 16, 2002 10:58 AM
To: samba-technical at lists.samba.org
Subject: RE: rpcclient/samlogon in Samba 3.0alpha9
 
I tried this with samba 3.0 alpha 19 as well - with the same results.
Wouldn't this cause a problem in a network where there are Win2K clients
as well as NT4 clients? Everybody would be forced to use NTLM then.
 
-----Original Message-----
From: samba-technical-admin at lists.samba.org
[mailto:samba-technical-admin at lists.samba.org] On Behalf Of Vijay Kota
Sent: Friday, September 13, 2002 1:19 PM
To: samba-technical at lists.samba.org
Subject: rpcclient/samlogon in Samba 3.0alpha9
 
Hi,
 
I am seeing a strange problem with samba 3.0 alpha9. I joined my Linux
box to a Win2K realm. After this, I used rpcclient to do a samlogon. The
samlogon was successful but after this, the "servicePrincipalName"
attribute for the samba-server in the Active Directory was gone. Here's
what I tried:
 
       net ads join -U administrator
       ldapsearch -Y gssapi -X u:administrator samaccountname=SAMBA3$
serviceprincipalname
       ---- output was HOST/samba3
       rpcclient testpdc -U administrator (and then "samlogon foo bar"
at the rpcclient prompt)
       ldapsearch -Y gssapi -X u:administrator samaccountname=SAMBA3$
serviceprincipalname
       ---- no output
 
Any ideas as to why this doesn't work?
 
Regards,
Vijay
 
==============   My smb.conf  file ==============
 
[globals]
  netbios name = SAMBA3
  server string = Running samba 3.0-alpha9
  workgroup = TESTDOM
  security = domain
  realm = REALM.COM
  ads server = testpdc
  interfaces = 10.1.1.135 127.0.0.1
  debuglevel = 10
  encrypt passwords = yes
  password server = testpdc
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the samba-technical mailing list