-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 additions
and
32 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
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 |
---|---|---|
|
@@ -8,8 +8,8 @@ The Ballerina LDAP module provides the capability to efficiently connect, authen | |
|
||
- **add**: Creates an entry in a directory server. | ||
- **modify**: Updates information of an entry in a directory server. | ||
- **getEntry**: Gets information of an entry in a directory server. | ||
- **delete**: Removes an entry in a directory server. | ||
- **getEntry**: Gets information about an entry in a directory server. | ||
- **delete**: Removes an entry from a directory server. | ||
|
||
#### `add` API | ||
|
||
|
@@ -20,13 +20,13 @@ import ballerina/ldap; | |
public function main() returns error? { | ||
anydata user = { | ||
objectClass: ["user", "organizationalPerson", "person", "top"], | ||
sn: "New User", | ||
cn: "New User", | ||
givenName: "New User", | ||
displayName: "New User", | ||
userPrincipalName: "[email protected]", | ||
userAccountControl: "544" | ||
"objectClass": "user", | ||
"sn": "New User", | ||
"cn": "New User", | ||
"givenName": "New User", | ||
"displayName": "New User", | ||
"userPrincipalName": "[email protected]", | ||
"userAccountControl": "544" | ||
}; | ||
ldap:LDAPResponse val = check ldapClient->add(userDN, user); | ||
} | ||
|
@@ -41,17 +41,17 @@ import ballerina/ldap; | |
public function main() returns error? { | ||
anydata user = { | ||
sn: "User", | ||
givenName: "Updated User", | ||
displayName: "Updated User" | ||
"sn": "User", | ||
"givenName": "Updated User", | ||
"displayName": "Updated User" | ||
}; | ||
_ = check ldapClient->modify(userDN, user); | ||
} | ||
``` | ||
|
||
#### `getEntry` API | ||
|
||
Gets information of an entry | ||
Gets information about an entry in a directory server. | ||
|
||
```ballerina | ||
import ballerina/ldap; | ||
|
@@ -63,7 +63,7 @@ public function main() returns error? { | |
|
||
#### `delete` API | ||
|
||
Removes an entry in a directory server. | ||
Removes an entry from a directory server. | ||
|
||
```ballerina | ||
import ballerina/ldap; | ||
|
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 |
---|---|---|
|
@@ -8,8 +8,8 @@ The Ballerina LDAP module provides the capability to efficiently connect, authen | |
|
||
- **add**: Creates an entry in a directory server. | ||
- **modify**: Updates information of an entry in a directory server. | ||
- **getEntry**: Gets information of an entry in a directory server. | ||
- **delete**: Removes an entry in a directory server. | ||
- **getEntry**: Gets information about an entry in a directory server. | ||
- **delete**: Removes an entry from a directory server. | ||
|
||
#### `add` API | ||
|
||
|
@@ -20,13 +20,13 @@ import ballerina/ldap; | |
public function main() returns error? { | ||
anydata user = { | ||
objectClass: ["user", "organizationalPerson", "person", "top"], | ||
sn: "New User", | ||
cn: "New User", | ||
givenName: "New User", | ||
displayName: "New User", | ||
userPrincipalName: "[email protected]", | ||
userAccountControl: "544" | ||
"objectClass": "user", | ||
"sn": "New User", | ||
"cn": "New User", | ||
"givenName": "New User", | ||
"displayName": "New User", | ||
"userPrincipalName": "[email protected]", | ||
"userAccountControl": "544" | ||
}; | ||
ldap:LDAPResponse val = check ldapClient->add(userDN, user); | ||
} | ||
|
@@ -41,17 +41,17 @@ import ballerina/ldap; | |
public function main() returns error? { | ||
anydata user = { | ||
sn: "User", | ||
givenName: "Updated User", | ||
displayName: "Updated User" | ||
"sn": "User", | ||
"givenName": "Updated User", | ||
"displayName": "Updated User" | ||
}; | ||
_ = check ldapClient->modify(userDN, user); | ||
} | ||
``` | ||
|
||
#### `getEntry` API | ||
|
||
Gets information of an entry | ||
Gets information about an entry in a directory server. | ||
|
||
```ballerina | ||
import ballerina/ldap; | ||
|
@@ -63,7 +63,7 @@ public function main() returns error? { | |
|
||
#### `delete` API | ||
|
||
Removes an entry in a directory server. | ||
Removes an entry from a directory server. | ||
|
||
```ballerina | ||
import ballerina/ldap; | ||
|