Skip Menu |

Subject: test programs should dynamically select an free port #
Today, running src/tests/gssapi/, I encountered a "port in
use" error when the krb5kdc was started as a result of this statement:

r2 = K5Realm(create_user=False, realm='KRBTEST2.COM', portbase=62000,
testdir=os.path.join(r1.testdir, 'r2'))

The problem is that on the test system UDP port 62000 was in use by
mountd. It would be better if ports for the KDC daemons were first
determined to be free. If that is too much hassle choosing a random
starting port # above 60000 would make test runs more reliable.