updated the 3.0 branch from the head branch - ready for alpha18
[nivanova/samba-autobuild/.git] / source3 / nsswitch / winbindd.c
index 91215e0ef7f417a80a6594125652c30d28fcc41b..358d9add3a388c10f3de544bcbfe8f3a8e946c2d 100644 (file)
@@ -223,6 +223,7 @@ static struct dispatch_table dispatch_table[] = {
        { WINBINDD_SETGRENT, winbindd_setgrent, "SETGRENT" },
        { WINBINDD_ENDGRENT, winbindd_endgrent, "ENDGRENT" },
        { WINBINDD_GETGRENT, winbindd_getgrent, "GETGRENT" },
+       { WINBINDD_GETGRLST, winbindd_getgrent, "GETGRLST" },
 
        /* PAM auth functions */
 
@@ -834,8 +835,6 @@ static void usage(void)
                exit(1);
        }
 
-       pidfile_create("winbindd");
-
        /* Setup names. */
 
        if (!*global_myname) {
@@ -849,8 +848,10 @@ static void usage(void)
 
         fstrcpy(global_myworkgroup, lp_workgroup());
 
-       if (!interactive)
+       if (!interactive) {
                become_daemon();
+               pidfile_create("winbindd");
+       }
 
 #if HAVE_SETPGID
        /*