domain not available

Luke Kenneth Casson Leighton lkcl at switchboard.net
Tue Feb 17 21:37:42 GMT 1998


hi mr dcm,

ok, there is a trick to getting a gdb attach to a process :-)

you have to first get the workstation to make the connection.  pressing
ctrl-alt-delete and going down to the domain box is sufficient (at least,
on the first time you join the domain) to generate a
"LsaEnumTrustedDomains".  thereafter, the workstation maintains an open
connection, and therefore there will be an smbd process running (assuming
that you haven't set a really short smbd idle timeout)

so, in between pressing ctrl alt delete, and actually typing in your
password, you can gdb attach and continue.

lukes

p.s mr dcm, what compiler are you using; what compile options (-O or -g -g
or none); what o/s; which NT (NT standalone server / NT wksta); which
version; (3.51; 3.5; 4.0); which service pack?

p.p.s to get any useful info in gdb, use -g -g.  this *may* make the
problem you are having disappear, if you aren't already using -g -g.

On Wed, 18 Feb 1998 dcm at ni.nacs.net wrote:

> after joining domain.. get the welcome to domain msg as NTDOMAIN.txt states
> however after the obligatory reboot NT states that the Domain is 
> unavailable and goes back to login prompt..
> 
> +=======================================================+
> 
> get_rpc_pipe: name: NETLOGON cnum: 12 open: Yes OK
> Got API command 0x26 on pipe "NETLOGON" (pnum 801)(tdscnt=88,tpscnt=0,mdrcnt=102
> 4,mprcnt=0,cnum=12,vuid=100)
> 000000 smb_io_rpc_hdr 
>     000000 major     : 05
>     000001 minor     : 00
>     000002 pkt_type  : 00
>     000003 flags     : 03
>     000004 pack_type : 00000010
>     000008 frag_len  : 0058
>     00000a auth_len  : 0000
>     00000c call_id   : 00000001
> Doing \PIPE\NETLOGON
> 000010 smb_io_rpc_hdr_rr 
>     000010 alloc_hint: 00000040
>     000014 context_id: 00
>     000015 cancel_ct : 00
>     000016 opnum     : 04
>     000017 reserved  : 00
> api_rpc_command: api_netlog_rpc op 0x4 - api_rpc_command: NET_REQCHAL
> api_net_req_chal(270): vuid 100
> 000018 net_io_q_req_chal 
>     000018 undoc_buffer: 0014e6a8
>     00001c smb_io_unistr2 
>         00001c uni_max_len: 00000008
>         000020 undoc      : 00000000
>         000024 uni_str_len: 00000008
>         000028 buffer     : \.\.B.I.L.B.O...
>     000038 smb_io_unistr2 
>         000038 uni_max_len: 00000006
>         00003c undoc      : 00000000
>         000040 uni_str_len: 00000006
>         000044 buffer     : F.R.O.D.O...
>     000050 smb_io_chal 
>         000050 data: 72 74 f1 43 10 28 7f ab 
> unistrn2:   46   52   4f   44   4f 
> GetWd /usr/tmp, inode 282860, dev 809
> get_smbpwd_entry: opening file /opt/samba/etc/smbpasswd
> get_smbpwd_entry: search by name: FRODO$
> get_smbpwd_entry: skipping comment or blank line
> get_smbpwd_entry: skipping comment or blank line
> get_smbpwd_entry: skipping comment or blank line
> get_smbpwd_entry: found by name: FRODO$
> get_smbpwd_entry: returning passwd entry for user FRODO$, uid 65534, acb 80c8718
> chdir to /usr/tmp
> ===============================================================
> INTERNAL ERROR: Signal 11 in pid 25172 (ntdom-1.9.18alpha14)
> Please read the file BUGS.txt in the distribution
> ===============================================================
> chdir to /opt/src/samba/source
> unbecome_user now uid=(0,0) gid=(0,0)
> Closing connections
> Yielding connection to 12 IPC$
> Last message was SMBtrans
> size=164
> smb_com=0x25
> smb_rcls=0
> smb_reh=0
> smb_err=0
> smb_flg=24
> smb_flg2=3
> smb_tid=12
> smb_pid=51966
> smb_uid=100
> smb_mid=768
> smt_wct=16
> smb_vwv[0]=0 (0x0)
> smb_vwv[1]=88 (0x58)
> smb_vwv[2]=0 (0x0)
> smb_vwv[3]=1024 (0x400)
> smb_vwv[4]=0 (0x0)
> smb_vwv[5]=0 (0x0)
> smb_vwv[6]=0 (0x0)
> smb_vwv[7]=0 (0x0)
> smb_vwv[8]=0 (0x0)
> smb_vwv[9]=0 (0x0)
> smb_vwv[10]=76 (0x4C)
> smb_vwv[11]=88 (0x58)
> smb_vwv[12]=76 (0x4C)
> smb_vwv[13]=2 (0x2)
> smb_vwv[14]=38 (0x26)
> smb_vwv[15]=2049 (0x801)
> smb_bcc=97
> [000] 5C 50 49 50 45 5C 00 4C  4F 05 00 00 03 10 00 00  \PIPE\.L O.......
> [010] 00 58 00 00 00 01 00 00  00 40 00 00 00 00 00 04  .X...... . at ......
> [020] 00 A8 E6 14 00 08 00 00  00 00 00 00 00 08 00 00  ........ ........
> [030] 00 5C 00 5C 00 42 00 49  00 4C 00 42 00 4F 00 00  .\.\.B.I .L.B.O..
> [040] 00 06 00 00 00 00 00 00  00 06 00 00 00 46 00 52  ........ .....F.R
> [050] 00 4F 00 44 00 4F 00 00  00 72 74 F1 43 10 28 7F  .O.D.O.. .rt.C.(.
> [060] AB                                                . 
> ===============================================================
> Core limits now 1024000000 2147483647
> Dumping core in /opt/samba/log/corefiles
> got SIGCLD
> 
> 
> +================================================+
> 
> unfortunately there is 'NO' core dumped as it states.. and i tried
> the 'gdb' suggestion provided by Luke however, it happens too quickly 
> to attach to anything
> 
> 
> suggestions, hints?  
> 
> 
> thanks
> 
> 
> PS.
> 	keep up the great work!!  :)
> 	
> 

<a href="mailto:lkcl at samba.anu.edu.au" > Luke Kenneth Casson Leighton  </a>
<a href="http://mailhost.cb1.com/~lkcl"> Samba and Network Development </a>
<a href="http://www.samba.co.uk"       > Samba and Network Consultancy </a>



More information about the samba-ntdom mailing list