Skip to content

Commit

Permalink
[6.14.z] Use sAMAccountName in AD LDAP, i.e. 'domain\username' (#12637)
Browse files Browse the repository at this point in the history
  • Loading branch information
Satellite-QE authored Sep 15, 2023
1 parent 66c797c commit ceb320e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/foreman/api/test_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def create_ldap(self, ad_data, target_sat, module_location, module_org):
ldap_user_passwd=ad_data['ldap_user_passwd'],
authsource=entities.AuthSourceLDAP(
onthefly_register=True,
account=ad_data['ldap_user_name'],
account=fr"{ad_data['workgroup']}\{ad_data['ldap_user_name']}",
account_password=ad_data['ldap_user_passwd'],
base_dn=ad_data['base_dn'],
groups_base=ad_data['group_base_dn'],
Expand Down
6 changes: 3 additions & 3 deletions tests/foreman/api/test_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ def create_ldap(self, ad_data, module_target_sat):
ldap_user_passwd=ad_data['ldap_user_passwd'],
authsource=module_target_sat.api.AuthSourceLDAP(
onthefly_register=True,
account=ad_data['ldap_user_name'],
account=fr"{ad_data['workgroup']}\{ad_data['ldap_user_name']}",
account_password=ad_data['ldap_user_passwd'],
base_dn=ad_data['base_dn'],
groups_base=ad_data['group_base_dn'],
Expand Down Expand Up @@ -741,7 +741,7 @@ def test_positive_access_entities_from_ldap_org_admin(self, create_ldap):
:steps:
1. Create Org Admin and assign taxonomies to it
1. Create Org Admin role and assign taxonomies to it
2. Create LDAP user with same taxonomies as role above
3. Assign Org Admin role to user above
4. Login with LDAP user and attempt to access resources
Expand Down Expand Up @@ -862,7 +862,7 @@ def test_positive_access_entities_from_ipa_org_admin(self, create_ldap):
:steps:
1. Create Org Admin and assign taxonomies to it
1. Create Org Admin role and assign taxonomies to it
2. Create FreeIPA user with same taxonomies as role above
3. Assign Org Admin role to user above
4. Login with FreeIPA user and attempt to access resources
Expand Down

0 comments on commit ceb320e

Please sign in to comment.