LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 11:46 AM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
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, 02:18 AM   #2
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,149

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

Original Poster
Rep: Reputation: 177Reputation: 177
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



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

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

All times are GMT -5. The time now is 05:58 AM.

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
Open Source Consulting | Domain Registration