summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-10-05 14:22:00 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-10-08 19:26:55 -0400
commit57bd514e16e954c03bd32497b6b430142335761e (patch)
treedcd17a3f213771ce5b0e4a3056d618d0770caa41 /src/providers
parent8971b82a5acba9baf85230dbd13b07373904dca1 (diff)
downloadsssd-57bd514e16e954c03bd32497b6b430142335761e.tar.gz
sssd-57bd514e16e954c03bd32497b6b430142335761e.tar.xz
sssd-57bd514e16e954c03bd32497b6b430142335761e.zip
sysdb interface for adding expired user entries
Diffstat (limited to 'src/providers')
-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 330094f70..bb7c0ea78 100644
--- a/src/providers/ldap/ldap_id_cleanup.c
+++ b/src/providers/ldap/ldap_id_cleanup.c
@@ -413,7 +413,8 @@ static void cleanup_users_delete(struct tevent_req *req)
ret = cleanup_users_logged_in(state->uid_table, state->msgs[state->cur]);
if (ret == EOK) {
/* If the user is logged in, proceed to the next one */
- DEBUG(5, ("User %s is still logged in, keeping his data\n", name));
+ DEBUG(5, ("User %s is still logged in or a dummy entry, "
+ "keeping his data\n", name));
cleanup_users_next(req);
return;
} else if (ret != ENOENT) {
@@ -446,9 +447,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;