From 88f6f6db02c76f4f9d17cbd665b951cdccaaa39e Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 6 Mar 2009 08:46:03 -0500 Subject: 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(). --- server/db/sysdb.h | 2 +- server/db/sysdb_req.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'server/db') diff --git a/server/db/sysdb.h b/server/db/sysdb.h index c87b0b4e..f59b56c1 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 161431cc..15d8aa85 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) { -- cgit