LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-10-2021, 08:03 AM   #1
mileto
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Rep: Reputation: 0
Backend for SAMBA File Server


Hello,
I would like to choose the best backend for SAMBA File Server that should work using Microsoft Active Directory Domain permissions and users (no workgroup).
I think autorid should be better then using AD attributes like groupID (posix) because with posix attributes I need to deal directly with Active Directory.

idmap config * : backend = autorid

Is it a good choice?

Regards,
Mileto
 
Old 03-10-2021, 08:47 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,989

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
that depends on a lot of things, so most probably only you know the answer.
 
Old 03-11-2021, 05:12 PM   #3
redd9
Member
 
Registered: Nov 2013
Location: Canada
Distribution: RHEL, Ubuntu
Posts: 212
Blog Entries: 1

Rep: Reputation: 82
What doesn't tdbsam do that you require? You didn't provide many details.
 
Old 03-17-2021, 09:10 AM   #4
HTop
Member
 
Registered: Mar 2019
Posts: 44

Rep: Reputation: Disabled
The autorid back end works similar to the rid ID mapping back end, but can automatically assign IDs for different domains.
This enables you to use the autorid back end: for the * default domain and additional domains, without the need to create ID mapping configurations for each of the additional domains.
Of course, you can choose the backend you prefer eg. enable it only for specific domains.
The major drawback of autorid is that user and group IDs are not equal across Samba domain members.
I think it is the best solution if you don't manage the active directory to use autorid or rid.
On the other hand, you could use AD ID mapping (based on RFC 2307) but this uses the parameters that are specific to the active directory. Such values for the RFC2307 attributes are not created automatically, they must be added manually.
I suggest to you to read somethin about on SambaWiki
https://wiki.samba.org/index.php/Idmap_config_ad
https://wiki.samba.org/index.php/Idmap_config_autorid
you can find an example of configuration (taken from here):

[global]
bind interfaces only = Yes
interfaces = lo ens192
kerberos method = secrets and keytab
realm = MYDOMAIN.COM
security = ADS
template homedir = /home/%U@%D
template shell = /bin/bash
username map = /etc/samba/user.map
winbind refresh tickets = Yes
workgroup = MYDOMAIN
idmap config mydomain : backend = autorid
idmap config mydomain : range = 2000000-2999999
idmap config * : range = 10000-999999
idmap config * : backend = autorid
include = /etc/samba/shares.conf
map acl inherit = Yes

ens192 is your network card name, replace it with yours.
/etc/samba/user.map is a file which contains linux user to map with active directory, for example not mapping root as mydomain\administrator
/etc/samba/shares.conf file contains share definition and options
 
  


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
Brother HL-2240-R Stopped - Backend /usr/lib/cups/backend/usb does not exist! jet222jet Linux - Hardware 2 12-28-2020 06:32 PM
Authenticating to Samba with Fedora Directory Server backend rogalewski Linux - Server 2 02-25-2009 11:28 AM
LXer: Ubuntu 7.10 (Gutsy Gibbon) Samba Standalone Server With tdbsam Backend LXer Syndicated Linux News 0 11-13-2007 05:11 AM
Turn KnoppMyth backend/frontend into backend only nebbus Linux - General 0 09-09-2007 01:57 AM
LXer: Debian 4.0 (Etch) Samba Standalone Server With tdbsam Backend LXer Syndicated Linux News 0 04-22-2007 03:46 AM

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

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