<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="padding-bottom: 10px; padding-top: 5px;">
<div style="padding:12px; border:1px solid #8D3970; background-color:#F7F9FA; color:#8D3970; font-size:14px; line-height:22px; font-family: Calibri, Arial, Helvetica, sans-serif;">
<strong>CAUTION:</strong> This e-mail originated outside the University of Southampton.
</div>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Also keep in mind that you might have users already authenticated, with unexpired authentication cookies/sessions.&nbsp; I do remember that there is also a way of clearing all of the existing logged-in &quot;tickets&quot; from the database, to ensure that everyone will be
 required to go through that login script, but I don't remember which table it is that you would have to clear.&nbsp;&nbsp;</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Tomasz</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="font-family:Tahoma; font-size:13px"></div>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> eprints-tech-bounces@ecs.soton.ac.uk &lt;eprints-tech-bounces@ecs.soton.ac.uk&gt; on behalf of Yuri via Eprints-tech &lt;eprints-tech@ecs.soton.ac.uk&gt;<br>
<b>Sent:</b> Monday, January 31, 2022 9:45 AM<br>
<b>To:</b> eprints-tech@ecs.soton.ac.uk &lt;eprints-tech@ecs.soton.ac.uk&gt;<br>
<b>Subject:</b> Re: [EP-tech] disable login for users</font>
<div>&nbsp;</div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Attention This email originates from outside the concordia.ca domain. // Ce courriel provient de l'exterieur du domaine de concordia.ca<br>
CAUTION: This e-mail originated outside the University of Southampton.<br>
<br>
Hi!<br>
<br>
&nbsp; sorry for the noise, I've solved with<br>
<br>
$c-&gt;{check_user_password} = sub {<br>
&nbsp;&nbsp;&nbsp; my( $session, $username, $password ) = @_;<br>
<br>
&nbsp;&nbsp;&nbsp; my $user = EPrints::DataObj::User::user_with_username( $session,<br>
$username );<br>
&nbsp;&nbsp;&nbsp; return 0 unless $user;<br>
<br>
&nbsp;&nbsp;&nbsp; my $user_type = $user-&gt;get_type;<br>
&nbsp;&nbsp;&nbsp; if( $user_type eq &quot;admin&quot; || $user_type eq &quot;editor&quot; )<br>
&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # internal authentication for &quot;admin&quot; type<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return $session-&gt;get_database-&gt;valid_login( $username, $password );<br>
&nbsp;&nbsp;&nbsp; }<br>
<br>
&nbsp;&nbsp;&nbsp; return 0;<br>
}<br>
<br>
in &lt;archive&gt;/cfg/cfg.d/user_login.pl<br>
<br>
Il 31/01/22 15:34, Yuri via Eprints-tech ha scritto:<br>
&gt; CAUTION: This e-mail originated outside the University of Southampton.<br>
&gt;<br>
&gt; Hi!<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp; I'm migrating an Eprints repository and I would like no user (but<br>
&gt; editor and admin yes) could login or do anything. I've disabled creating<br>
&gt; logins but also I would like to stop existing users.<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp; What is the simplest way? Remove permissions to the user role?<br>
&gt;<br>
&gt;<br>
&gt; *** Options: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmailman.ecs.soton.ac.uk%2Fmailman%2Flistinfo%2Feprints-tech&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf63772e730cf41152d4c08d9e5ca5b93%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793480121799609%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=HGbCHx8kpCtPe4CwkxAAZlrrxYjQu7A6voxOjSNMHxk%3D&amp;reserved=0" originalSrc="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" shash="fvO+LO8PQBl+RbnYF9R7BK/YUG4rqnTA9A5N0VdbplwoljgkYWT47TRRSotqXNPw2pJWCxU3PKKX0pS41W/BZANZOLqjAUX8iIKQytjh1ZLajrlvUf4yKCXBbh32CacKP4YMKSrIy56TnvMIIupqXDnRB2zHHxxeBJKCSdP+A+w=">
https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmailman.ecs.soton.ac.uk%2Fmailman%2Flistinfo%2Feprints-tech&amp;amp;data=04%7C01%7CTomasz.Neugebauer%40concordia.ca%7C06767c73d20a40aa406708d9e4c882d0%7C5569f185d22f4e139850ce5b1abcd2e8%7C0%7C0%7C637792372120754187%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;amp;sdata=el4mUeKI%2FBhkbr9I6vvkgUlaBI1TorptQ%2BnP8GbKcz0%3D&amp;amp;reserved=0</a><br>
&gt; *** Archive: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf63772e730cf41152d4c08d9e5ca5b93%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793480121799609%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Ma9a2iC2uHiFWIiDVTWJnMJrPsguUHntJqvGnWNdNnQ%3D&amp;reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="cWD0REoTWQCliWVAtv0owdAAr4twa19CkG638rD8XU8EYZdtl5RrVMJ4qSZ8rvvtMIzBHn1xlQNI9XDV8ev9w/Ugz6Lwt1QmgdOvuCfPF+Z7/QPBlMKZCiHLqJ31IZtlMLxFTHQJq2bU8k7KQ8MsuHCZ8hLc+6Ak0CQ/Ruom4Xw=">
https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;amp;data=04%7C01%7CTomasz.Neugebauer%40concordia.ca%7C06767c73d20a40aa406708d9e4c882d0%7C5569f185d22f4e139850ce5b1abcd2e8%7C0%7C0%7C637792372120754187%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;amp;sdata=GMrkcdIQsFjaEXjhL5ATS043%2BN9hcy7d2hwf7lvfhlE%3D&amp;amp;reserved=0</a><br>
&gt; *** EPrints community wiki: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf63772e730cf41152d4c08d9e5ca5b93%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793480121799609%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=0b0JZeYiPr5LZYdbBziFGcmlcSO20f058PqE3mJg3S0%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/" shash="yuJ8ZqiY4tF4T5uuzeByfNQ9PBSjWqmYs1Wilsi/LyblkF5gjszdD6E7undc7BMK7XmpMfHa2l4zNZanVdp19ZV92ORYQEw7OgF1jL7V4mV+u8NZunXFfYzJN+TG1zxx8fW7dfESrABFtCa5KjyfZhBpNgXT98PVpOB50ajxfg8=">
https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;amp;data=04%7C01%7CTomasz.Neugebauer%40concordia.ca%7C06767c73d20a40aa406708d9e4c882d0%7C5569f185d22f4e139850ce5b1abcd2e8%7C0%7C0%7C637792372120754187%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;amp;sdata=eZLtGqmw345gFhYqf6ovrChlinyNKaaEgGvPfCxw478%3D&amp;amp;reserved=0</a><br>
<br>
*** Options: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmailman.ecs.soton.ac.uk%2Fmailman%2Flistinfo%2Feprints-tech&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf63772e730cf41152d4c08d9e5ca5b93%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793480121799609%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=HGbCHx8kpCtPe4CwkxAAZlrrxYjQu7A6voxOjSNMHxk%3D&amp;reserved=0" originalSrc="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" shash="fvO+LO8PQBl+RbnYF9R7BK/YUG4rqnTA9A5N0VdbplwoljgkYWT47TRRSotqXNPw2pJWCxU3PKKX0pS41W/BZANZOLqjAUX8iIKQytjh1ZLajrlvUf4yKCXBbh32CacKP4YMKSrIy56TnvMIIupqXDnRB2zHHxxeBJKCSdP+A+w=">
https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmailman.ecs.soton.ac.uk%2Fmailman%2Flistinfo%2Feprints-tech&amp;amp;data=04%7C01%7CTomasz.Neugebauer%40concordia.ca%7C06767c73d20a40aa406708d9e4c882d0%7C5569f185d22f4e139850ce5b1abcd2e8%7C0%7C0%7C637792372120754187%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;amp;sdata=el4mUeKI%2FBhkbr9I6vvkgUlaBI1TorptQ%2BnP8GbKcz0%3D&amp;amp;reserved=0</a><br>
*** Archive: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf63772e730cf41152d4c08d9e5ca5b93%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793480121799609%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Ma9a2iC2uHiFWIiDVTWJnMJrPsguUHntJqvGnWNdNnQ%3D&amp;reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="cWD0REoTWQCliWVAtv0owdAAr4twa19CkG638rD8XU8EYZdtl5RrVMJ4qSZ8rvvtMIzBHn1xlQNI9XDV8ev9w/Ugz6Lwt1QmgdOvuCfPF+Z7/QPBlMKZCiHLqJ31IZtlMLxFTHQJq2bU8k7KQ8MsuHCZ8hLc+6Ak0CQ/Ruom4Xw=">
https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;amp;data=04%7C01%7CTomasz.Neugebauer%40concordia.ca%7C06767c73d20a40aa406708d9e4c882d0%7C5569f185d22f4e139850ce5b1abcd2e8%7C0%7C0%7C637792372120754187%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;amp;sdata=GMrkcdIQsFjaEXjhL5ATS043%2BN9hcy7d2hwf7lvfhlE%3D&amp;amp;reserved=0</a><br>
*** EPrints community wiki: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf63772e730cf41152d4c08d9e5ca5b93%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793480121799609%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=0b0JZeYiPr5LZYdbBziFGcmlcSO20f058PqE3mJg3S0%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/" shash="yuJ8ZqiY4tF4T5uuzeByfNQ9PBSjWqmYs1Wilsi/LyblkF5gjszdD6E7undc7BMK7XmpMfHa2l4zNZanVdp19ZV92ORYQEw7OgF1jL7V4mV+u8NZunXFfYzJN+TG1zxx8fW7dfESrABFtCa5KjyfZhBpNgXT98PVpOB50ajxfg8=">
https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;amp;data=04%7C01%7CTomasz.Neugebauer%40concordia.ca%7C06767c73d20a40aa406708d9e4c882d0%7C5569f185d22f4e139850ce5b1abcd2e8%7C0%7C0%7C637792372120754187%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;amp;sdata=eZLtGqmw345gFhYqf6ovrChlinyNKaaEgGvPfCxw478%3D&amp;amp;reserved=0</a><br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>