[Samba] Trouble of setting samba with join AD

Rowland Penny rowlandpenny at googlemail.com
Mon Apr 6 03:22:38 MDT 2015


On 06/04/15 03:11, Adhi N. Wirawan wrote:
> Hi Rowland sorry for late reply
>
> I've tried as you suggested to download and install, using :
>
>       wget -cq https://www.samba.org/samba/ftp/samba-latest.tar.gz
>       tar zxf samba-latest.tar.gz
>       cd samba*
>       ./configure && make && make install
>
> But after i type
>
> 	#samba  -V
> And
> 	#smbclient -V
>
> It return an error that samba is not installed
>
> 	-bash: /usr/sbin/samba: No such file or directory
>
> Is there any step i did a mistake here ?

Ah, it is probably just that the 'samba' binary is not in your path, it 
should be in /usr/local/samba/sbin

Try running these two commands:

echo "PATH=/usr/local/samba/bin:/usr/local/samba/sbin:\$PATH" > 
/etc/profile.d/samba4.sh
export PATH=/usr/local/samba/bin:/usr/local/samba/sbin:$PATH

Rowland


>
>
>
>
>
>
>
>
>
>
>
>
> -----Original Message-----
> From: Rowland Penny [mailto:rowlandpenny at googlemail.com]
> Sent: 03 April 2015 23:33
> To: samba at lists.samba.org
> Subject: Re: [Samba] Trouble of setting samba with join AD
>
> On 03/04/15 16:15, Adhi Nugraha Wirawan wrote:
>> On Apr 2, 2015, at 16:17, Rowland Penny <rowlandpenny at googlemail.com>
> wrote:
>>> On 02/04/15 09:12, Adhi N. Wirawan wrote:
>>>> Hi there,
>>>>
>>>>    
>>>> I manage to setup samba with the Kerberos, if i check with
>>>>
>>>>    
>>>> #host -t SRV _ldap._tcp.test.sg
>>>>
>>>> _ldap._tcp.test.sg has SRV record 0 0 389 4ecapsvsg6.test.sg.
>>>>
>>>>    
>>>> #host -t SRV _kerberos._udp.test.sg
>>>>
>>>> _kerberos._udp.test.sg has SRV record 0 0 88 4ecapsvsg6.test.sg.
>>>>
>>>>    
>>>> #host -t A 4ECAPSVSG6.test.sg
>>>>
>>>> 4ECAPSVSG6.test.sg has address 10.153.64.5
>>>>
>>>>    
>>>> But unfortunately i just can't join to AD,  if i enter
>>>>
>>>>    
>>>> #smbclient -L 4ecapsvsg6 -U%
>>>>
>>>> Sharename       Type       Comment
>>>>
>>>>           ---------       ----       -------
>>>>
>>>>           IPC$            IPC        IPC Service
>>>>
>>>>    
>>>> #smbclient //4ecapsvsg6/netlogon -UAdministrator%"Pa$$worD" -c 'ls'
>>>>
>>>> Connection to \\4ecapsvsg6\netlogon failed - NT_STATUS_LOGON_FAILURE
>>>>
>>>>    
>>>> And if i try :
>>>>
>>>>    
>>>> #sudo net ads join
>>>>
>>>> Failed to join domain: failed to find DC for domain TEST
>>>>
>>>>    
>>>> #sudo net ads join -S 4ECAPSVSG6 -U administrator%"Pa$$worD"
>>>>
>>>> Failed to join domain: failed to lookup DC info for domain 'TEST.SG'
>>>> over
>>>> rpc: No such domain
>>>>
>>>>    
>>>> Is there any steps i'm missing here ?
>>>>
>>> Yes, you forgot to tell us just how you installed samba, what you
> installed it on and what you are trying to join to.
>>> Sorry but we are not mind readers!
>>>
>>> Rowland
>> Hi Rowland,
>>
>> hehe yes i do forgot to mention specific information, sorry about that
>> :)
>>
>> I try to install Samba4 inside uBuntu 12.04.05 by build from git,
>>
>> #git clone -b v4-stable git://git.samba.org/samba.git samba4 #cd
>> samba4 #./configure --enable-debug --enable-selftest #make #make
>> install
>>
>> The Samba version is 4.0.0alpha18
>>
>> i'm trying to join to AD in Windows XP / 7.
>>
>> any other specific information should i mention ?
>>
>>
>> ~ Adhi
> bit lost here, if I try:
>
> git clone -b v4-stable git://git.samba.org/samba.git samba4
>
> I get:
>
> Cloning into 'samba4'...
> fatal: Remote branch v4-stable not found in upstream origin
>
> Why are you trying to use git anyway ?
>
> Please use the latest stable version:
>
>       wget -cq https://www.samba.org/samba/ftp/samba-latest.tar.gz
>       tar zxf samba-latest.tar.gz
>       cd samba*
>       ./configure && make && make install
>
> This will get you 4.1.17, a lot better than 4.0.0alpha18
>
> Having said that, if were to use debian wheezy, you could install samba
> 4 from backports and get 4.1.17 without having to compile it.
>
> I also think that when you said 'But unfortunately i just can't join to AD'
> , you really meant that you couldn't connect.
>
> If you compile samba 4 yourself, you do not get the required winbind links
> created, see the samba wiki member server page for this.
>
> Rowland
>
>
>
>
>



More information about the samba mailing list