LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-06-2017, 12:46 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Posts: 1,166

Rep: Reputation: 106Reputation: 106
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.
 
Old 12-11-2017, 03:18 AM   #2
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,375

Rep: Reputation: 240Reputation: 240Reputation: 240
What's wrong with Samba?
 
Old 12-11-2017, 03:31 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Posts: 1,166

Original Poster
Rep: Reputation: 106Reputation: 106
Quote:
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.
 
  


Reply

Tags
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:05 PM.

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