KCC: simplify get_dsa_for_implied_replica(), using IP invariant
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 25 Jun 2015 04:38:29 +0000 (16:38 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 29 Oct 2015 04:08:15 +0000 (05:08 +0100)
commiteec0d119ac755b72f8e881728608a849ad12b66b
treece0256dcfa346b38ba0ef2f296f9d6a97e91a4f0
parent5bbcbe380b8b5cb7a9f479e585f46040f2d99ad5
KCC: simplify get_dsa_for_implied_replica(), using IP invariant

We only do IP transports. Therfore the long list of alternatives...

                   (not n_rep.is_domain() or
                    n_rep.is_partial() or
                    cn_conn.transport_dnstr is None or
                    cn_conn.transport_dnstr.find("CN=IP") == 0)

that ends with the equivalant of "is this IP?" always evaluates to True.

If we leave it there it will confuse people for ever.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/kcc/__init__.py