I have it set up so only customers in a particular Active Directory group can authenticate to the customer portal and that works fine. However, I see many system accounts and groups as well as student accounts that I dont want to be shown when creating a new ticket.
Im looking for a help to accomplish the following....
Only show customers that:
objectClass = person
AND
have an email address
AND
username/email begins with a letter [a-z]
The valid email requirement will filter out systems accounts. All of our user accounts have their email address configured in the object. And all of our student accounts start with a number so that will leave only valid staff.
I appreciate any help.
LDAP Filter for Customers
Moderator: crythias
-
- Znuny newbie
- Posts: 7
- Joined: 27 Feb 2012, 23:59
- Znuny Version: 31111
-
- Znuny ninja
- Posts: 1029
- Joined: 13 Apr 2009, 12:26
- Znuny Version: 6.0.13
- Real Name: Wolfgang Fürtbauer
- Company: PBS Logitek GmbH
- Location: Pinsdorf
Re: LDAP Filter for Customers
first part is easy but LDAP does not support regexp queries like [a-z]
something like
something like
Code: Select all
(&(objectclass=person)(mail=*)(|(uid~=a*)(mail~=a*))
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
-
- Znuny newbie
- Posts: 7
- Joined: 27 Feb 2012, 23:59
- Znuny Version: 31111
Re: LDAP Filter for Customers
Thanks Wolfgang, Ill try that out.
For the last part. If we cant do regexp, do you know if its possible to have multiple BaseDN items configured? That way I could only enter the DNs of faculty.
Thanks.
For the last part. If we cant do regexp, do you know if its possible to have multiple BaseDN items configured? That way I could only enter the DNs of faculty.
Thanks.