summaryrefslogtreecommitdiffstats
path: root/source4/scripting/libjs/samr.js
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-09-08 00:38:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:05:35 -0500
commite73df517c877add667cc36e889282d129eebe3b9 (patch)
tree66a29c5cf2579ef856051cc090d8ae933fe91c92 /source4/scripting/libjs/samr.js
parentee2ef3e5f06885a2dd1ea27318ff05d2aff401a8 (diff)
downloadsamba-e73df517c877add667cc36e889282d129eebe3b9.tar.gz
samba-e73df517c877add667cc36e889282d129eebe3b9.tar.xz
samba-e73df517c877add667cc36e889282d129eebe3b9.zip
0 files changed, 0 insertions, 0 deletions
span class="hl opt">, xtgts=((0,1),), args=({'kdc_conf': drealm}, {'realm': 'REFREALM', 'create_user': False}), create_host=False) realm.addprinc('krbtgt/REFREALM') refrealm.addprinc('a/x.d') savefile = os.path.join(realm.testdir, 'ccache.copy') os.rename(realm.ccache, savefile) # Get credentials and check that we got a referral to REFREALM. def testref(realm, nametype): shutil.copyfile(savefile, realm.ccache) realm.run(['./gcred', nametype, 'a/x.d']) realm.klist(realm.user_princ, 'a/x.d@REFREALM') # Get credentials and check that we get an error, not a referral. def testfail(realm, nametype): shutil.copyfile(savefile, realm.ccache) out = realm.run(['./gcred', nametype, 'a/x.d'], expected_code=1) if 'not found in Kerberos database' not in out: fail('unexpected error') # Create a modified KDC environment and restart the KDC. def restart_kdc(realm, kdc_conf): env = realm.special_env('extravars', True, kdc_conf=kdc_conf) realm.stop_kdc() realm.start_kdc(env=env) # With no KDC configuration besides [domain_realm], we should get a # referral for a NT-SRV-HST or NT-SRV-INST server name, but not an # NT-UNKNOWN or NT-PRINCIPAL server name. testref(realm, 'srv-hst') testref(realm, 'srv-inst') testfail(realm, 'principal') testfail(realm, 'unknown') # With host_based_services matching the first server name component # ("a"), we should get a referral for an NT-UNKNOWN server name. # host_based_services can appear in either [kdcdefaults] or the realm # section, with the realm values supplementing the kdcdefaults values. # NT-SRV-HST server names should be unaffected by host_based_services,