I find that when there is no email returned the email is assigned the
string of the netid pluss the string "null".

My test user "resotest" ends up with an email of "resotestnull".
Some debugging reveals that the call to 

ConfigurationManager.getProperty("authentication-ldap",
"netid_email_domain")

Is returning not a null character but instead the string "null"
I think this is a bug.

A workaround is to add the local email  netid_email_domain
to then end of the config file
authentication-ldap.cfg
I'm not sure what happens if it is left blank but don't try to enclode
text in double quotes since then the identity is impossible to delete in
the GUI.

I feel that if the  config of this item is not filled in the call to
configuation manager should return a null character or an empty string.




On Wed, 2013-07-24 at 12:44 +0200, helix84 wrote: 
> On Wed, Jul 24, 2013 at 3:00 AM, Keir Vaughan-Taylor <[email protected]> wrote:
> > My problem arises in that an undregistered user get authenticated and
> > entered into DSpace but their user name is modified to contain the
> > letters "NULL" after their user name. How can I prevent this happening?
> 
> I assume you're using autoregister = true.
> 
> These are the fields that map LDAP attributes to DSpace ePerson
> surname and given name. Please, check that these attributes are
> present and have values in your LDAP.
> 
> [dspace]/modules/authentication-ldap.cfg:
> surname_field = sn
> givenname_field = givenName
> 
> Please, remember that if you change this, the users who already
> autoregistered will not have the existing values updated on login, so
> either try this on a new person who never logged in or delete the
> dspace user so that he can autoregister again upon next login.
> 
> 
> Regards,
> ~~helix84
> 
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

-- 



------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to