summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-10-15 21:28:04 +0000
committerLuke Leighton <lkcl@samba.org>1998-10-15 21:28:04 +0000
commit0d5ff90bffe1a5d2bf03412ef0bd12996cbc2f09 (patch)
tree2d2d6b3bbc69922c219fe9b439625a4c5ebbf797 /source3/passdb
parent1cf3444105558f2c55b0c89e725aeb88a0e8add8 (diff)
downloadsamba-0d5ff90bffe1a5d2bf03412ef0bd12996cbc2f09.tar.gz
samba-0d5ff90bffe1a5d2bf03412ef0bd12996cbc2f09.tar.bz2
samba-0d5ff90bffe1a5d2bf03412ef0bd12996cbc2f09.zip
getpwnam() failing is a serious error (corrupt smbpasswd database)
(This used to be commit 18e628ac1516cbd9773608cb5a9f4b784cf4dd9e)
Diffstat (limited to 'source3/passdb')
-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);