[Samba] [PATCH] Fix Samba 4.1.0 join Windows 2003 Server with BIND9_DLZ

Samuel Cabrero scabrero at zentyal.com
Mon Oct 14 01:35:53 MDT 2013


Hi Jacó,

we had the same problem and this patch worked for us:

https://attachments.samba.org/attachment.cgi?id=9210

Cheers.

On Sunday 13 October 2013 19:13:10 Jacó Ramos wrote:
> Hi Andrew...
> 
> Aplied patch but not work!
> 
> Same error!
> 
> Thanks!
> Jacó Ramos
> 
> 
> 2013/10/12 Andrew Bartlett <abartlet at samba.org>
> 
> > On Fri, 2013-10-11 at 12:06 -0300, Jacó Ramos wrote:
> > > Hi guys,
> > > 
> > > When run join in DC
> > > 
> > > root at samba4:~# samba-tool domain join jacoramos.net.br DC
> > 
> > -Uadministrador
> > 
> > > --realm=jacoramos.net.br --dns-backend=BIND9_DLZ
> > > Finding a writeable DC for domain 'jacoramos.net.br'
> > > Found DC win2003.jacoramos.net.br
> > > Password for [WORKGROUP\administrador]:
> > > workgroup is JACORAMOS
> > > realm is jacoramos.net.br
> > > checking sAMAccountName
> > > Adding CN=SAMBA4,OU=Domain Controllers,DC=jacoramos,DC=net,DC=br
> > > Adding
> > 
> > CN=SAMBA4,CN=Servers,CN=Primeiro-site-padrao,CN=Sites,CN=Configuration,DC=
> > jacoramos,DC=net,DC=br> 
> > > Adding CN=NTDS
> > 
> > Settings,CN=SAMBA4,CN=Servers,CN=Primeiro-site-padrao,CN=Sites,CN=Configur
> > ation,DC=jacoramos,DC=net,DC=br> 
> > > Adding SPNs to CN=SAMBA4,OU=Domain Controllers,DC=jacoramos,DC=net,DC=br
> > > Setting account password for SAMBA4$
> > > Enabling account
> > > Adding DNS account CN=dns-SAMBA4,CN=Users,DC=jacoramos,DC=net,DC=br with
> > > dns/ SPN
> > > Join failed - cleaning up
> > > checking sAMAccountName
> > > Deleted CN=SAMBA4,OU=Domain Controllers,DC=jacoramos,DC=net,DC=br
> > > Deleted CN=NTDS
> > 
> > Settings,CN=SAMBA4,CN=Servers,CN=Primeiro-site-padrao,CN=Sites,CN=Configur
> > ation,DC=jacoramos,DC=net,DC=br> 
> > > Deleted
> > 
> > CN=SAMBA4,CN=Servers,CN=Primeiro-site-padrao,CN=Sites,CN=Configuration,DC=
> > jacoramos,DC=net,DC=br> 
> > > ERROR(ldb): uncaught exception - LDAP error 53 LDAP_UNWILLING_TO_PERFORM
> > 
> > -
> > 
> > > <0000052D: SvcErr: DSID-031A0FC0, problem 5003 (WILL_NOT_PERFORM), data
> > > 0
> > > 
> > > > <>
> > > > 
> > >   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
> > > 
> > > 1169, in join_DC
> > > 
> > >     ctx.do_join()
> > >   
> > >   File "/usr/local/samba/lib/python2.7/site-packages/samba/join.py",
> > >   line
> > > 
> > > 1072, in do_join
> > > 
> > >     ctx.join_add_objects()
> > >   
> > >   File "/usr/local/samba/lib/python2.7/site-packages/samba/join.py",
> > >   line
> > > 
> > > 616, in join_add_objects
> > > 
> > >     ctx.samdb.add(msg)
> > > 
> > > root at samba4:~#
> > 
> > Sorry about that.   Try the attached patch.
> > 
> > Andrew Bartlett
> > 
> > --
> > Andrew Bartlett                                http://samba.org/~abartlet/
> > Authentication Developer, Samba Team           http://samba.org
-- 
Samuel Cabrero - Developer
scabrero at zentyal.com

Easy IT for small business
www.zentyal.com


More information about the samba-technical mailing list