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