s4:winbind/wb_samba3_protocol.c - quiet enum warning
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Wed, 8 Jun 2011 16:57:00 +0000 (18:57 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Thu, 9 Jun 2011 08:53:36 +0000 (10:53 +0200)
Don't enumerate all unimplemented types of call which simply leads to
incompleteness.

Reviewed-by: Tridge
source4/winbind/wb_samba3_protocol.c

index 4bb0582cd22749c6fe1fbb54b816988a92f44bb9..95861d1fa433a5c296e25d50094595bc6d5f6697 100644 (file)
@@ -179,28 +179,9 @@ NTSTATUS wbsrv_samba3_handle_call(struct wbsrv_samba3_call *s3call)
                return wbsrv_samba3_pam_logoff(s3call);
 
        /* Unimplemented commands */
-       case WINBINDD_GETPWSID:
-       case WINBINDD_PAM_CHAUTHTOK:
-       case WINBINDD_PAM_CHNG_PSWD_AUTH_CRAP:
-       case WINBINDD_LOOKUPRIDS:
-       case WINBINDD_SIDS_TO_XIDS:
-       case WINBINDD_ALLOCATE_UID:
-       case WINBINDD_ALLOCATE_GID:
-       case WINBINDD_SHOW_SEQUENCE:
-       case WINBINDD_WINS_BYIP:
-       case WINBINDD_WINS_BYNAME:
-       case WINBINDD_GETGRLST:
-       case WINBINDD_GETSIDALIASES:
-       case WINBINDD_DSGETDCNAME:
-       case WINBINDD_INIT_CONNECTION:
-       case WINBINDD_DUAL_SIDS2XIDS:
-       case WINBINDD_DUAL_USERINFO:
-       case WINBINDD_DUAL_GETSIDALIASES:
-       case WINBINDD_DUAL_NDRCMD:
-       case WINBINDD_CCACHE_NTLMAUTH:
-       case WINBINDD_NUM_CMDS:
-               DEBUG(10, ("Unimplemented winbind samba3 request %d\n", 
-                          s3call->request->cmd));
+       default:
+               DEBUG(4, ("Unimplemented winbind samba3 request %d\n",
+                     s3call->request->cmd));
                break;
        }