Koozali.org: home of the SME Server

Dns domain change

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Dns domain change
« Reply #15 on: October 08, 2015, 12:12:24 PM »
No host name and ipaddress on server manager web page for this client.

What is ur second question is not clear to me pls.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Dns domain change
« Reply #16 on: October 08, 2015, 12:16:55 PM »
windows' machine accounts (the entries that bind clients to windows' trusted domain) are stored into /etc/samba/smbpasswd, in the form of

Code: [Select]
machinename$:5061:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:0EBD3FEBDB972B9D9A164B72F321E341:[W          ]:LCT-52809C7D:

the first time you join a client to the domain such an entry is created

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Dns domain change
« Reply #17 on: October 08, 2015, 12:46:43 PM »
Yes there is an entry with the name of my problem client. Im gonna delete this entry and and rejoin to domain. Let u update.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Dns domain change
« Reply #18 on: October 08, 2015, 01:06:40 PM »
how are you gonna doing it?

tell us BEFORE you do it

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Dns domain change
« Reply #19 on: October 08, 2015, 01:10:01 PM »
Login to sme server and delete the above mentioned line from smbpasswd

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Dns domain change
« Reply #20 on: October 08, 2015, 01:10:35 PM »
I mean edit the file manually

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Dns domain change
« Reply #21 on: October 08, 2015, 01:16:58 PM »
no, this is not the way to act..

changing perspective, since you've to rejoin the client, you'r best bet is to rename the client itself and join it again..

anyway:
google is your friend "delete a machine account from smbpasswd"

something like
Code: [Select]
smbpasswd -xm machinename$

should do the trick, but I din't tested it

before doing anything: do you have a good and working backup of that server?


Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Dns domain change
« Reply #22 on: October 08, 2015, 01:20:22 PM »
I already tried with changing machine name and mac address. But no good thing happened

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Dns domain change
« Reply #23 on: October 08, 2015, 01:22:05 PM »
did you try BEFORE un-joining it from domain?
to do so, client must not be joined

moreover, don't poke with mac addresses

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Dns domain change
« Reply #24 on: October 08, 2015, 01:24:04 PM »
Login off from domain. But network cable connected to the server

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Dns domain change
« Reply #25 on: October 08, 2015, 01:25:01 PM »
Login off from domain. But network cable connected to the server

login here makes no sense.. do you mean client not joined?
connected cable is irrelevant

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Dns domain change
« Reply #26 on: October 08, 2015, 01:26:24 PM »
Yes of cause

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Dns domain change
« Reply #27 on: October 08, 2015, 01:27:45 PM »
May i try with a deleting the machine account using the command u sent abouve.
Thhen do i have to create a machine acount?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Dns domain change
« Reply #28 on: October 08, 2015, 01:40:57 PM »
Delete it and try to rejoin
Be sure SME is the dns server for the client

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Dns domain change
« Reply #29 on: October 08, 2015, 01:42:19 PM »
Thanks. Do i have to create manually by any command or it created automatically