Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 12-06-2017, 11:46 AM   #1
Senior Member
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 1,310

Rep: Reputation: 119Reputation: 119
Is there an ntlm_auth API?

I can authenticate Active Directory credentials with
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
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.
Old 12-11-2017, 02:18 AM   #2
Senior Member
Registered: Apr 2010
Posts: 1,419

Rep: Reputation: 252Reputation: 252Reputation: 252
What's wrong with Samba?
Old 12-11-2017, 02:31 PM   #3
Senior Member
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 1,310

Original Poster
Rep: Reputation: 119Reputation: 119
Originally Posted by JJJCR View Post
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.


api, ntlm

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQUID 3.x : ntlm_smb_lm_auth( cant see ntlm_auth) micro_xii Linux - Newbie 0 11-26-2011 04:50 AM
[SOLVED] winbind error after reboot on proxy squid with ntlm_auth *CiScO* Debian 2 10-18-2010 11:55 AM
Squid, Winbindd NTLM_AUTH failover when PDC down razza Linux - Server 0 11-16-2008 05:52 PM
ntlm_auth command line usage satishssquid LQ Articles Discussion 3 07-17-2007 07:42 AM
Reinstall /usr/bin/ntlm_auth jocast Linux - Software 0 03-07-2006 04:19 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:23 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration