Index: nslcd/pam.c
===================================================================
--- nslcd/pam.c	(revision 1381)
+++ nslcd/pam.c	(working copy)
@@ -106,7 +106,7 @@
     if (entry==NULL)
     {
       log_log(LOG_WARNING,"\"%s\": user not found: %s",username,ldap_err2string(rc));
-      return rc;
+      return LDAP_NO_SUCH_OBJECT;
     }
     /* get the DN */
     myldap_cpy_dn(entry,userdn,userdnsz);