LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Is there an ntlm_auth API? (https://www.linuxquestions.org/questions/linux-security-4/is-there-an-ntlm_auth-api-4175619082/)

mfoley 12-06-2017 11:46 AM

Is there an ntlm_auth API?
 
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.

JJJCR 12-11-2017 02:18 AM

What's wrong with Samba?

mfoley 12-11-2017 02:31 PM

Quote:

Originally Posted by JJJCR (Post 5791747)
What's wrong with Samba?

You'll need to elaborate a bit. What do you mean? Perhaps I'm not being clear. I'd like to have a function callable from C.


All times are GMT -5. The time now is 12:00 PM.