Code

Only try to set gotoLastSystem for users that have a gosaAccount.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Jun 2009 16:05:08 +0000 (16:05 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Jun 2009 16:05:08 +0000 (16:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13790 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/server/events/clMessages.pm

index d4b0d2a4c74f7e7137dad4d77b78e6280698685c..6c1e0546003c00552f7cacaeac071b4fece9f073 100644 (file)
@@ -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) {