Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 12:46 PM   #1
Senior Member
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 1,473

Rep: Reputation: 122Reputation: 122
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, 03:18 AM   #2
Senior Member
Registered: Apr 2010
Posts: 1,525

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

Original Poster
Rep: Reputation: 122Reputation: 122
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 05:50 AM
[SOLVED] winbind error after reboot on proxy squid with ntlm_auth *CiScO* Debian 2 10-18-2010 12:55 PM
Squid, Winbindd NTLM_AUTH failover when PDC down razza Linux - Server 0 11-16-2008 06:52 PM
ntlm_auth command line usage satishssquid LQ Articles Discussion 3 07-17-2007 08:42 AM
Reinstall /usr/bin/ntlm_auth jocast Linux - Software 0 03-07-2006 05:19 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:43 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