I can authenticate Active Directory credentials with
Code:
ntlm_auth --username=user --password=password
Is there an api function I can use from C to do this? My less attractive alternative is the have the C program create a command string as
Code:
CMD: /usr/bin/ntlm_auth --username="%s" --password='%s' 2>&1 > /dev/null
Then call system(commandString);
That's not terrible, but I'm wondering if there is a library function to do this more elegantly.