[ https://jira.duraspace.org/browse/DS-586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=24450#comment-24450 ]
Ivan Masár commented on DS-586: ------------------------------- There's a simple solution to this issue, in [dspace]/config/modules/authentication-ldap.cfg just set email_field to the field name you want to use as user's ID, e.g.: email_field = cn This is not really an issue, it's only unfortunate that DSpace assumes it can use user's ID as an email address, which is reported here: https://jira.duraspace.org/browse/DS-937 You can break that assumption and everything will work except sending email to users directly - I'm using this in production. > LDAP users with no mail field can't autoregister > ------------------------------------------------ > > Key: DS-586 > URL: https://jira.duraspace.org/browse/DS-586 > Project: DSpace > Issue Type: Bug > Components: DSpace API > Affects Versions: 1.6.0 > Environment: any > Reporter: Pere Villega > Priority: Major > Attachments: ldap.patch > > > In LDAP Hierarchical Authentication, if a user has no "ldapMail" field > defined and has not logged in before, a boolean condition in the code makes > impossible for the user to autoregister, even if the configuration options > allows autoregistration. > I attach a proposed patch for the issue for file > dspace/dspace-api/src/main/java/org/dspace/authenticate/LDAPHierarchicalAuthentication.java -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.duraspace.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Dspace-devel mailing list Dspace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-devel