summaryrefslogtreecommitdiff
path: root/server/infopipe
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2009-05-26 14:37:46 +0200
committerSimo Sorce <ssorce@redhat.com>2009-05-26 11:30:04 -0400
commit1eca703ca65ad74673fd20ee97bb8d6e538f0085 (patch)
treea0b8897a56296e1ecd3110351a6d27178e6581f7 /server/infopipe
parentee2f522ebd4ded82f5ce46ff27a66a14cfce8274 (diff)
downloadsssd-1eca703ca65ad74673fd20ee97bb8d6e538f0085.tar.gz
sssd-1eca703ca65ad74673fd20ee97bb8d6e538f0085.tar.bz2
sssd-1eca703ca65ad74673fd20ee97bb8d6e538f0085.zip
Do not fire up backend search when the data provider is local
Diffstat (limited to 'server/infopipe')
-rw-r--r--server/infopipe/infopipe_users.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/infopipe/infopipe_users.c b/server/infopipe/infopipe_users.c
index ee513712..8973c18f 100644
--- a/server/infopipe/infopipe_users.c
+++ b/server/infopipe/infopipe_users.c
@@ -28,6 +28,7 @@
#include "infopipe/infopipe_private.h"
#include "infopipe/sysbus.h"
#include "db/sysdb.h"
+#include "responder/common/responder.h"
static int attr_comparator(const void *key1, const void *key2);
static int username_comparator(const void *key1, const void *key2);
@@ -1213,9 +1214,8 @@ int infp_users_get_attr(DBusMessage *message, struct sbus_conn_ctx *sconn)
infp_getattr_req->infp_req->domain =
infp_get_domain_obj(infp_getattr_req->infp_req->infp, domain);
- if (infp_getattr_req->infp_req->domain->provider) {
- infp_getattr_req->check_provider = true;
- }
+ infp_getattr_req->check_provider =
+ NEED_CHECK_PROVIDER(infp_getattr_req->infp_req->domain->provider);
/* Copy the username list */
infp_getattr_req->usernames = talloc_array(infp_getattr_req, char *, username_count);