Summary
How to customize vendor daemon to deny checkout requests based on client-side settings like LM_PROJECT?
Synopsis
In order to deny checkout requests based on client-side settings, a server-side checkout filter can be created by implementing the ls_outfilter() callback in machind/lsvendor.c.
Discussion
For example, if checkout requests need to be denied when LM_PROJECT is not set on client side, the ls_outfilter() callback may be implemented as follows.
#include "ls_attr.h"
#include "lsserver.h"
int Is_LM_PROJECT_set()
{
CLIENT_DATA *cdata = NULL;
ls_get_attr(LS_ATTR_CLIENT, (char**)&cdata);
printf("LM_PROJECT =%s=\n", cdata->project);
if (cdata->project && cdata->project[0])
return 1;
else {
lc_set_errno(lm_job, LM_CHECKOUTFILTERED);
return 0;
}
}
int (*ls_outfilter)() = Is_LM_PROJECT_set; // 0;
Please refer Programming Reference for License File Based Licensing for more information.
Related Articles
Customize the vendor daemon restart tries by lmadmin 7Number of Views How Can I Access The License File Location Passed To The Vendor Daemon From The Vendor Daemon Code? 8Number of Views Building a Common Vendor Daemon with a TRL Vendor Key for Primary Daemon and non-TRL Vendor Keys for Secondary Daemons 17Number of Views How to Get the Startup Time of The Vendor Daemon 7Number of Views Vendor Daemon Died with Status 1 11Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago