summaryrefslogtreecommitdiff
path: root/source3/passdb/smbpass.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/passdb/smbpass.c')
-rw-r--r--source3/passdb/smbpass.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/passdb/smbpass.c b/source3/passdb/smbpass.c
index 085ece0f5e..eefc30382b 100644
--- a/source3/passdb/smbpass.c
+++ b/source3/passdb/smbpass.c
@@ -328,7 +328,12 @@ static struct sam_passwd *getsmbfile21pwent(void *vp)
if (pw_buf == NULL) return NULL;
pwfile = getpwnam(pw_buf->smb_name);
- if (pwfile == NULL) return NULL;
+ if (pwfile == NULL)
+ {
+ DEBUG(0,"getsmbfile21pwent: smbpasswd database is corrupt!\n"));
+ DEBUG(0,"getsmbfile21pwent: username %s not in unix passwd database!\n", pw_buf->smb_name));
+ return NULL;
+ }
pdb_init_sam(&user);