/*************************************************************************
Routine to return the next entry in the smbpasswd list.
+
+ this function is non-static as it is called (exclusively and only)
+ from getsamfile21pwent().
*************************************************************************/
-static struct smb_passwd *getsmbfilepwent(void *vp)
+struct smb_passwd *getsmbfilepwent(void *vp)
{
/* Static buffers we will return. */
static struct smb_passwd pw_buf;
int wr_len;
int fd;
+#ifdef DEBUG_PASSWORD
+ DEBUG(100,("mod_smbfilepwd_entry: password entries\n"));
+ dump_data(100, pwd->smb_passwd, 16);
+ dump_data(100, pwd->smb_nt_passwd, 16);
+#endif
if (!*pfile) {
DEBUG(0, ("No SMB password file set\n"));
return False;