|
From: Tuomas J. (JIRA) <ji...@jf...> - 2008-11-21 16:36:03
|
Retrieve e-mail addresses from LDAP
-----------------------------------
Key: RTFACT-1027
URL: http://www.jfrog.org/jira/browse/RTFACT-1027
Project: Artifactory
Issue Type: New Feature
Components: Web UI
Affects Versions: 1.3.0-beta-6
Reporter: Tuomas Jormola
Assignee: Yoav Landman
Typically, when storing user information in LDAP, there's also an attribute for user's e-mail address. I think it would be pretty neat that you could configure search pattern for retrieving the user's email address and use this value as the e-mail address when creating the matching entry in the Archiva user database. Snippet from possible configuration:
<ldapSettings>
<ldapSetting>
<key>ldap1</key>
<enabled>true</enabled>
<ldapUrl>ldap://example.com</ldapUrl>
<search>
<searchFilter>sAMAccountName={0}</searchFilter>
<searchBase>dc=example,dc=com</searchBase>
<emailAttribute>mail</emailAttribute>
<emailFilter>sAMAccountName={0}</emailFilter>
<managerDn>cn=archivauser,dc=example,dc=com</managerDn>
<managerPassword>password</managerPassword>
</search>
</ldapSetting>
</ldapSettings>
So after the user's password has been verified, the query specified in <emailFilter/> is run against the LDAP server (with {0} replaced with the user name) and value of the attribute specified in <emailAttribute/> is used as the email address, provided that the search returned exactly one match and that the configured attribute exists in the result.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.jfrog.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|