r13771: BUG 3534: ignore lines in the username map file with no right hand list rathe...
authorGerald Carter <jerry@samba.org>
Wed, 1 Mar 2006 15:11:56 +0000 (15:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:10:53 +0000 (11:10 -0500)
source/smbd/map_username.c

index a6025fcf47f8f24f40fed3c5acc28434d87347ab..1f523cc89f16702c39f99992283cac20f6de531f 100644 (file)
@@ -142,10 +142,12 @@ BOOL map_username(fstring user)
                        }
                }
 
+               /* skip lines like 'user = ' */
+
                dosuserlist = str_list_make(dosname, NULL);
                if (!dosuserlist) {
-                       DEBUG(0,("Unable to build user list\n"));
-                       return False;
+                       DEBUG(0,("Bad username map entry.  Unable to build user list.  Ignoring.\n"));
+                       continue;
                }
 
                if (strchr_m(dosname,'*') ||