-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from cgroschupp/add-group-type
Add group type
- Loading branch information
Showing
12 changed files
with
234 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,18 @@ | ||
HOSTNAME=github.com | ||
NAMESPACE=Ouest-France | ||
NAME=ldap | ||
BINARY=terraform-provider-${NAME} | ||
VERSION=0.8.0 | ||
OS_ARCH=linux_amd64 | ||
|
||
default: install | ||
|
||
build: | ||
go build -o terraform-provider-ldap_v0.0.1 | ||
go build -o ${BINARY} | ||
|
||
install: build | ||
mkdir -p ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH} | ||
mv ${BINARY} ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH} | ||
|
||
generate-docs: | ||
tfplugindocs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,37 @@ | ||
# ldap_group Data Source | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "ldap_group Data Source - terraform-provider-ldap" | ||
subcategory: "" | ||
description: |- | ||
ldap_group is a data source for managing an LDAP group. | ||
--- | ||
|
||
# ldap_group (Data Source) | ||
|
||
`ldap_group` is a data source for managing an LDAP group. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
```terraform | ||
data "ldap_group" "group" { | ||
ou = "OU=MyOU,DC=domain,DC=tld" | ||
name = "MyGroup" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- **name** (String) LDAP group name. | ||
- **ou** (String) OU where LDAP group will be search. | ||
|
||
### Read-Only | ||
|
||
* `ou` - (Required) OU where LDAP group will be created. | ||
* `name` - (Required) LDAP group name. | ||
- **description** (String) Description attribute for the LDAP | ||
- **group_type** (String) Type of the group | ||
- **id** (String) The DN of the LDAP group. | ||
- **members** (Set of String) LDAP group members. | ||
|
||
## Attribute Reference | ||
|
||
* `id` - LDAP group DN. | ||
* `members` - LDAP group members. | ||
* `description` - Description attribute for the LDAP group. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,40 @@ | ||
# ldap_user Data Source | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "ldap_user Data Source - terraform-provider-ldap" | ||
subcategory: "" | ||
description: |- | ||
ldap_user is a data source for retrieving an LDAP user. | ||
--- | ||
|
||
# ldap_user (Data Source) | ||
|
||
`ldap_user` is a data source for retrieving an LDAP user. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
```terraform | ||
data "ldap_user" "user" { | ||
ou = "OU=MyOU,DC=domain,DC=tld" | ||
name = "MyUser" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- **ou** (String) OU where LDAP user will be search. | ||
|
||
### Optional | ||
|
||
- **description** (String) Description attribute for the LDAP user. | ||
- **name** (String) The name of the LDAP user. | ||
- **sam_account_name** (String) The sAMAccountName of the LDAP user. | ||
- **user_principal_name** (String) The userPrincipalName of the LDAP user | ||
|
||
### Read-Only | ||
|
||
* `ou` - (Required) OU where LDAP user will be search. | ||
* `name` - (Optional) The name of the LDAP user. | ||
* `sam_account_name` - (Optional) The sAMAccountName of the LDAP user. | ||
* `user_principal_name` - (Optional) The userPrincipalName of the LDAP user. | ||
- **id** (String) The DN of the LDAP user. | ||
|
||
## Attribute Reference | ||
|
||
* `id` - LDAP user DN. | ||
* `description` - Description attribute for the LDAP user. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.