summaryrefslogtreecommitdiffstats
path: root/server/db
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-03-06 08:46:03 -0500
committerSimo Sorce <ssorce@redhat.com>2009-03-06 12:36:53 -0500
commit88f6f6db02c76f4f9d17cbd665b951cdccaaa39e (patch)
tree2b2b7e654bb40a4bdce989c6dd76a54ec6a548a9 /server/db
parentbaa296befe5908dde17d6e907c0071c2f65a4a88 (diff)
downloadsssd-88f6f6db02c76f4f9d17cbd665b951cdccaaa39e.tar.gz
sssd-88f6f6db02c76f4f9d17cbd665b951cdccaaa39e.tar.xz
sssd-88f6f6db02c76f4f9d17cbd665b951cdccaaa39e.zip
Implement CreateUser in InfoPipe
Changed the order of the arguments to CreateUser in the Introspection XML to match the other functions (domain belongs second on the list) A few other minor fixes as well: Fixed a typo in SYSDB_GETCACHED_FILTER and sysdb_transaction_end(). Added missing error handling in infp_do_user_set_uid().
Diffstat (limited to 'server/db')
-rw-r--r--server/db/sysdb.h2
-rw-r--r--server/db/sysdb_req.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/db/sysdb.h b/server/db/sysdb.h
index c87b0b4..f59b56c 100644
--- a/server/db/sysdb.h
+++ b/server/db/sysdb.h
@@ -81,7 +81,7 @@
#define SYSDB_INITGR_LEGACY_FILTER "(&(objectclass="SYSDB_GROUP_CLASS")("SYSDB_LEGACY_MEMBER"=%s))"
-#define SYSDB_GETCACHED_FILTER "(&(objectclass="SYSDB_USER_CLASS")("SYSDB_USER_ATTR_LAST_LOGIN">=%llu))"
+#define SYSDB_GETCACHED_FILTER "(&(objectclass="SYSDB_USER_CLASS")("SYSDB_USER_ATTR_LAST_LOGIN">=%lu))"
#define SYSDB_PW_ATTRS {SYSDB_NAME, SYSDB_UIDNUM, \
SYSDB_GIDNUM, SYSDB_FULLNAME, \
diff --git a/server/db/sysdb_req.c b/server/db/sysdb_req.c
index 161431c..15d8aa8 100644
--- a/server/db/sysdb_req.c
+++ b/server/db/sysdb_req.c
@@ -174,7 +174,7 @@ static void sysdb_transaction_end(struct sysdb_req *req)
DEBUG(1, ("Failed to commit ldb transaction! (%d)\n", ret));
}
} else {
- DEBUG(4, ("Canceling transaction (%d[%s)\n",
+ DEBUG(4, ("Canceling transaction (%d[%s])\n",
req->status, strerror(req->status)));
ret = ldb_transaction_cancel(req->ctx->ldb);
if (ret != LDB_SUCCESS) {