Repository: james-project Updated Branches: refs/heads/master a275f62d7 -> adbec1a7d
JAMES-1940 Update javadoc with new supportsVirtualHosting tag Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/adbec1a7 Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/adbec1a7 Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/adbec1a7 Branch: refs/heads/master Commit: adbec1a7d586f9323c333e96f0a17e93d4d33a5d Parents: a275f62 Author: Raphael Ouazana <[email protected]> Authored: Tue Feb 14 15:33:22 2017 +0100 Committer: Benoit Tellier <[email protected]> Committed: Wed Feb 15 07:04:06 2017 +0700 ---------------------------------------------------------------------- .../apache/james/user/ldap/ReadOnlyUsersLDAPRepository.java | 9 +++++++++ 1 file changed, 9 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/adbec1a7/server/data/data-ldap/src/main/java/org/apache/james/user/ldap/ReadOnlyUsersLDAPRepository.java ---------------------------------------------------------------------- diff --git a/server/data/data-ldap/src/main/java/org/apache/james/user/ldap/ReadOnlyUsersLDAPRepository.java b/server/data/data-ldap/src/main/java/org/apache/james/user/ldap/ReadOnlyUsersLDAPRepository.java index f828cb5..7d8ff6c 100644 --- a/server/data/data-ldap/src/main/java/org/apache/james/user/ldap/ReadOnlyUsersLDAPRepository.java +++ b/server/data/data-ldap/src/main/java/org/apache/james/user/ldap/ReadOnlyUsersLDAPRepository.java @@ -220,6 +220,15 @@ import com.google.common.base.Optional; * <b>administratorId:</b> (optional) User identifier of the administrator user. * The administrator user is allowed to authenticate as other users. * </ul> + * </p> + * + * <p> + * The <b>supportsVirtualHosting</b> tag allows you to define this repository as supporing + * virtual hosting. For this LDAP repository, it means users will be looked for by their email + * address instead of their unique identifier. + * Generally to make it work, you need to configure <b>userIdAttribute</b> attribute to map + * to a mail attribute such as <code>mail</code> instead of an unique id identifier. + * </p> * * @see ReadOnlyLDAPUser * @see ReadOnlyLDAPGroupRestriction --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
