Hi Tyler,
how about a ldap always filter?
e. g.
[Kernel/Config.pm]
$Self->{CustomerUser} = {
Name => 'LDAP Backend',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
# ldap host
Host => 'bay.csuhayward.edu',
[...]
# in case you want to add always one filter to each ldap uery, use
# this option. e. g. AlwaysFilter => '(mail=*)' or AlwaysFilter => '(objectclass=user)'
AlwaysFilter => '(objectclass=user)',
[...]
[...]
I'm not sure if in AD the user object is also "user". I don't think so.
This should be the same. Each ldap query returns just user objects, no machines or groups.
-Martin
Tyler Hepworth wrote:
I submitted a patch that would supress the display of computer objects in the customer search list, but realized that the search list also displays group objects. So I revised the patch to exclude both computers and groups. This patch affects a different pm file (Kernel/System/CustomerUser/LDAP.pm), and handles both computers and groups. Please completely disregard the previous patch submitted.
Thanks,
Tyler Hepworth
------------------------------------------------------------------------
Index: Kernel/System/CustomerUser/LDAP.pm =================================================================== --- Kernel/System/CustomerUser/LDAP.pm (revision 15) +++ Kernel/System/CustomerUser/LDAP.pm (working copy) @@ -184,6 +184,7 @@ } my %Users = (); foreach my $entry ($Result->all_entries) { + next unless $entry->get_value('objectcategory') =~ /cn=person/i; my $CustomerString = ''; foreach (@{$Self->{CustomerUserMap}->{CustomerUserListFields}}) { my $Value = $Self->_Convert($entry->get_value($_));
------------------------------------------------------------------------
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
--
Martin Edenhofer
--
((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg
http://www.otrs.de/ :: Manage your communication!_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
