[Samba] Samba4 on Ubuntu 12.04 won't join existing domain

Rowland Penny rpenny at f2s.com
Thu Nov 22 05:57:45 MST 2012


On 21/11/12 22:26, pccom frank wrote:
> The howto says " you need to build Samba as usual, but don't do the 
> provision step. You should remove any existing smb.conf in 
> /usr/local/samba/etc"
>
>     So I did not do the "samba-tool domain provision..." Also I
>     deleted the smb.conf file in /usr/local/samba/etc
>
>     My existing domain is on a Windows 2008. I am trying to join it
>     from a Ubuntu Samba 4 as a secondary DC, not as a client.
>
>     Now there is no smb.conf file in /usr/local/samba/etc
>
>     Since the samba-tool domain join command failed, there should not
>     be a smb.conf file.
>
>     What I have seen is that the Ubuntu computer name now is showing
>     in the Windows 2008 computer list.
>
>     I restarted the Windows 2008 trying to join the domain, still it
>     failed.
>
>     Should i do a apt-get install samba4 instead git clone ?
>
>     Thanks a lot!
>
>
>
>
>
> > Date: Wed, 21 Nov 2012 18:31:59 +0000
> > From: rpenny at f2s.com
> > To: samba at lists.samba.org
> > Subject: Re: [Samba] Samba4 on Ubuntu 12.04 won't join existing domain
> >
> > On 21/11/12 17:52, pccom frank wrote:
> > > root at u1204:/etc# /usr/local/samba/bin/samba-tool domain join 
> delltest.pccom.ca DC -Uadministrator --realm=delltest.pccom.caFinding 
> a writeable DC for domain 'delltest.pccom.ca'Found DC 
> dell2008.delltest.pccom.caPassword for 
> [WORKGROUP\administrator]:Failed to bind - LDAP client internal error: 
> NT_STATUS_INVALID_PARAMETERFailed to connect to 
> 'ldap://dell2008.delltest.pccom.ca' with backend 'ldap': 
> (null)ERROR(ldb): uncaught exception - None File 
> "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", 
> line 175, in _run return self.run(*args, **kwargs) File 
> "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/domain.py", 
> line 552, in run machinepass=machinepass, use_ntvfs=use_ntvfs, 
> dns_backend=dns_backend) File 
> "/usr/local/samba/lib/python2.7/site-packages/samba/join.py", line 
> 1082, in join_DC machinepass, use_ntvfs, dns_backend, 
> promote_existing) File 
> "/usr/local/samba/lib/python2.7/site-packages/samba/join.py", line 78, 
> in __init__ cr
> > ed
> > > entials=ctx.creds, lp=ctx.lp) File 
> "/usr/local/samba/lib/python2.7/site-packages/samba/samdb.py", line 
> 56, in __init__ options=options) File 
> "/usr/local/samba/lib/python2.7/site-packages/samba/__init__.py", line 
> 114, in __init__ self.connect(url, flags, options) File 
> "/usr/local/samba/lib/python2.7/site-packages/samba/samdb.py", line 
> 71, in connect options=options)root at u1204:/etc# uname -aLinux u1204 
> 3.2.0-33-generic #52-Ubuntu SMP Thu Oct 18 16:29:15 UTC 2012 x86_64 
> x86_64 x86_64 GNU/Linux
> > > /usr/local/samba/sbin/samba --versionVersion 4.1.0pre1-GIT-d6983f4
> > > It has no problem to create a new domain and allow XP to join it.
> > > Your help will be appreciated.
> > >
> > >
> > Hi, have you provisioned the samba4 server? does
> > /usr/local/samba/etc/smb.conf exist?
> >
> > Rowland
> >
> >
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> >
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions: https://lists.samba.org/mailman/options/samba
>
> -- 
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean. 
Hi, this works for me adding a second DC to a Samba 4 domain.
Is the hostname of the  Windows 2008 DC 'dell2008.delltest.pccom.ca' If 
so, then there must be a connection/permissions problem and you need to 
sort this out before going further

Rowland


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the samba mailing list