summaryrefslogtreecommitdiff
path: root/server/providers
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2009-02-12 18:17:59 -0500
committerSimo Sorce <idra@samba.org>2009-02-12 18:37:37 -0500
commit4be12198334828eabbe27e2136462d44c6380dbb (patch)
tree0f7b11e1e9bb41b76638bd515a51234ef8a4d261 /server/providers
parent659a34f2a1e635cad8dac26df7c51e6edaf2d094 (diff)
downloadsssd-4be12198334828eabbe27e2136462d44c6380dbb.tar.gz
sssd-4be12198334828eabbe27e2136462d44c6380dbb.tar.bz2
sssd-4be12198334828eabbe27e2136462d44c6380dbb.zip
- make all functions supposed to get input in posix format
use the same namespace (sysdb_posix_) - no need to explicitly start a transaction if only one operation is performed using a synchronous interface - split _add_remove_ functions into separate functions, don't let ldap madness creep into out interfaces
Diffstat (limited to 'server/providers')
-rw-r--r--server/providers/proxy.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/server/providers/proxy.c b/server/providers/proxy.c
index 04d4a58a..a9469219 100644
--- a/server/providers/proxy.c
+++ b/server/providers/proxy.c
@@ -70,13 +70,13 @@ static int get_pw_name(struct be_ctx *be_ctx, struct proxy_ctx *proxy_ctx, char
switch (status) {
case NSS_STATUS_NOTFOUND:
- ret = sysdb_remove_account_posix(be_ctx, be_ctx->sysdb,
- be_ctx->domain, name);
+ ret = sysdb_posix_remove_user(be_ctx, be_ctx->sysdb,
+ be_ctx->domain, name);
break;
case NSS_STATUS_SUCCESS:
- ret = sysdb_store_account_posix(be_ctx, be_ctx->sysdb, be_ctx->domain,
- result.pw_name, result.pw_passwd,
- result.pw_uid, result.pw_gid,
+ ret = sysdb_posix_store_user(be_ctx, be_ctx->sysdb, be_ctx->domain,
+ result.pw_name, result.pw_passwd,
+ result.pw_uid, result.pw_gid,
result.pw_gecos, result.pw_dir,
result.pw_shell);
break;
@@ -111,15 +111,15 @@ static int get_pw_uid(struct be_ctx *be_ctx, struct proxy_ctx *proxy_ctx, uid_t
switch (status) {
case NSS_STATUS_NOTFOUND:
- ret = sysdb_remove_account_posix_by_uid(be_ctx, be_ctx->sysdb,
- be_ctx->domain,uid);
+ ret = sysdb_posix_remove_user_by_uid(be_ctx, be_ctx->sysdb,
+ be_ctx->domain,uid);
break;
case NSS_STATUS_SUCCESS:
- ret = sysdb_store_account_posix(be_ctx, be_ctx->sysdb, be_ctx->domain,
- result.pw_name, result.pw_passwd,
- result.pw_uid, result.pw_gid,
- result.pw_gecos, result.pw_dir,
- result.pw_shell);
+ ret = sysdb_posix_store_user(be_ctx, be_ctx->sysdb, be_ctx->domain,
+ result.pw_name, result.pw_passwd,
+ result.pw_uid, result.pw_gid,
+ result.pw_gecos, result.pw_dir,
+ result.pw_shell);
break;
default:
DEBUG(2, ("proxy -> getpwuid_r failed for '%lu' (%d)[%s]\n",