Bug 10632 - Add option to classicupgrade to choose IP instead of auto-choice
Summary: Add option to classicupgrade to choose IP instead of auto-choice
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: unspecified
Hardware: x64 Linux
: P5 enhancement (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
Depends on:
Reported: 2014-05-26 23:11 UTC by Marc Muehlfeld
Modified: 2014-10-13 10:50 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Marc Muehlfeld 2014-05-26 23:11:39 UTC
When doing a classicupgrade on a machine with multiple IP addresses, then one is choosen automatically - what is not always the one that it should use!

# samba-tool domain classicupgrade --dbdir=/usr/local/samba.PDC/private/ --use-xattrs=yes --realm=samdom.example.com --dns-backend=BIND9_DLZ  /etc/samba/smb.PDC.conf
Looking up IPv4 addresses
More than one IPv4 address found. Using

There should be an option like '--host-ip=IPADDRESS'.

I haven't tested IPv6 addresses. But I guess it's the same (auto choice). In that case, there should be an additional option ('--host-ip6=IP6ADDRESS'), for that, too.

The workaround is to temporary shutdown the other interfaces, Samba should not use.
Comment 1 Björn Jacke 2014-05-27 07:11:08 UTC
"interfaces=<ipaddress>" and "bind interfaces only=yes" does not do what you want?
Comment 2 Marc Muehlfeld 2014-05-27 08:33:34 UTC
Thanks Björn.

# samba-tool domain classicupgrade ... --option="interfaces=lo eth0" --option="bind interfaces only=yes" ...

uses the IP from the given interface (of course not from localhost) and add the two parameters to the auto-created smb.conf.

I'm closing this enhancement request.