LDAP Exclude computers and groups

Moderator: crythias

Post Reply
peacefrog
Znuny newbie
Posts: 38
Joined: 10 Aug 2010, 14:37
Znuny Version: 2.4.7

LDAP Exclude computers and groups

Post by peacefrog »

I would like to exclude Computers, Groups, and any incorrect or temporary accounts from Customer LDAP Auth

I'm trying this command: #$Self->{'Customer::AuthModule::LDAP::AlwaysFilter'} = '()';

I've tried to put there AlwaysFilter => '(objectclass=user), AlwaysFilter => '(objectclass=computer), AlwaysFilter => '(objectcategory=CN=Person,CN=Schema,CN=Configuration,DC=Contoso,DC=ltd)

Still getting full list with computers, weird accounts, etc, whilst opening >Consumer users and searching using *

Can you help me with advice? AlwaysFilter being used for EXCLUDE "SOMETHING" from Auth LDAP? or INCLUDE?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: LDAP Exclude computers and groups

Post by jojo »

"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
fbobraga
Znuny newbie
Posts: 77
Joined: 15 Jul 2010, 20:04
Znuny Version: 2.4.7
Contact:

Re: LDAP Exclude computers and groups

Post by fbobraga »

Seems that you are using it in wrong place:
peacefrog wrote:I'm trying this command: #$Self->{'Customer::AuthModule::LDAP::AlwaysFilter'} = '()';
The place used in my Config.pm:
$Self->{CustomerUser} = {
Host => (...)
(...)
Params => {
(...)
AlwaysFilter => '(&(objectCategory=User)(objectClass=User))'
(...)
(Using my little perl knowledge, I think it corresponds to: $Self->{CustomerUser}->{Params}->{AlwaysFilter} = '(&(objectCategory=User)(objectClass=User))';)

see: http://forums.otrs.org/viewtopic.php?f=61&t=5805#p23775
Evaluation/pilot: OTRS 2.4.7 on Linux (CentOS 5.4) with MySQL database connected to an Active Directory for Agents and Customers.
peacefrog
Znuny newbie
Posts: 38
Joined: 10 Aug 2010, 14:37
Znuny Version: 2.4.7

Re: LDAP Exclude computers and groups

Post by peacefrog »

Thank you!
Post Reply