EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #01213
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: restricting account creation
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: restricting account creation
- From: Malcolm Bodger <M.Bodger@westminster.ac.uk>
- Date: Fri, 19 Oct 2012 08:25:59 +0000
Hi Jose,
Many thanks for you help with this and it's working fine. And thanks to John, Alan and Ian too. It's something I should have done a long time ago.
Regards, Malcolm. From: eprints-tech-bounces@ecs.soton.ac.uk [eprints-tech-bounces@ecs.soton.ac.uk] on behalf of Jose Martin [J.Martin@ulcc.ac.uk]
Sent: 11 October 2012 09:28 To: eprints-tech@ecs.soton.ac.uk Subject: [EP-tech] Re: restricting account creation Try with:
return 1 if $email =~ /\@westminster\.ac\.uk$/ or $email =~ /\@wmin\.ac\.uk$/;
Best,
Jose.
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Malcolm Bodger
Hi Jose,
Many thanks, I'll give it a try, but how can I change that to include an alias of 'wmin.ac.uk' ?
Regards, Malcolm. From:
eprints-tech-bounces@ecs.soton.ac.uk [eprints-tech-bounces@ecs.soton.ac.uk] on behalf of Jose Martin [J.Martin@ulcc.ac.uk] Check cfg.d/registration.pl:
# This function allows you to allow/deny sign-ups from # particular email domains $c->{check_registration_email} = sub { my( $repository, $email ) = @_;
# registration allowed return 1 if $email =~ /\@westminster\.ac\.uk$/;
return 0; # registration denied }
Best,
Jose.
From:
eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Malcolm Bodger
Hi,
We use local accounts, not LDAP accounts, and would like to restrict requests for new accounts to users with a 'westminster.ac.uk' email address. I'm sure this possible, but how - and is it easy to do?
Regards, Malcolm. The University of Westminster is a charity and a company limited by guarantee. Registration number: 977818 England. Registered Office: 309 Regent Street, London W1B 2UW. The University of Westminster is a charity and a company limited by guarantee. Registration number: 977818 England. Registered Office: 309 Regent Street, London W1B 2UW. The University of Westminster is a charity and a company limited by guarantee. Registration number: 977818 England. Registered Office: 309 Regent Street, London W1B 2UW. |
- References:
- [EP-tech] restricting account creation
- From: Malcolm Bodger <M.Bodger@westminster.ac.uk>
- [EP-tech] Re: restricting account creation
- From: Jose Martin <J.Martin@ulcc.ac.uk>
- [EP-tech] Re: restricting account creation
- From: Malcolm Bodger <M.Bodger@westminster.ac.uk>
- [EP-tech] Re: restricting account creation
- From: Jose Martin <J.Martin@ulcc.ac.uk>
- [EP-tech] restricting account creation
- Prev by Date: [EP-tech] paracite
- Next by Date: [EP-tech] Re: Is eprints multitenant?
- Previous by thread: [EP-tech] Re: restricting account creation
- Next by thread: [EP-tech] Re: restricting account creation
- Index(es):