[midPoint-git] [Evolveum/midpoint] 224670: Smart Integration: extract DN suffix from user sam...

Michal Zelenčík noreply at github.com
Mon Feb 9 17:33:18 CET 2026


  Branch: refs/heads/dn-mapping
  Home:   https://github.com/Evolveum/midpoint
  Commit: 224670ce6ae376a7846e820f388edc23e79508b9
      https://github.com/Evolveum/midpoint/commit/224670ce6ae376a7846e820f388edc23e79508b9
  Author: Michal Zelencik <michal.zelencik at evolveum.com>
  Date:   2026-02-09 (Mon, 09 Feb 2026)

  Changed paths:
    M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/MappingsSuggestionOperation.java
    M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/wellknownschemas/WellKnownSchemaProvider.java
    M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/wellknownschemas/ad/UserActiveDirectoryMappingProvider.java
    M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/wellknownschemas/ldap/InetOrgPersonLdapMappingProvider.java
    M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/wellknownschemas/scim/UserScimMappingProvider.java
    M model/smart-impl/src/test/java/com/evolveum/midpoint/smart/impl/TestSystemMappingsSuggestion.java

  Log Message:
  -----------
  Smart Integration: extract DN suffix from user samples for LDAP mappings

Implement DN mapping suggestion that extracts OU-based suffix
from sample shadow data.

- Add sampleShadows parameter to WellKnownSchemaProvider.suggestOutboundMappings()
- Implement extractOuSuffixFromSamples() in InetOrgPersonLdapMappingProvider
  - Parse DN values
  - Extract suffix by finding first OU-based prefix
  - Return null if no valid DN found (no resource config fallback)
- Update all WellKnownSchemaProvider implementations to match new signature
- Pass sample shadows from MappingsSuggestionOperation to providers

Signed-off-by: Michal Zelencik <michal.zelencik at evolveum.com>



To unsubscribe from these emails, change your notification settings at https://github.com/Evolveum/midpoint/settings/notifications


More information about the midPoint-svn mailing list