Re: [Dspace-tech] LDAP auth doesn't send e-mails properly
Seems to work. Thank you so much! 2015-04-08 9:04 GMT+01:00 Olivier Nicole olivier.nic...@cs.ait.ac.th: Xerio, We're running DSpace 4.1 along with the LDAP authentication system. This works well except LDAP doesn't seem to find the correct e-mail address for users. I think there is a patch to apply. You could have a look at: https://jira.duraspace.org/browse/DS-1781 Best regards, olivier In config/modules/authentication-ldap.cfg we have: provider_usr = ldap://ldapserver id_field = uid object_context = cn=Users,dc=ldap,dc=com email_field = usermail If I run the ldapsearch command in the term I can indeed get the email of the user: dspace:mch# ldapsearch -H ldap://ldapserver -b 'cn=Users,dc=ldap,dc=com' -x uid=xerio usermail # xerio, Users, ldap.com dn: uid=xerio,cn=Users,dc=ldap,dc=com usermail: xe...@xerio.com # search result search: 2 result: 0 Success # numResponses: 2 # numEntries: 1 However, DSpace seems to try to send the e-mail to=xerio (the username) instead. Is there a way how can I debug this further or any hint about what could be wrong? Thanks. [1/2:text/html Show] [2:text/plain Hide] -- BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF [3:text/plain Hide] ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- -- BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] LDAP auth doesn't send e-mails properly
Hi, We're running DSpace 4.1 along with the LDAP authentication system. This works well except LDAP doesn't seem to find the correct e-mail address for users. In config/modules/authentication-ldap.cfg we have: provider_usr = ldap://ldapserver id_field = uid object_context = cn=Users,dc=ldap,dc=com email_field = usermail If I run the ldapsearch command in the term I can indeed get the email of the user: dspace:mch# ldapsearch -H ldap://ldapserver -b 'cn=Users,dc=ldap,dc=com' -x uid=xerio usermail # xerio, Users, ldap.com dn: uid=xerio,cn=Users,dc=ldap,dc=com usermail: xe...@xerio.com # search result search: 2 result: 0 Success # numResponses: 2 # numEntries: 1 However, DSpace seems to try to send the e-mail to=xerio (the username) instead. Is there a way how can I debug this further or any hint about what could be wrong? Thanks. -- BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] Use AND logic search instead of OR
Hi Tim, Thanks so much. Sorry for not mentioning the DSpace version, we're using v. 4.1, so Discovery is the enabled engine. I'll tell the staff how it works and how to force the AND logic. Thanks again! 2015-02-11 21:16 GMT+00:00 Tim Donohue tdono...@duraspace.org: Hi, What version of DSpace are you using? The most recent versions of DSpace (4.x and 5.x) both use Discovery (based on Solr) for searching. This means they actually perform weighted/relevancy searches. So, if you search on multiple words, items which have both words (essentially an AND) will appear at the top of the search results. More info on Discovery is at https://wiki.duraspace.org/display/DSDOC5x/Discovery Discovery has existed in DSpace since DSpace 1.7, but it was disabled by default for some time. Starting in DSpace 4, it is the default search and browse engine for DSpace. If you are not yet using Discovery, you may wish to consider enabling it as it sounds like it may meet your needs. If you are using Discovery, you actually can force a boolean AND by simply entering two words with AND. For example: * test AND document - would only return items that have both test and document * test document - would return all items that have either test or document but the ones that have *both* would appear at the top of the results. Good luck! - Tim On 2/11/2015 2:42 PM, Xerio Cheri wrote: Hi, It has been proposed by our staff to change the way DSpace searches terms on XMLUI. By default, it uses OR logic, so if more than one term is entered, any of them will be matched. Is there a simple way to change that behavior so if more than one word is entered in the search box only items that have ALL of them will be displayed? Thank you -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+ Etiquette -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] Use AND logic search instead of OR
Hi, It has been proposed by our staff to change the way DSpace searches terms on XMLUI. By default, it uses OR logic, so if more than one term is entered, any of them will be matched. Is there a simple way to change that behavior so if more than one word is entered in the search box only items that have ALL of them will be displayed? Thank you -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] Adding e-people into groups automatically
Hi Nada, I've developed a pretty non-standard way to achieve this via a PostgreSQL TRIGGER statement. In that case, you have to create your group and see what 'id' has been given to it in the database (epersongroup table, eperson_group_id field). In the following example I assume it has ID 6, so you'd create a trigger like this: CREATE OR REPLACE FUNCTION addtoregistergroup() RETURNS TRIGGER AS $$ DECLARE maxid integer; DECLARE real_maxid integer; DECLARE max_eperson integer; BEGIN PERFORM pg_sleep(1); SELECT MAX(eperson_id) INTO max_eperson FROM eperson; SELECT MAX(id) INTO maxid FROM epersongroup2eperson; SELECT SUM(maxid + 1) INTO real_maxid; INSERT INTO epersongroup2eperson(id, eperson_group_id, eperson_id) VALUES(real_maxid, 6, max_eperson); RETURN NULL; END; $$ LANGUAGE plpgsql; Now you just have to assign that TRIGGER to the eperson table: CREATE TRIGGER autoadd2regs AFTER INSERT ON eperson EXECUTE PROCEDURE addtoregistergroup(); This has one big disatvantage: if you create a administrator via the './dspace create-administrator' command, this won't work, as there will be 2 insertions in the epersongroup2eperson table and they will be trying to insert the same key, so you'll see an exception being thrown due to duplicate key violation. This would mean you would need to grant the Administrator privileges to users via the XMLUI/JSPUI interface, in the 'Access control' menu. Otherwise, it has worked perfectly to me so far. HTH, Regards. 2014-11-17 14:50 GMT+00:00 helix84 heli...@centrum.sk: Hi Nada, if you're using LDAP, you may put the name of a DSpace group (create this group first) into login.specialgroup [1] and all users who log in via LDAP will be members of this group while they're logged in. You can check this group membership in the profile of the logged in user. In addition, you may put LDAP users into different DSpace groups based either on their LDAP DN or value of an LDAP attribute [2]. All of this is documented in [3] If you're using Shibboleth, read more about role-based groups here [4] and here [5]. [1] https://github.com/DSpace/DSpace/blob/dspace-4_x/dspace/config/modules/authentication-ldap.cfg#L109 [2] https://github.com/DSpace/DSpace/blob/dspace-4_x/dspace/config/modules/authentication-ldap.cfg#L150 [3] https://wiki.duraspace.org/display/DSDOC4x/Authentication+Plugins#AuthenticationPlugins-ConfiguringLDAPAuthentication [4] https://wiki.duraspace.org/display/DSDOC4x/Authentication+Plugins#AuthenticationPlugins-DSpaceShibbolethConfigurationOptions [5] https://github.com/DSpace/DSpace/blob/dspace-4_x/dspace/config/modules/authentication-shibboleth.cfg#L147 Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] Timed embargo
I've enabled webui.submission.restrictstep.enableAdvancedForm=true in the dspace.cfg file, now I can see the additional step in the submission workflow, however, I can't see a change in the 'Authorizations' page for an item. I can still manage the default options, READ, WRITE, ADD, REMOVE, ADMIN, but I wonder what should I choose to make an item be embargoed until a specific date. Any help is appreciated. Regards. 2014-11-14 20:18 GMT+00:00 helix84 heli...@centrum.sk: Yes, after enabling webui.submission.restrictstep.enableAdvancedForm, you can create new resourcepolicies with a start and end date from the Edit item / Authorizations page. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] Change default access read retroactively
Hi, I have a collection which has X documents in it. Up until now, it had default read access to anonymous users, but now I want to change it to one of our groups. However, when changing this, in the admin panel, I see a note telling that it won't be changed retroactively, instead it will apply only for new uploaded documents. Is there a way (I don't mind if it's not 'clean') to change the visibility also for documents that already were uploaded at the time we changed that role? Thanks for any help. -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] Change default access read retroactively
Thanks helix84, I just tried using the SQL way and it worked perfectly. Regards. 2014-11-14 14:22 GMT+00:00 helix84 heli...@centrum.sk: Yes, we describe this in the FAQ: https://wiki.duraspace.org/display/DSPACE/TechnicalFaq#TechnicalFaq-Ichangedaccessrestrictionsonacollection,butrestrictionsdidn'tchangeonitsitems Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] Timed embargo
Hi, I've seen documentation regarding Embargo here https://wiki.duraspace.org/display/DSDOC3x/Embargo and even it's quite useful, my aim is to temporarily withdraw/make private items, based on a date. I see that these modifications would change the submission process asking for a date to lift the embargo, however, is it currently possible to set a timed embargo on an already uploaded item that hasn't been embargoed at submission time? Thanks. -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] Timed embargo
Thank you guys. I'll give it a try and answer if I find some trouble. Regards. 2014-11-14 20:18 GMT+00:00 helix84 heli...@centrum.sk: Yes, after enabling webui.submission.restrictstep.enableAdvancedForm, you can create new resourcepolicies with a start and end date from the Edit item / Authorizations page. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette