@@ -29,7 +29,7 @@ protected function setUp(): void
2929 'auth.defaults.guard ' => 'ldap ' ,
3030 'services.ldap.base_dn ' => 'dc=ldap,dc=local ' ,
3131 'services.ldap.email_attribute ' => 'mail ' ,
32- 'services.ldap.display_name_attribute ' => 'cn ' ,
32+ 'services.ldap.display_name_attribute ' => [ 'cn ' ] ,
3333 'services.ldap.id_attribute ' => 'uid ' ,
3434 'services.ldap.user_to_groups ' => false ,
3535 'services.ldap.version ' => '3 ' ,
@@ -581,7 +581,7 @@ public function test_login_group_mapping_does_not_conflict_with_default_role()
581581 public function test_login_uses_specified_display_name_attribute ()
582582 {
583583 app ('config ' )->set ([
584- 'services.ldap.display_name_attribute ' => 'displayName ' ,
584+ 'services.ldap.display_name_attribute ' => [ 'displayName ' ] ,
585585 ]);
586586
587587 $ this ->commonLdapMocks (1 , 1 , 2 , 4 , 2 );
@@ -606,7 +606,7 @@ public function test_login_uses_specified_display_name_attribute()
606606 public function test_login_uses_default_display_name_attribute_if_specified_not_present ()
607607 {
608608 app ('config ' )->set ([
609- 'services.ldap.display_name_attribute ' => 'displayName ' ,
609+ 'services.ldap.display_name_attribute ' => [ 'displayName ' ] ,
610610 ]);
611611
612612 $ this ->commonLdapMocks (1 , 1 , 2 , 4 , 2 );
0 commit comments