From: janw Date: Wed, 24 Jun 2009 16:05:08 +0000 (+0000) Subject: Only try to set gotoLastSystem for users that have a gosaAccount. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ee462afcaca95b26c7cf7f5d6c6fdda854632076;p=gosa.git Only try to set gotoLastSystem for users that have a gosaAccount. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13790 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/server/events/clMessages.pm b/gosa-si/server/events/clMessages.pm index d4b0d2a4c..6c1e05460 100644 --- a/gosa-si/server/events/clMessages.pm +++ b/gosa-si/server/events/clMessages.pm @@ -329,7 +329,7 @@ sub set_last_system { my $ldap_mesg= $ldap_handle->search( base => $main::ldap_base, scope => 'sub', - filter => "uid=$user", + filter => "(&(objectClass=gosaAccount)(uid=$user))", ); # Sanity check of user search if ($ldap_mesg->count == 0) {