Samba 3.0 Alpha

Andrew Bartlett abartlet at pcug.org.au
Tue Dec 4 13:39:03 GMT 2001


Bugger!

Could you apply (reversed) this patch and confirm if it is still broken?

http://www.samba.org/cgi-bin/cvsweb/samba/source/utils/net_rpc_join.c?r1=1.1&r2=1.2

It worked before tridge 'fixed' it to actually use a random password...

Andrew Bartlett

Hans Rasmussen wrote:
> 
> Hmm, couldn't get it to work.  The computer does show up in Server Mangler,
> but in lower case letters.  Here's the logging = 4 code
> 
> [root at sbs bin]# ./net rpc join
> [2001/12/04 13:12:32, 3] lib/debug.c:debug_message(275)
>   INFO: Debug class all level = 4   (pid 23502 from pid 23502)
>   doing parameter dns proxy = yes
>   doing parameter winbind separator = +
>   doing parameter winbind cache time = 10
>   doing parameter template shell = /bin/bash
>   doing parameter template homedir = /home/%U
>   doing parameter winbind uid = 10000-20000
>   doing parameter winbind gid = 10000-20000
>   doing parameter winbind enum users = yes
>   doing parameter winbind enum groups = yes
> [2001/12/04 13:12:32, 4] param/loadparm.c:lp_load(3319)
>   pm_process() returned Yes
> [2001/12/04 13:12:32, 2] lib/interface.c:add_interface(80)
>   added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0
> [2001/12/04 13:12:32, 3] libsmb/namequery.c:resolve_lmhosts(752)
>   resolve_lmhosts: Attempting lmhosts lookup for name SBSFOR<0x1b>
> [2001/12/04 13:12:32, 4] libsmb/namequery.c:startlmhosts(456)
>   startlmhosts: Can't open lmhosts file /usr/local/samba/lib/lmhosts. Error
> was No such file or directory
> [2001/12/04 13:12:32, 3] libsmb/namequery.c:resolve_wins(694)
>   resolve_wins: Attempting wins lookup for name SBSFOR<0x1b>
> [2001/12/04 13:12:32, 3] libsmb/namequery.c:resolve_wins(712)
>   resolve_wins: WINS server == <127.0.0.1>
> [2001/12/04 13:12:32, 3] lib/util_sock.c:open_socket_in(836)
>   bind succeeded on port 0
> [2001/12/04 13:12:39, 1] lib/wins_srv.c:wins_srv_died(302)
>   wins_srv_died(): Could not mark WINS server 127.0.0.1 down.
>   Address not found in server list.
> [2001/12/04 13:12:39, 3] libsmb/namequery.c:name_resolve_bcast(644)
>   name_resolve_bcast: Attempting broadcast lookup for name SBSFOR<0x1b>
> [2001/12/04 13:12:39, 3] lib/util_sock.c:open_socket_in(836)
>   bind succeeded on port 0
> [2001/12/04 13:12:39, 4] libsmb/nmblib.c:debug_nmb_packet(107)
>   nmb packet from 192.168.0.10(137) header: id=12727 opcode=Query(0)
> response=Yes
>       header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=Yes
>       header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
>       answers: nmb_name=SBSFOR<1b> rr_type=32 rr_class=1 ttl=300000
>       answers   0 char `.....   hex 6000C0A8000A
> [2001/12/04 13:12:39, 2] libsmb/namequery.c:name_query(417)
>   Got a positive name query response from 192.168.0.10 ( 192.168.0.10 )
> [2001/12/04 13:12:39, 3] lib/util_sock.c:open_socket_in(836)
>   bind succeeded on port 0
> [2001/12/04 13:12:39, 4] libsmb/nmblib.c:debug_nmb_packet(107)
>   nmb packet from 192.168.0.10(137) header: id=1910 opcode=Query(0)
> response=Yes      header: flags: bcast=No rec_avail=No rec_des=No trunc=No
> auth=Yes
>       header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
>       answers: nmb_name=SBSFOR<1c> rr_type=33 rr_class=1 ttl=0
>       answers   0 char .BIGBIRD           hex
> 0A424947424952442020202020202020
>       answers  10 char .D.SBSFOR          hex
> 004400534253464F5220202020202020
>       answers  20 char   ...BIGBIRD       hex
> 202000C4004249474249524420202020
>       answers  30 char      D.SBSFOR      hex
> 20202020204400534253464F52202020
>       answers  40 char       ...SBSFOR    hex
> 2020202020201CC400534253464F5220
>       answers  50 char         .D.BIGBI   hex
> 20202020202020201B44004249474249
>       answers  60 char RD        jD.BIG   hex
> 524420202020202020206A4400424947
>       answers  70 char BIRD        .D.S   hex
> 42495244202020202020202087440053
>       answers  80 char BSFOR         ..   hex
> 4253464F522020202020202020201EC4
>       answers  90 char .SBSFOR            hex
> 00534253464F52202020202020202020
>       answers  a0 char .D...__MSBROWSE_   hex
> 1D440001025F5F4D5342524F5753455F
>       answers  b0 char _.....P..l+.....   hex
> 5F0201C4000050BAB36C2B0000000000
>       answers  c0 char ................   hex
> 00000000000000000000000000000000
>       answers  d0 char ................   hex
> 00000000000000000000000000000000
>       answers  e0 char ...   hex 000000
> Password:
> [2001/12/04 13:12:45, 3] libsmb/cliconnect.c:cli_full_connection(1210)
>   Connecting to host=BIGBIRD share=IPC$
> 
> [2001/12/04 13:12:45, 3] lib/util_sock.c:open_socket_out(868)
>   Connecting to 192.168.0.10 at port 445
> [2001/12/04 13:12:46, 2] lib/util_sock.c:open_socket_out(896)
>   error connecting to 192.168.0.10:445 (Connection refused)
> [2001/12/04 13:12:46, 3] lib/util_sock.c:open_socket_out(868)
>   Connecting to 192.168.0.10 at port 139
> [2001/12/04 13:12:46, 4] lib/time.c:get_serverzone(122)
>   Serverzone is 28800
> [2001/12/04 13:12:46, 0] utils/net_rpc_join.c:net_rpc_join(227)
>   error setting trust account password: NT_STATUS_PASSWORD_RESTRICTION
> Unable to join domain SBSFOR.
> [2001/12/04 13:12:46, 2] utils/net.c:main(374)
>   return code = 1
> [root at sbs bin]#
> t(868)
>   Connecting to 192.168.0.10 at port 445
> [2001/12/04 13:12:46, 2] lib/util_sock.c:open_socket_out(896)
>   error connecting to 192.168.0.10:445 (Connection refused)
> [2001/12/04 13:12:46, 3] lib/util_sock.c:open_socket_out(868)
>   Connecting to 192.168.0.10 at port 139
> [2001/12/04 13:12:46, 4] lib/time.c:get_serverzone(122)
>   Serverzone is 28800
> [2001/12/04 13:12:46, 0] utils/net_rpc_join.c:net_rpc_join(227)
>   error setting trust account password: NT_STATUS_PASSWORD_RESTRICTION
> Unable to join domain SBSFOR.
> [2001/12/04 13:12:46, 2] utils/net.c:main(374)
>   return code = 1
> [root at sbs bin]#
> 
> As far as I read this, my NT box is refusing any connection to port 445.
> 
> Any help is great.
> 
> Thanks
> 
> Hans
> ----- Original Message -----
> From: "Andrew Bartlett" <abartlet at pcug.org.au>
> To: "Hans Rasmussen" <hans at sbsfor.com>
> Cc: <samba at lists.samba.org>
> Sent: December 4, 2001 1:08 PM
> Subject: Re: Samba 3.0 Alpha
> 
> Hans Rasmussen wrote:
> >
> > Does net rpc join work in SAMBA (using HEAD from CVS compiled this
> morning)
> > Configured with ACL, with PAM, and with WINBIND.
> >
> > It seems that I cannot rejoin my domain (PDC is NT4sp6a) after I turfed
> > machine.sid and secrets.tdb.  I tried using smbpasswd first and was
> informed
> > to use net join rpc instead.
> >
> > Logs available if needed.
> 
> Sombody is quick off the mark!
> 
> I only added that yesterday :-)
> 
> You will need to remove the computer from the domain (using server
> manager or equiv) before you can re-join.  The code is meant to be able
> to just reset the password, but I havn't got that working again.
> 
> I'm due to add 'net rpc leave' today, as well as finishing the cull of
> the -j option to smbpasswd.
> 
> Andrew Bartlett
> 
> --
> Andrew Bartlett                                 abartlet at pcug.org.au
> Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
> Student Network Administrator, Hawker College   abartlet at hawkerc.net
> http://samba.org     http://build.samba.org     http://hawkerc.net
> 
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba

-- 
Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net




More information about the samba mailing list