spelling mistake, #ifdef'd out for non-developers (oops!)
[samba.git] / source3 / passdb / smbpass.c
index b1ca9ad0717c72f46088a0267e9aa108cfef9a18..2686f1d68fc47e1db662733e82a356f79ed7976c 100644 (file)
@@ -68,8 +68,11 @@ static BOOL setsmbfilepwpos(void *vp, SMB_BIG_UINT tok)
 
 /*************************************************************************
  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;
@@ -405,6 +408,11 @@ static BOOL mod_smbfilepwd_entry(struct smb_passwd* pwd, BOOL override)
   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;