[Samba] Cannot join Ubuntu12.04 Samba 4.1.17 to domain
L.P.H. van Belle
belle at bazuin.nl
Thu Jun 4 03:04:37 MDT 2015
i just did a join on debian jessie samba 4.1.17 on to a debian wheezy, sernet samba 4.2.2 AD-DC, without any problems.
and only using the command:
net ads join -U Administrator
as Rowland also did..
this must be dns/resolving problems.
do you use multple domains and subdomains.
if so, try the following.
in resolv.conf, add
search mynat.myco.bcu myco.bcu
and if needed more.
Greetz,
Louis
>-----Oorspronkelijk bericht-----
>Van: L.P.H. van Belle [mailto:belle at bazuin.nl]
>Verzonden: donderdag 4 juni 2015 11:01
>Aan: 'samba at lists.samba.org'
>Onderwerp: RE: [Samba] Cannot join Ubuntu12.04 Samba 4.1.17 to domain
>
>can your run the following :
>
>cat /etc/resolv.conf
>cat /etc/hosts
>
>SETDNSDOMAIN="hostname -d"
>SETHOSTNAME=`hostname -f`
>echo $SETDNSDOMAIN
>echo $SETHOSTNAME
>if [ -z "`host -t SRV _ldap._tcp.${SETDNSDOMAIN}. | grep 'not
>found'`" ]; then
> echo "testing of : host -t SRV _ldap._tcp.${SETDNSDOMAIN}. : ok"
>else
> echo "testing of : host -t SRV
>_ldap._tcp.${SETDNSDOMAIN}. : FAILED"
>fi
>if [ -z "`host -t SRV _kerberos._udp.${SETDNSDOMAIN}. | grep
>"not found" `" ]; then
> echo "testing of : host -t SRV
>_kerberos._udp.${SETDNSDOMAIN}. : ok";
>else
> echo "testing of : host -t SRV
>_kerberos._udp.${SETDNSDOMAIN}. : FAILED";
>fi
>if [ -z "`host -t A ${SETHOSTNAME}.${SETDNSDOMAIN}. | grep
>"not found" `" ]; then
> echo "testing of : host -t A
>${SETHOSTNAME}.${SETDNSDOMAIN}. : ok";
> TEST3=0;
>else
> echo "testing of : host -t A
>${SETHOSTNAME}.${SETDNSDOMAIN}. : FAILED";
>fi
>echo $SETDNSDOMAIN
>echo $SETHOSTNAME
>
>
>and again with
>SETDNSDOMAIN="myco.bcu"
>echo $SETDNSDOMAIN
>if [ -z "`host -t SRV _ldap._tcp.${SETDNSDOMAIN}. | grep 'not
>found'`" ]; then
> echo "testing of : host -t SRV _ldap._tcp.${SETDNSDOMAIN}. : ok"
>else
> echo "testing of : host -t SRV
>_ldap._tcp.${SETDNSDOMAIN}. : FAILED"
>fi
>if [ -z "`host -t SRV _kerberos._udp.${SETDNSDOMAIN}. | grep
>"not found" `" ]; then
> echo "testing of : host -t SRV
>_kerberos._udp.${SETDNSDOMAIN}. : ok";
>else
> echo "testing of : host -t SRV
>_kerberos._udp.${SETDNSDOMAIN}. : FAILED";
>fi
>if [ -z "`host -t A ${SETHOSTNAME}.${SETDNSDOMAIN}. | grep
>"not found" `" ]; then
> echo "testing of : host -t A
>${SETHOSTNAME}.${SETDNSDOMAIN}. : ok";
> TEST3=0;
>else
> echo "testing of : host -t A
>${SETHOSTNAME}.${SETDNSDOMAIN}. : FAILED";
>fi
>
>
>and post the result back.
>
>greetz,
>
>Louis
>
>>-----Oorspronkelijk bericht-----
>>Van: iwan.daniel at gmail.com
>>[mailto:samba-bounces at lists.samba.org] Namens ivenhov
>>Verzonden: donderdag 4 juni 2015 10:10
>>Aan: samba at lists.samba.org
>>Onderwerp: Re: [Samba] Cannot join Ubuntu12.04 Samba 4.1.17 to domain
>>
>>I'm trying
>>
>>sudo net ads join -S dc1001.mynat.myco.bcu -U testuser -d10
>>
>>and also
>>
>>sudo net ads join createcomputer="My/Ou/For/Servers" -S
>>dc1001.mynat.myco.bcu -U testuser -d10
>>
>>
>>It works for me every time in lab on real hw (same spec) and
>>on virtualbox.
>>It's just this particular site (with large AD infrastructure)
>>where it's
>>failing.
>>
>>I don't quite understand is why it complains about KDC why in
>>fact I can
>>ping it and get ticket via kinit.
>>What would be next step to diagnose it? I'm out of ideas at
>this point.
>>
>>
>>
>>--
>>View this message in context:
>>http://samba.2283325.n4.nabble.com/Cannot-join-Ubuntu12-04-Samb
>>a-4-1-17-to-domain-tp4684555p4686701.html
>>Sent from the Samba - General mailing list archive at Nabble.com.
>>--
>>To unsubscribe from this list go to the following URL and read the
>>instructions: https://lists.samba.org/mailman/options/samba
>>
>>
>
More information about the samba
mailing list