Bug 4217 - net rpc join with different CIDR (/8 and /9) refuse connection
Summary: net rpc join with different CIDR (/8 and /9) refuse connection
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: net utility (show other bugs)
Version: 3.0.20
Hardware: x86 Linux
: P3 normal
Target Milestone: none
Assignee: Jim McDonough
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-09 09:21 UTC by laurent Bardi
Modified: 2021-05-10 23:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description laurent Bardi 2006-11-09 09:21:16 UTC
hi,

1)a NT4 PDC  10.0.1.8/8 (londres)
2)a NT4 BDC  10.0.1.6/8 (paris)
3)a client smb 3.0.20 mandrake 2006 rpm, ifconfig ->  inet addr:10.1.29.32  Bcast:10.127.255.255  Mask:255.128.0.0 (issus)

try :
net rpc join -s /etc/samba/smb1/smb.conf.smb1 -UAdministrateur -S paris -d 1 -n ISSUS
[2006/11/09 17:27:36, 1] utils/net_rpc.c:run_rpc_command(140)
  rpc command function failed! (NT_STATUS_NO_TRUST_SAM_ACCOUNT)
Password:
Creation of workstation account failed
Unable to join domain IPBS.

idem with -S londres.

Change the netmask of issus -> Bcast:10.255.255.255  Mask:255.0.0.0 
then it works perfectly!

ROOT>> net rpc join -s /etc/samba/smb1/smb.conf.smb1 -UAdministrateur -S londres -d 1 -n ISSUS
[2006/11/09 17:27:49, 1] utils/net_rpc.c:run_rpc_command(140)
  rpc command function failed! (NT_STATUS_NO_TRUST_SAM_ACCOUNT)
Password:
Joined domain IPBS.

By the way the nmblookup command with a different CIDR between machine failed with node not with IP:

nmblookup -s /etc/samba/smb1/smb.conf.smb1 -W IPBS -n issus paris
querying paris on 10.127.255.255
name_query failed to find name paris

nmblookup -s /etc/samba/smb1/smb.conf.smb1 -W IPBS -n issus -A 10.0.1.6
Looking up status of 10.0.1.6
        PARIS           <00> -         M <ACTIVE>
        IPBS            <00> - <GROUP> M <ACTIVE>
        IPBS            <1c> - <GROUP> M <ACTIVE>
        PARIS           <20> -         M <ACTIVE>
        WINDOWS         <20> -         M <ACTIVE>
        IPBS            <1e> - <GROUP> M <ACTIVE>
        PARIS           <03> -         M <ACTIVE>
        PARIS           <01> -         M <ACTIVE>

        MAC Address = 00-60-08-97-B4-54

I can do more test if necessary.
Comment 1 laurent Bardi 2006-11-09 09:22:46 UTC
seems to be already view as : 
http://www.mail-archive.com/samba@lists.samba.org/msg79003.html
Comment 2 Björn Jacke 2021-05-10 23:10:50 UTC
in AD environmants with DNS or with a wins server in NT4 domains unicast is sufficient