I can provide a comprehensive solution based on your symptoms. You’re experiencing three interconnected issues that need to be addressed systematically.
LDAP Connection Tuning:
First, optimize your LDAP connection settings in the SSO configuration. Increase the connection timeout and implement connection pooling:
ldap.connection.timeout=45000
ldap.connection.pool.min=5
ldap.connection.pool.max=20
ldap.read.timeout=30000
These settings prevent timeout failures during peak onboarding periods and maintain persistent connections for better performance.
User Attribute Mapping:
The ‘supplierRole’ attribute mapping failure is your core issue. You need to define this in your SSO connector configuration. Edit your sso-config.xml:
<attribute-map>
<ldap-attr>supplierRole</ldap-attr>
<agile-attr>userRole</agile-attr>
<required>true</required>
</attribute-map>
Ensure all manufacturing collaboration required attributes are mapped: supplierRole, companyCode, collaborationType, and accessLevel. Missing any of these causes provisioning to fail silently.
SSO Provisioning Timing:
Switch to just-in-time provisioning mode to eliminate the 10-15 minute delays. In your Agile Java client settings, enable:
agile.sso.provisioning.mode=JIT
agile.sso.provisioning.retry.enabled=true
agile.sso.provisioning.retry.attempts=3
agile.sso.provisioning.retry.delay=5000
This configures immediate provisioning with automatic retry logic. The retry mechanism handles transient LDAP connection issues that cause the 30% failure rate you’re seeing.
Additional Recommendations:
-
Implement LDAP connection health checks before provisioning attempts. Add a pre-provisioning validation step that tests LDAP connectivity and attribute availability.
-
Enable detailed SSO logging by setting the log level to DEBUG for the com.agile.sso package. This reveals exactly where provisioning fails and provides timing metrics.
-
Consider implementing an LDAP attribute cache with a 5-minute TTL. This reduces directory queries during bulk onboarding and prevents connection pool exhaustion.
-
Set up monitoring for SSO provisioning failures. Create alerts when failure rate exceeds 5% so you can proactively address issues.
-
For the manufacturing collaboration module specifically, ensure your LDAP groups are synchronized before user provisioning. Add a 2-second delay between group sync and user sync jobs in your scheduler configuration.
After implementing these changes, test with a batch of 10-15 supplier accounts to verify consistent provisioning. The combination of increased timeouts, proper attribute mapping, JIT provisioning, and retry logic should eliminate your intermittent failures and reduce onboarding time to under 30 seconds per user.