LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-03-2014, 04:42 PM   #1
Iamsauce4
LQ Newbie
 
Registered: Jun 2013
Posts: 4

Rep: Reputation: Disabled
Samba security = user AND ads?


TLDR; can I add "security = user, ads" to smb.conf for domain and local SMB authentication? Is domain authentication safe in a DMZ?

We've just replaced an FTP server with an SFTP server in our DMZ and it's been working great. Our developers access the upload directories with SMB to ingest into our news feeds.

Now the developers need this SMB share to authenticate to Active Directory for some of their scripts, but I don't want to break the shares I've already got working. Can I add "security = user, ads" to smb.conf? If a domain lookup fails, will it failover to the local smb user database? Also, is it safe to have hashed domain usernames and passwords in an Ubuntu server in the DMZ?

Thanks for any insight you can provide.
 
Old 02-03-2014, 05:04 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,341

Rep: Reputation: Disabled
No, you can not specify multiple security modes; it's either "user" (local user database) or "ads" (AD authentication).

"security = ads" means you don't store hashed passwords on the Samba server at all, as all authentication is done via Kerberos against an AD domain controller. The only account an intruder would immediately be able to access, is the AD computer account for the Samba server itself.

Whether it's "safe" or not to store hashed data on a server in a DMZ would depend on a number of factors, such as:
  • the quality of the hash algorithm
  • whether the hashes are salted
  • how well the hashed passwords can withstand a dictionary attack
  • what (if anything) such a hash can be used for (some broken and deprecated MS authentication algorithms make it possible to authenticate using only the hash)
  • and of course, how difficult it is to compromise the server and how long it would take you to notice that a break-in had taken place

Last edited by Ser Olmy; 02-03-2014 at 05:05 PM.
 
Old 02-04-2014, 10:25 AM   #3
Iamsauce4
LQ Newbie
 
Registered: Jun 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank for for the insight! I'll schedule a maintenance and connect this to our active directory environment as soon as I get a chance.
 
  


Reply



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
samba ROLE_DOMAIN_MEMBER security ads winterMB Linux - Server 1 10-21-2010 08:50 AM
Samba with dual security, ADS and user as backup murmel Linux - Software 0 08-26-2009 06:27 PM
Samba with security=ADS is getting me stupid PittyB Linux - Server 1 02-06-2009 12:54 AM
Samba with security=ADS is getting me stupid PittyB Linux - Networking 1 02-05-2009 03:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:43 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
Open Source Consulting | Domain Registration