|
@@ -37,6 +37,7 @@ public:
|
|
|
|
|
|
virtual void getNavigationData(IEspContext &context, IPropertyTree & data)
|
|
|
{
|
|
|
+#ifdef _USE_OPENLDAP
|
|
|
bool isFF = false;
|
|
|
StringBuffer browserUserAgent;
|
|
|
context.getUseragent(browserUserAgent);
|
|
@@ -64,8 +65,10 @@ public:
|
|
|
ensureNavLink(*folder, "Relogin", "/Ws_Access/FirefoxNotSupport?form_", "Relogin", NULL, NULL, 0, true);//Force the menu to use this setting
|
|
|
ensureNavLink(*folder, "Who Am I", "/Ws_Account/WhoAmI", "WhoAmI", NULL, NULL, 0, true);//Force the menu to use this setting
|
|
|
}
|
|
|
+#endif
|
|
|
}
|
|
|
|
|
|
+#ifdef _USE_OPENLDAP
|
|
|
int onGetInstantQuery(IEspContext &context, CHttpRequest* request, CHttpResponse* response, const char *service, const char *method)
|
|
|
{
|
|
|
if(!stricmp(method, "LogoutUser")||!stricmp(method, "LogoutUserRequest"))
|
|
@@ -138,6 +141,7 @@ public:
|
|
|
else
|
|
|
return Cws_accountSoapBinding::onGetInstantQuery(context, request, response, service, method);
|
|
|
}
|
|
|
+#endif
|
|
|
};
|
|
|
|
|
|
class Cws_accountEx : public Cws_account
|
|
@@ -147,9 +151,15 @@ public:
|
|
|
|
|
|
virtual void init(IPropertyTree *cfg, const char *process, const char *service);
|
|
|
|
|
|
+#ifdef _USE_OPENLDAP
|
|
|
virtual bool onUpdateUser(IEspContext &context, IEspUpdateUserRequest &req, IEspUpdateUserResponse &resp);
|
|
|
virtual bool onUpdateUserInput(IEspContext &context, IEspUpdateUserInputRequest &req, IEspUpdateUserInputResponse &resp);
|
|
|
virtual bool onWhoAmI(IEspContext &context, IEspWhoAmIRequest &req, IEspWhoAmIResponse &resp);
|
|
|
+#else
|
|
|
+ virtual bool onUpdateUser(IEspContext &context, IEspUpdateUserRequest &req, IEspUpdateUserResponse &resp) {return true;};
|
|
|
+ virtual bool onUpdateUserInput(IEspContext &context, IEspUpdateUserInputRequest &req, IEspUpdateUserInputResponse &resp) {return true;};
|
|
|
+ virtual bool onWhoAmI(IEspContext &context, IEspWhoAmIRequest &req, IEspWhoAmIResponse &resp) {return true;};
|
|
|
+#endif
|
|
|
virtual bool onVerifyUser(IEspContext &context, IEspVerifyUserRequest &req, IEspVerifyUserResponse &resp);
|
|
|
};
|
|
|
|