Hey everyone,
As the title suggests, I'm trying to block the user from logging in, if he has no email associated in the Customer User information.
The Information is being mapped from the Active Directory and I don't have control over it. There are a few users that have all the information filled (Login, FirstName, LastName and customerID) but are lacking the email address and are able to login.
My question is, how do I block someone from logging in if the email is not present on the AD?
Also, I have a few user that have no email associated, but I need to create tickets in their name. They don't login on the platform using the Customer.pl portal so I have to be able to see those users, so the "AlwaysFilter=> (mail=*)" can't be used in this situation.
I'm using OTRS 6 with RHEL.
Thanks in advance.
[Solved] Disable Customer Login with no email associated
Moderator: crythias
-
- Znuny newbie
- Posts: 93
- Joined: 29 Jun 2018, 13:44
- Znuny Version: 6.x.x/7.0.x
- Real Name: Ruben Sardinha
[Solved] Disable Customer Login with no email associated
Last edited by chrotha on 10 Aug 2021, 10:43, edited 1 time in total.
-
- Administrator
- Posts: 3976
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Disable Customer Login with no email associated
Hi,
There's also an AlwaysFilter which only affects the authentication. Keep them in your CustomerUser configuration without this value and set the AlwaysFilter for the customer auth module to '(mail=*)'.
- Roy
There's also an AlwaysFilter which only affects the authentication. Keep them in your CustomerUser configuration without this value and set the AlwaysFilter for the customer auth module to '(mail=*)'.
Code: Select all
$Self->{'Customer::AuthModule::LDAP::AlwaysFilter'} = '';
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
-
- Znuny newbie
- Posts: 93
- Joined: 29 Jun 2018, 13:44
- Znuny Version: 6.x.x/7.0.x
- Real Name: Ruben Sardinha
Re: Disable Customer Login with no email associated
Hey Roy,
Thanks for the reply, it worked as intended.
Thanks for the reply, it worked as intended.