Software Development Kit (SDK) and API Discussions

Windows domain user Impersonation from ONTAPI



I am trying to connect to NetApp using following code

server = na_server_open(computer.c_str(), 1, 15);

na_server_style(server, NA_STYLE_LOGIN_PASSWORD);

na_server_adminuser(server, username, password);

here username is nothing but a domain user. which is of form DOMAIN\Username.

The computer from which i am executing this code , is using the same login which i have used in the code.

Can I anyhow Impersonate the domain user ?? so that i wont need to supply password through my code.



You have to make sure the user have appropriate API privileges on netapp.

"useradmin" command will help you to list those privileges. and you can test

it with "apitest" tool to verify the user account privilege.

Register for Insight 2021 Digital

INSIGHT 2021 Digital: Meet the Specialists 2

On October 20-22, gear up for a fully digital, totally immersive virtual experience with a downright legendary lineup of world-renowned specialists. Tune in for visionary conversations, solution deep dives, technical sessions and more.

NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner