Lines Matching full:r1
30 r1 = K5Realm(create_user=False, krb5_conf=conf) variable
32 portbase=62000, testdir=os.path.join(r1.testdir, 'r2'))
34 host1 = 'p:' + r1.host_princ
58 r1.run(['./t_ccselect', host1, '-'], expected_code=1,
62 ccdir = os.path.join(r1.testdir, 'cc')
64 r1.env['KRB5CCNAME'] = ccname
68 r1.env['HOME'] = r1.testdir
69 r2.env['HOME'] = r1.testdir
71 # Create two users in r1 and one in r2.
75 r1.addprinc(alice, password('alice'))
76 r1.addprinc(bob, password('bob'))
81 r1.addprinc('host/localhost')
83 r1.addprinc('host/' + foo)
85 r1.addprinc('host/' + foobar)
86 r1.extract_keytab('host/localhost', r1.keytab)
88 r1.extract_keytab('host/' + foo, r1.keytab)
90 r1.extract_keytab('host/' + foobar, r1.keytab)
93 r1.kinit(alice, password('alice'))
97 output = r1.run(['./t_ccselect', host1, 'p:' + alice])
105 output = r1.run(['./t_ccselect', host1])
107 fail('alice not chosen as default initiator cred for server in r1')
108 output = r1.run(['./t_ccselect', host1, '-'])
110 fail('alice not chosen as default initiator name for server in r1')
113 fail('zaphod not chosen as default initiator cred for server in r1')
116 fail('zaphod not chosen as default initiator name for server in r1')
122 r1.run(['./t_ccselect', gssserver2], expected_code=1)
124 output = r1.run(['./t_ccselect', gssserver])
131 output = r1.run(['./t_ccselect', gsslocal])
139 r1.run(['./t_ccselect', gssserver_bar], expected_msg=alice)
141 r1.run(['./t_ccselect', gssserver_bar], expected_msg=alice)
143 # Get a second cred in r1 (bob will be primary).
144 r1.kinit(bob, password('bob'))
147 k5id = open(os.path.join(r1.testdir, '.k5identity'), 'w')
148 k5id.write('%s realm=%s\n' % (alice, r1.realm))
152 output = r1.run(['./t_ccselect', host1])
158 output = r1.run(['./t_ccselect', refserver])
161 r1.run(['./t_ccselect', 'h:bogus@' + foo2], expected_code=1,