[Samba] Change the IP/name of the domain member server

August 10th, 2011 - 02:40 pm ET by Piotr Legiecki | Report spam
Hi

I have two servers: old production and new to change the old one.

What is the right way to change to brand new server (with new Samba) in
a way transparent to end users?

Both (old and new one) servers are domain member servers. What I want to
achieve is to: leave the old servers name and IP but assign them to new
server.

I have done almost everything, so the new server has the data, the ACLs
are transfered and are ok, but when I shut down the old server, change
the hostname of the new one to old one, changed the SID of the new
server to the old server (using net getlocalsid/net setlocalsid xxx)
and... booom. When I try to access the shares on the new server (from
windows) it asks for user name/password just like the new server is not
a member of the domain.

So is it possible to achieve what I want?

I'm not sure if other way, by using net ads leave (on new server) and
then join with changed name (of the old server) would work. I'm afraid
of loosing the connection to domain controler and all windows
workstations would not be able to access the new server after joining.
what is wors, also the old one could (?) have problems then. Looks like
the trick with the changed SID is not working well.

I hope someone would help me with this. Playing with windows is
dangerous, some actions are not possible to undo.

Regards
P.
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
email Follow the discussionReplies 2 repliesReplies Make a reply

Replies

#1 Gaiseric Vandal
August 11th, 2011 - 10:30 am ET | Report spam
Maybe you should also copy the "private" directory from the old to the
new server. That may include the machine password used by the samba
server to connect to the domain.


Run "testparm -v" on both servers. Are both servers samba version of samba?

On 08/10/2011 02:37 PM, Piotr Legiecki wrote:
Hi

I have two servers: old production and new to change the old one.

What is the right way to change to brand new server (with new Samba)
in a way transparent to end users?

Both (old and new one) servers are domain member servers. What I want
to achieve is to: leave the old servers name and IP but assign them to
new server.

I have done almost everything, so the new server has the data, the
ACLs are transfered and are ok, but when I shut down the old server,
change the hostname of the new one to old one, changed the SID of the
new server to the old server (using net getlocalsid/net setlocalsid
xxx) and... booom. When I try to access the shares on the new server
(from windows) it asks for user name/password just like the new
server is not a member of the domain.

So is it possible to achieve what I want?

I'm not sure if other way, by using net ads leave (on new server) and
then join with changed name (of the old server) would work. I'm afraid
of loosing the connection to domain controler and all windows
workstations would not be able to access the new server after joining.
what is wors, also the old one could (?) have problems then. Looks
like the trick with the changed SID is not working well.

I hope someone would help me with this. Playing with windows is
dangerous, some actions are not possible to undo.

Regards
P.



To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

Similar topics