[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] disable login for users
Its the loginticket table. I use the following MySQL command to empty
this table:
TRUNCATE loginticket;
I have contemplated adding an epadmin sub-command that would allow you
to effectively do the same thing.
On 01/02/2022 21:32, Tomasz Neugebauer via Eprints-tech wrote:
> *CAUTION:* This e-mail originated outside the University of Southampton.
> Also keep in mind that you might have users already authenticated,
> with unexpired authentication cookies/sessions.? I do remember that
> there is also a way of clearing all of the existing logged-in
> "tickets" 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.
>
> Tomasz
>
>
> ------------------------------------------------------------------------
> *From:* eprints-tech-bounces at ecs.soton.ac.uk
> <eprints-tech-bounces at ecs.soton.ac.uk> on behalf of Yuri via
> Eprints-tech <eprints-tech at ecs.soton.ac.uk>
> *Sent:* Monday, January 31, 2022 9:45 AM
> *To:* eprints-tech at ecs.soton.ac.uk <eprints-tech at ecs.soton.ac.uk>
> *Subject:* Re: [EP-tech] disable login for users
> Attention This email originates from outside the concordia.ca domain.
> // Ce courriel provient de l'exterieur du domaine de concordia.ca
> CAUTION: This e-mail originated outside the University of Southampton.
>
> Hi!
>
> ? sorry for the noise, I've solved with
>
> $c->{check_user_password} = sub {
> ??? my( $session, $username, $password ) = @_;
>
> ??? my $user = EPrints::DataObj::User::user_with_username( $session,
> $username );
> ??? return 0 unless $user;
>
> ??? my $user_type = $user->get_type;
> ??? if( $user_type eq "admin" || $user_type eq "editor" )
> ??? {
> ?????? # internal authentication for "admin" type
> ?????? return $session->get_database->valid_login( $username, $password );
> ??? }
>
> ??? return 0;
> }
>
> in <archive>/cfg/cfg.d/user_login.pl
>
> Il 31/01/22 15:34, Yuri via Eprints-tech ha scritto:
> > CAUTION: This e-mail originated outside the University of Southampton.
> >
> > Hi!
> >
> >??? I'm migrating an Eprints repository and I would like no user (but
> > editor and admin yes) could login or do anything. I've disabled creating
> > logins but also I would like to stop existing users.
> >
> >??? What is the simplest way? Remove permissions to the user role?
> >
> >
> > *** Options:
> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmailman.ecs.soton.ac.uk%2Fmailman%2Flistinfo%2Feprints-tech&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce027b0f812bd49ab69ca08d9e5cf60fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793501132718562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=BjTaNwQRoCbBCUUpqF%2FBzn5Xo2pfeyWSTu%2BrEqsVQwo%3D&reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmailman.ecs.soton.ac.uk%2Fmailman%2Flistinfo%2Feprints-tech&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce027b0f812bd49ab69ca08d9e5cf60fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793501132718562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=BjTaNwQRoCbBCUUpqF%2FBzn5Xo2pfeyWSTu%2BrEqsVQwo%3D&reserved=0>
> > *** Archive:
> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce027b0f812bd49ab69ca08d9e5cf60fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793501132718562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=4ZkdI9uOT0EGBXbPPOK3sxbLvtK%2FVwi6oS0GwyNqX2E%3D&reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce027b0f812bd49ab69ca08d9e5cf60fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793501132718562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=4ZkdI9uOT0EGBXbPPOK3sxbLvtK%2FVwi6oS0GwyNqX2E%3D&reserved=0>
> > *** EPrints community wiki:
> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce027b0f812bd49ab69ca08d9e5cf60fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793501132718562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=YZlRiuQ5nFqCAkRVjfVZfBxwfbPV%2BcQsBs1TEaPY2uE%3D&reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce027b0f812bd49ab69ca08d9e5cf60fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793501132718562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=YZlRiuQ5nFqCAkRVjfVZfBxwfbPV%2BcQsBs1TEaPY2uE%3D&reserved=0>
>
> *** Options:
> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmailman.ecs.soton.ac.uk%2Fmailman%2Flistinfo%2Feprints-tech&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce027b0f812bd49ab69ca08d9e5cf60fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793501132718562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=BjTaNwQRoCbBCUUpqF%2FBzn5Xo2pfeyWSTu%2BrEqsVQwo%3D&reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmailman.ecs.soton.ac.uk%2Fmailman%2Flistinfo%2Feprints-tech&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce027b0f812bd49ab69ca08d9e5cf60fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793501132718562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=BjTaNwQRoCbBCUUpqF%2FBzn5Xo2pfeyWSTu%2BrEqsVQwo%3D&reserved=0>
> *** Archive:
> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce027b0f812bd49ab69ca08d9e5cf60fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793501132718562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=4ZkdI9uOT0EGBXbPPOK3sxbLvtK%2FVwi6oS0GwyNqX2E%3D&reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce027b0f812bd49ab69ca08d9e5cf60fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793501132718562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=4ZkdI9uOT0EGBXbPPOK3sxbLvtK%2FVwi6oS0GwyNqX2E%3D&reserved=0>
> *** EPrints community wiki:
> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce027b0f812bd49ab69ca08d9e5cf60fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793501132718562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=YZlRiuQ5nFqCAkRVjfVZfBxwfbPV%2BcQsBs1TEaPY2uE%3D&reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce027b0f812bd49ab69ca08d9e5cf60fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793501132718562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=YZlRiuQ5nFqCAkRVjfVZfBxwfbPV%2BcQsBs1TEaPY2uE%3D&reserved=0>
>
>
> *** Options:http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce027b0f812bd49ab69ca08d9e5cf60fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793501132718562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=4ZkdI9uOT0EGBXbPPOK3sxbLvtK%2FVwi6oS0GwyNqX2E%3D&reserved=0
> *** EPrints community wiki:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce027b0f812bd49ab69ca08d9e5cf60fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793501132718562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=YZlRiuQ5nFqCAkRVjfVZfBxwfbPV%2BcQsBs1TEaPY2uE%3D&reserved=0
--
This email has been checked for viruses by AVG.
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avg.com%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce027b0f812bd49ab69ca08d9e5cf60fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637793501132718562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=lJWxL%2Fq6cdqJ07ZJ54IDq%2FIp9XufNnZqkW0xMq4i8Bs%3D&reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20220201/e0feff2f/attachment-0001.html