netipmid: Make pam_auth configurable

Allow people to disable pam_authenticate if it is not working for their
system.

Tested:
Testing on a system with no dropbear and was able to pass the check.

Change-Id: I932830cd518b7f8ef6c828405b4959a8d14b1b58
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/command/rakp12.cpp b/command/rakp12.cpp
index c72611e..bcdcc35 100644
--- a/command/rakp12.cpp
+++ b/command/rakp12.cpp
@@ -1,3 +1,5 @@
+#include "config.h"
+
 #include "rakp12.hpp"
 
 #include "comm_module.hpp"
@@ -204,6 +206,7 @@
         logInvalidLoginRedfishEvent(message);
         return outPayload;
     }
+#ifdef PAM_AUTHENTICATE
     // Check whether user is already locked for failed attempts
     if (!ipmi::ipmiUserPamAuthenticate(userName, passwd))
     {
@@ -216,6 +219,7 @@
         logInvalidLoginRedfishEvent(message);
         return outPayload;
     }
+#endif
 
     uint8_t chNum = static_cast<uint8_t>(getInterfaceIndex());
     // Get channel based access information