summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/ldap_id_cleanup.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-09-29 22:15:39 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-10-15 09:03:07 -0400
commitc1d525a90f06a9414d0788857b271b80625a5858 (patch)
tree82144584d74a7939e801a3fefdf9432c1afd10ad /src/providers/ldap/ldap_id_cleanup.c
parent3dd54ad87fd6a2bc8f646cd93be0329647e96f0e (diff)
downloadsssd-c1d525a90f06a9414d0788857b271b80625a5858.tar.gz
sssd-c1d525a90f06a9414d0788857b271b80625a5858.tar.xz
sssd-c1d525a90f06a9414d0788857b271b80625a5858.zip
sysdb interface for adding fake users
Diffstat (limited to 'src/providers/ldap/ldap_id_cleanup.c')
-rw-r--r--src/providers/ldap/ldap_id_cleanup.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/providers/ldap/ldap_id_cleanup.c b/src/providers/ldap/ldap_id_cleanup.c
index 60bc171cb..6357708a1 100644
--- a/src/providers/ldap/ldap_id_cleanup.c
+++ b/src/providers/ldap/ldap_id_cleanup.c
@@ -306,7 +306,8 @@ static int cleanup_users(TALLOC_CTX *memctx, struct sdap_id_ctx *ctx)
ret = cleanup_users_logged_in(uid_table, msgs[i]);
if (ret == EOK) {
/* If the user is logged in, proceed to the next one */
- DEBUG(5, ("User %s is still logged in, keeping data\n", name));
+ DEBUG(5, ("User %s is still logged in or a dummy entry, "
+ "keeping data\n", name));
continue;
} else if (ret != ENOENT) {
goto done;
@@ -337,9 +338,9 @@ static int cleanup_users_logged_in(hash_table_t *table,
uid = ldb_msg_find_attr_as_uint64(msg,
SYSDB_UIDNUM, 0);
if (!uid) {
- DEBUG(2, ("Entry %s has no UID Attribute ?!?\n",
+ DEBUG(2, ("Entry %s has no UID Attribute, fake user perhaps?\n",
ldb_dn_get_linearized(msg->dn)));
- return EFAULT;
+ return ENOENT;
}
key.type = HASH_KEY_ULONG;