opts={'name_suffix': 'foo@bar'})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_at_managed_service(self):
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'name_suffix': 'foo@bar'})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_at_case_user(self):
client_creds = self._get_creds(
account_type=self.AccountType.USER,
opts={'name_suffix': 'Foo@bar'})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_at_case_managed_service(self):
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'name_suffix': 'Foo@bar'})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_double_at_user(self):
client_creds = self._get_creds(
account_type=self.AccountType.USER,
opts={'name_suffix': 'foo@@bar'})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_double_at_managed_service(self):
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'name_suffix': 'foo@@bar'})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_at_start_user(self):
client_creds = self._get_creds(
account_type=self.AccountType.USER,
opts={'name_prefix': '@foo'})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_at_start_managed_service(self):
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'name_prefix': '@foo'})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_at_end_user(self):
client_creds = self._get_creds(
account_type=self.AccountType.USER,
opts={'name_suffix': 'foo@'})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_at_end_managed_service(self):
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'name_suffix': 'foo@',
+ 'add_dollar': True})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_at_end_no_dollar_mac(self):
client_creds = self._get_creds(
account_type=self.AccountType.COMPUTER,
'add_dollar': False})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_at_end_add_dollar_managed_service(self):
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'name_suffix': 'foo@',
+ 'add_dollar': True})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_no_dollar_mac(self):
client_creds = self._get_creds(
account_type=self.AccountType.COMPUTER,
opts={'add_dollar': False})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_add_dollar_managed_service(self):
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'add_dollar': True})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_dollar_mid_mac(self):
client_creds = self._get_creds(
account_type=self.AccountType.COMPUTER,
'add_dollar': False})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_dollar_mid_managed_service(self):
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'name_suffix': 'foo$bar',
+ 'add_dollar': True})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_dollar_user(self):
client_creds = self._get_creds(
account_type=self.AccountType.USER,
opts={'name_suffix': 'foo$bar'})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_dollar_managed_service(self):
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'name_suffix': 'foo$bar'})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_dollar_end_user(self):
client_creds = self._get_creds(
account_type=self.AccountType.USER,
opts={'name_suffix': 'foo$'})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_dollar_end_managed_service(self):
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'name_suffix': 'foo$'})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_upn_user(self):
client_creds = self._get_creds(
account_type=self.AccountType.USER,
opts={'upn': 'foo1'})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_upn_managed_service(self):
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'upn': 'foo24'})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_upn_host_user(self):
client_creds = self._get_creds(
account_type=self.AccountType.USER,
opts={'upn': 'host/foo3'})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_upn_host_managed_service(self):
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'upn': 'host/foo25'})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_upn_realm_user(self):
realm = self.get_samdb().domain_dns_name()
client_creds = self._get_creds(
opts={'upn': 'foo5@' + realm})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_upn_realm_managed_service(self):
+ realm = self.get_samdb().domain_dns_name()
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'upn': 'foo26@' + realm})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_upn_host_realm_user(self):
realm = self.get_samdb().domain_dns_name()
client_creds = self._get_creds(
opts={'upn': 'host/foo7@' + realm})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_upn_host_realm_managed_service(self):
+ realm = self.get_samdb().domain_dns_name()
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'upn': 'host/foo27@' + realm})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_upn_dollar_realm_user(self):
realm = self.get_samdb().domain_dns_name()
client_creds = self._get_creds(
opts={'upn': 'foo9$@' + realm})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_upn_dollar_realm_managed_service(self):
+ realm = self.get_samdb().domain_dns_name()
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'upn': 'foo28$@' + realm})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_upn_host_dollar_realm_user(self):
realm = self.get_samdb().domain_dns_name()
client_creds = self._get_creds(
opts={'upn': 'host/foo11$@' + realm})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_upn_host_dollar_realm_managed_service(self):
+ realm = self.get_samdb().domain_dns_name()
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'upn': 'host/foo29$@' + realm})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_upn_other_realm_user(self):
client_creds = self._get_creds(
account_type=self.AccountType.USER,
opts={'upn': 'foo13@other.realm'})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_upn_other_realm_managed_service(self):
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'upn': 'foo30@other.realm'})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_upn_host_other_realm_user(self):
client_creds = self._get_creds(
account_type=self.AccountType.USER,
opts={'upn': 'host/foo15@other.realm'})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_upn_host_other_realm_managed_service(self):
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'upn': 'host/foo31@other.realm'})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_upn_case_user(self):
client_creds = self._get_creds(
account_type=self.AccountType.USER,
opts={'upn': 'Foo17'})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_upn_case_managed_service(self):
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'upn': 'Foo32'})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_upn_dollar_mid_realm_user(self):
realm = self.get_samdb().domain_dns_name()
client_creds = self._get_creds(
opts={'upn': 'foo$19@' + realm})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_upn_dollar_mid_realm_managed_service(self):
+ realm = self.get_samdb().domain_dns_name()
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'upn': 'foo$33@' + realm})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_upn_host_dollar_mid_realm_user(self):
realm = self.get_samdb().domain_dns_name()
client_creds = self._get_creds(
opts={'upn': 'host/foo$21@' + realm})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_upn_host_dollar_mid_realm_managed_service(self):
+ realm = self.get_samdb().domain_dns_name()
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'upn': 'host/foo$34@' + realm})
+ self._run_as_req_enc_timestamp(client_creds)
+
def test_salt_upn_at_realm_user(self):
realm = self.get_samdb().domain_dns_name()
client_creds = self._get_creds(
opts={'upn': 'foo23@bar@' + realm})
self._run_as_req_enc_timestamp(client_creds)
+ def test_salt_upn_at_realm_managed_service(self):
+ realm = self.get_samdb().domain_dns_name()
+ client_creds = self._get_creds(
+ account_type=self.AccountType.MANAGED_SERVICE,
+ opts={'upn': 'foo35@bar@' + realm})
+ self._run_as_req_enc_timestamp(client_creds)
+
if __name__ == "__main__":
global_asn1_print = False