self.do_asn1_print = global_asn1_print
self.do_hexdump = global_hexdump
- def check_pac(self, samdb, auth_data, uc, name, upn=None):
+ def check_pac(self, auth_data, uc, name, upn=None):
pac_data = self.get_pac_data(auth_data)
if upn is None:
# Check the contents of the pac, and the ticket
ticket = rep['ticket']
enc_part = self.decode_service_ticket(mc, ticket)
- self.check_pac(samdb, enc_part['authorization-data'], uc, user_name)
+ self.check_pac(enc_part['authorization-data'], uc, user_name)
# check the crealm and cname
cname = enc_part['cname']
self.assertEqual(NT_PRINCIPAL, cname['name-type'])
# Check the contents of the pac, and the ticket
ticket = rep['ticket']
enc_part = self.decode_service_ticket(mc, ticket)
- self.check_pac(samdb, enc_part['authorization-data'], mc, mach_name + '$')
+ self.check_pac(enc_part['authorization-data'], mc, mach_name + '$')
# check the crealm and cname
cname = enc_part['cname']
self.assertEqual(NT_PRINCIPAL, cname['name-type'])
# Check the contents of the service ticket
ticket = rep['ticket']
enc_part = self.decode_service_ticket(mc, ticket)
- self.check_pac(samdb, enc_part['authorization-data'], uc, upn_name)
+ self.check_pac(enc_part['authorization-data'], uc, upn_name)
# check the crealm and cname
cname = enc_part['cname']
self.assertEqual(NT_PRINCIPAL, cname['name-type'])
# Check the contents of the pac, and the ticket
ticket = rep['ticket']
enc_part = self.decode_service_ticket(mc, ticket)
- self.check_pac(samdb,
- enc_part['authorization-data'], uc, user_name)
+ self.check_pac(enc_part['authorization-data'], uc, user_name)
# check the crealm and cname
cname = enc_part['cname']
self.assertEqual(NT_PRINCIPAL, cname['name-type'])
# Check the contents of the pac, and the ticket
ticket = rep['ticket']
enc_part = self.decode_service_ticket(mc, ticket)
- self.check_pac(
- samdb, enc_part['authorization-data'], uc, upn, upn=upn)
+ self.check_pac(enc_part['authorization-data'], uc, upn, upn=upn)
# check the crealm and cname
cname = enc_part['cname']
crealm = enc_part['crealm']
# Check the contents of the pac, and the ticket
ticket = rep['ticket']
enc_part = self.decode_service_ticket(mc, ticket)
- self.check_pac(
- samdb, enc_part['authorization-data'], uc, ename, upn=ename)
+ self.check_pac(enc_part['authorization-data'], uc, ename, upn=ename)
# check the crealm and cname
cname = enc_part['cname']
crealm = enc_part['crealm']
# Check the contents of the pac, and the ticket
ticket = rep['ticket']
enc_part = self.decode_service_ticket(mc, ticket)
- self.check_pac(
- samdb, enc_part['authorization-data'], mc, ename, upn=uname)
+ self.check_pac(enc_part['authorization-data'], mc, ename, upn=uname)
# check the crealm and cname
cname = enc_part['cname']
crealm = enc_part['crealm']
# Check the contents of the pac, and the ticket
ticket = rep['ticket']
enc_part = self.decode_service_ticket(mc, ticket)
- self.check_pac(
- samdb, enc_part['authorization-data'], uc, uname, upn=uname)
+ self.check_pac(enc_part['authorization-data'], uc, uname, upn=uname)
# check the crealm and cname
cname = enc_part['cname']
self.assertEqual(NT_ENTERPRISE_PRINCIPAL, cname['name-type'])