imip-agent

Annotated conf/exim/ldap/020_exim4-config_ldap_resources

1153:967f8a54ef75
2016-04-22 Paul Boddie Allow scheduling methods to return result descriptions for inclusion in message parts. Improved the showmail tool to handle the multipart messages now produced by resource-scheduling operations. Fixed various aspects of the tests.
paul@964 1
LDAP_RESOURCE_QUERY = (&(|(mail=${quote_ldap:${local_part}@${domain}})\
paul@964 2
                          (alias=${quote_ldap:${local_part}@${domain}}))\
paul@964 3
                        (&(!(objectclass=inetOrgPerson))(objectclass=mailRecipient)))
paul@90 4
paul@90 5
ldap_resource:
paul@95 6
  debug_print = "R: ldap_resource for $local_part@$domain"
paul@90 7
  driver = accept
paul@90 8
  condition = ${if eq {}{${lookup ldap{ \
paul@1109 9
    user="$LDAP_SERVICE_BIND_DN" \
paul@1109 10
    pass=$LDAP_SERVICE_PASSWORD \
paul@1109 11
    $LDAP_SCHEME://$LDAP_HOST:$LDAP_PORT/$LDAP_BASE_DN?mail?sub?LDAP_RESOURCE_QUERY} \
paul@90 12
    }}{no}{yes}}
paul@90 13
  transport = resources_transport
paul@90 14
  cannot_route_message = Unknown user