Developer Guide for LDAP Web API & BizTalk LDAP Adapter
Section titled “Developer Guide for LDAP Web API & BizTalk LDAP Adapter”Unlock seamless directory integration and management with the Nodinite LDAP Adapter for Microsoft BizTalk Server and the LDAP Web API. This guide empowers developers and integration experts to build, test, and optimize solutions for both on-premise and cloud environments.
✅ Integrate with both BizTalk and modern web applications effortlessly
✅ Accelerate development with shared, ready-to-use examples
✅ Support on-premise and Azure App Service deployments
✅ Rely on proven, enterprise-grade directory integration
You will find:
- Clear, actionable examples for both Nodinite LDAP Adapter for Microsoft BizTalk Server and Nodinite LDAP Web API
- Guidance for on-premise and Azure App Service Environment (ASE) scenarios
- Unified documentation—test and run examples as best fit your runtime options
Nodinite delivers robust, flexible LDAP integration for your enterprise, whether you use BizTalk, IIS, or Azure. All examples in this guide apply to both products, so you can develop and validate your solutions with confidence.
Understanding the Message Flow
Section titled “Understanding the Message Flow”Both products share one backend: your integration sends a request message with one or more batches, the backend runs each operation against the LDAP directory, and you get a response message with the status and results of every operation.
Diagram: the LDAP Web API and the BizTalk LDAP Adapter pass the same request message to a shared backend, which runs the operations against the directory and returns a response message.
Features & Capabilities
Section titled “Features & Capabilities”The LDAP Web API and BizTalk LDAP Adapter provide comprehensive operations for managing directory services:
Entity Management Operations
Section titled “Entity Management Operations”User Management
Section titled “User Management”User Management - 16 operations. Complete lifecycle management for user accounts including creation, updates, group membership, enable/disable, and advanced queries by date. Supports password management and account control flags.
Group Management
Section titled “Group Management”Group Management - 9 operations. Full CRUD operations for security and distribution groups. Add/remove members, query membership, move and rename groups across organizational units.
OU Management
Section titled “OU Management”OU Management - 6 operations. Organizational Unit hierarchy management with create, update, delete, move, and rename capabilities. Build and reorganize directory structures programmatically.
Schema Management
Section titled “Schema Management”Schema Management - 3 operations. Discover available LDAP classes and their mandatory/optional attributes. Essential for understanding schema requirements before creating or updating objects.
AD Management
Section titled “AD Management”AD Management - 3 operations. Active Directory infrastructure queries including domain controllers, forest domains, and global catalog servers for multi-domain environments.
Message Schema
Section titled “Message Schema”Request Schema
Section titled “Request Schema”The Request Schema describes the XML/JSON request message structure including batches, entity records, search criteria (With), operations, properties, and transaction handling.
Response Schema
Section titled “Response Schema”The Response Schema describes the response message format with operation status, search results, error handling, execution metrics, and traceability information.
Supported Entities
Section titled “Supported Entities”| Entity Type | Description | Operations Count |
|---|---|---|
| User | User accounts and security principals | 16 |
| Group | Security and distribution groups | 9 |
| OrganizationalUnit | Directory hierarchy containers | 6 |
| Schema | LDAP schema introspection | 3 |
| AD | Active Directory infrastructure | 3 |
Common Operations
Section titled “Common Operations”Create Operations
Section titled “Create Operations”- Create User: Provision new user accounts with passwords and properties
- Create Group: Establish new security or distribution groups
- Create OU: Build organizational unit hierarchies
Query Operations
Section titled “Query Operations”- Select Users: Search for users with flexible criteria
- Select Groups: Find groups by name, description, or location
- Select OUs: Query organizational structure
Membership Operations
Section titled “Membership Operations”- AddToGroups: Add users to multiple groups
- RemoveFromGroups: Remove users from groups
- SelectMembers: List all members of groups
Account Management
Section titled “Account Management”- Enable / Disable: Control user account status
- SelectActive / SelectDisabled: Query by account state
- SelectByDate: Find users by creation or modification date
Structural Operations
Section titled “Structural Operations”- MoveTo: Relocate users between OUs
- MoveTo: Move groups to different locations
- MoveTo: Reorganize OU hierarchy
- Rename / Rename / Rename: Change object names
Getting Started
Section titled “Getting Started”1. Understand the Message Structure
Section titled “1. Understand the Message Structure”Start by reviewing the Request Schema to understand how to construct LDAP operations with batches, entity records, search criteria, and operation parameters.
2. Review Response Handling
Section titled “2. Review Response Handling”Explore the Response Schema to learn how to parse operation results, handle errors, and interpret search results with properties.
3. Choose Your Entity Operations
Section titled “3. Choose Your Entity Operations”Select the appropriate management guide based on your integration needs:
- User provisioning & deprovisioning: User Management
- Group organization: Group Management
- Directory structure: OU Management
- Schema discovery: Schema Management
- Infrastructure queries: AD Management
4. Build Your Solution
Section titled “4. Build Your Solution”Use the XML examples in each operation guide as templates. All examples work with both the BizTalk LDAP Adapter and LDAP Web API.
Key Features
Section titled “Key Features”Batch Processing
Section titled “Batch Processing”Execute multiple operations in a single request message. Control transaction behavior with transactionScopeOption and error handling with continueOnError.
Flexible Search Criteria
Section titled “Flexible Search Criteria”Use the With record to define:
- CN, OU, DC: Distinguished name components
- searchScope: Base, OneLevel, or Subtree
- searchFilter: LDAP filter syntax for precise queries
- returnProperties: Limit returned attributes for performance
- expectedMatchCount: Validate operation expectations
Transaction Support
Section titled “Transaction Support”Operations support MSDTC transactions with configurable scope options (Required, RequiresNew, Suppress) and timeout settings.
Error Handling
Section titled “Error Handling”Comprehensive error information including:
- ReturnStatus: NotExecuted, Success, Warning, Failed
- ExceptionMessage: Detailed error descriptions
- ExceptionMessageExtended: Additional diagnostic information
- Warnings: Non-critical issues encountered
Multi-Valued Attributes
Section titled “Multi-Valued Attributes”Set multiple values for attributes like url, proxyAddresses, or otherTelephone in a single operation.
Special Properties
Section titled “Special Properties”Built-in handling for:
- Password: Secure password management for user operations
- thumbnailPhoto / jpegPhoto: Binary image data with special encoding
- PassThruContent: Include custom XML/JSON content in messages
Development Environments
Section titled “Development Environments”BizTalk Server
Section titled “BizTalk Server”Use the LDAP Adapter in orchestrations, ports, and pipelines. Configure connection settings via the BizTalk Administration Console. See BizTalk Configuration.
IIS / Azure App Service
Section titled “IIS / Azure App Service”Deploy the LDAP Web API as a REST API endpoint. Call operations via HTTP POST with XML or JSON payloads. Perfect for cloud integrations, Authentication workflows, and modern applications.
Testing & Examples
Section titled “Testing & Examples”All operation documentation includes working XML examples you can use immediately. Example files referenced as %ExamplesFolder%\[Entity]\[Operation].xml are available with product installations.
Best Practices
Section titled “Best Practices”Use expectedMatchCount
Section titled “Use expectedMatchCount”Always specify expectedMatchCount to validate your search criteria returns the expected number of records. Prevents unintended bulk operations.
Limit returnProperties
Section titled “Limit returnProperties”Only request the attributes you need. Improves performance and reduces response message size, especially for queries returning many records.
Leverage Transactions
Section titled “Leverage Transactions”Use transactionScopeOption="Required" for operations that must succeed or fail atomically. Ensure MSDTC is properly configured.
Handle Multi-Record Results
Section titled “Handle Multi-Record Results”Operations like Update, Delete, Enable, Disable, and MoveTo support multiple records. Design your With criteria to match your intent.
Test with Small Batches
Section titled “Test with Small Batches”When developing, test with limited scope (Base or OneLevel) and specific CN values before executing Subtree searches in production.
Next Steps
Section titled “ Next Steps”- Review the Request Schema to understand message structure
- Explore the Response Schema for result handling
- Start with User Management for common provisioning scenarios
- Check the Prerequisites for setup and hosting requirements
- Review Logging for troubleshooting and monitoring