paul@976 | 1 | LDAP_LOCAL_PERSON_SYSTEM_QUERY = (&(|(mail=${quote_ldap:${local_part}}@${domain})\ |
paul@976 | 2 | (alias=${quote_ldap:${local_part}}@${domain}))\ |
paul@967 | 3 | (&(objectclass=posixAccount)(objectclass=inetorgperson))) |
paul@967 | 4 | |
paul@976 | 5 | ldap_local_person_system: |
paul@976 | 6 | debug_print = "R: ldap_local_person_system for $local_part@$domain" |
paul@967 | 7 | driver = redirect |
paul@976 | 8 | local_part_prefix = local+ |
paul@967 | 9 | data = ${lookup ldap{ \ |
paul@967 | 10 | user="LDAP_SERVICE_BIND_DN" \ |
paul@967 | 11 | pass=LDAP_SERVICE_PASSWORD \ |
paul@976 | 12 | ldap://LDAP_HOST:LDAP_PORT/LDAP_BASE_DN?uid?sub?LDAP_LOCAL_PERSON_SYSTEM_QUERY} \ |
paul@967 | 13 | } |
paul@967 | 14 | cannot_route_message = Unknown user |