Hi,
i want to write one application which will read some configuration commands from file and execute them.
from user guide i figured out that we can use. maapi_load_config() api for this, in order to use this i need to perform below steps from my application.
- maapi_connect()
- maapi_authenticate2 because im using external authentication.
- maaapi_start_user_session. with context as cli/system/non-system.
but the problem here is even though maapi_start_Seession() is returning confd_ok im getting a NULL value for getenv(“CONFD_MAAPI_USID”) and getenv(“CONFD_MAAPI_THANDLE”)
i need thandle for maapi_load_config() api.
please suggest im missing out something here.
thanks