Skip to content

Commit

Permalink
Merge pull request #42 from Ouest-France/FixRegression
Browse files Browse the repository at this point in the history
Fix regression on datasource ldap_user where name was set as required
  • Loading branch information
pablo-ruth authored Mar 3, 2022
2 parents 61d79fd + dd38d09 commit 1f0a252
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions ldap/data_source_resource_ldap_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,27 @@ func dataSourceLDAPUser() *schema.Resource {
Required: true,
},
"name": {
Description: "The name of the LDAP user.",
Type: schema.TypeString,
Required: true,
Description: "The name of the LDAP user.",
Type: schema.TypeString,
Optional: true,
AtLeastOneOf: []string{"name", "sam_account_name", "user_principal_name"},
},
"sam_account_name": {
Description: "The sAMAccountName of the LDAP user.",
Type: schema.TypeString,
Optional: true,
Description: "The sAMAccountName of the LDAP user.",
Type: schema.TypeString,
Optional: true,
AtLeastOneOf: []string{"name", "sam_account_name", "user_principal_name"},
},
"user_principal_name": {
Description: "The userPrincipalName of the LDAP user",
Type: schema.TypeString,
Optional: true,
Description: "The userPrincipalName of the LDAP user",
Type: schema.TypeString,
Optional: true,
AtLeastOneOf: []string{"name", "sam_account_name", "user_principal_name"},
},
"description": {
Description: "Description attribute for the LDAP user.",
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
Expand Down

0 comments on commit 1f0a252

Please sign in to comment.