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 - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-07-2023, 06:42 PM   #1
LQrt70973
LQ Newbie
 
Registered: Nov 2023
Location: French Guiana
Distribution: CentOS Linux 7 (Core)
Posts: 3

Rep: Reputation: 0
Question Samba 4.10.16 ERROR: Invalid idmap range for domain *! on CentOS Linux 7 (Core)


Hello,

I'm trying to get up and running a samba server as PDC but when I testparm my somb.conf it ends up with an error message saying ERROR: Invalid idmap range for domain *!

Here is the result of testparm :

---------------------------------------------------------------------
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
idmap range not specified for domain '*'
ERROR: Invalid idmap range for domain *!

Server role: ROLE_DOMAIN_PDC

Press enter to see a dump of your service definitions
---------------------------------------------------------------------

An hereafter is the dump of smb.conf services definition :

---------------------------------------------------------------------
# Global parameters
[global]
add machine script = /usr/sbin/useradd -d /dev/null -g 200 -s /sbin/nologin -M %u
domain logons = Yes
domain master = Yes
logon path = \\%L\Profiles\%U
logon script = logon.bat
preferred master = Yes
security = USER
server string = MyServerString (Samba %v)
workgroup = MyWorkgroup
idmap config * : backend = tdb


[homes]
comment = Home Directories
read only = No


[netlogon]
browseable = No
comment = Network Logon Service
path = /var/lib/samba/netlogon
read only = No


[Profiles]
create mask = 0755
path = /var/lib/samba/profiles
read only = No
---------------------------------------------------------------------

Has anyone experienced this ? Thank you for reading this post anyway !

Cheers
 
Old 11-18-2023, 10:58 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,347

Rep: Reputation: Disabled
You don't have an "idmap config * : range =" setting in your configuration file, and that's why you're getting the error message.
 
1 members found this post helpful.
Old 11-28-2023, 07:27 PM   #3
LQrt70973
LQ Newbie
 
Registered: Nov 2023
Location: French Guiana
Distribution: CentOS Linux 7 (Core)
Posts: 3

Original Poster
Rep: Reputation: 0
Question Samba 4.10.16 ERROR: Invalid idmap range for domain *! on CentOS Linux 7 (Core)

Quote:
Originally Posted by Ser Olmy View Post
You don't have an "idmap config * : range =" setting in your configuration file, and that's why you're getting the error message.
Hello Ser Olmy,

Thank you for this answer. Would you please explain what I should do with with this statement idmap config* :range =

What should the range be ? What for ? I have read on Samba Wiki that ID mapping is for reading account and group information from Active Directory, but I'm realy unexperienced with this.

Cheers
 
Old 11-28-2023, 08:36 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,347

Rep: Reputation: Disabled
idmap config settings control how Security Identifiers (SIDs) identifying Windows accounts (users, groups, and computers) are mapped to UIDs and GIDs on various Unix-like platforms. I'd direct you to the "Identity Mapping" chapter of the official Samba documentation, but it's horribly outdated and quite confusing.

The specific setting idmap config * : range = <low> - <high> specifies how users that are not specific to a Windows domain are mapped; the "*" means "all accounts not covered by other idmap config statements."

Turns out having this in smb.conf is very important, as all the Windows "builtin" accounts and groups use this setting. I believe it is also used for some objects that cannot be statically mapped to regular UIDs (like some special-purpose Windows groups that act as user accounts in some contexts).

The <low> and <high> numbers simply refer to a range of otherwise unused UIDs/GIDs on the Linux server running Samba. It's important that none of these IDs be assigned to a local account or group, ever.
 
1 members found this post helpful.
Old 11-30-2023, 05:07 PM   #5
LQrt70973
LQ Newbie
 
Registered: Nov 2023
Location: French Guiana
Distribution: CentOS Linux 7 (Core)
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you Ser Olmy,

So I have set idmap config * : range = 3000-7999
I have checked beforehand that no user ID is in this range. And my testparm ends with no error.
So I'll mark this as solved.

But, still, I need to open another question since now my concern is have a windows 8.1 workstation join my domain, and at this time, it is still not able to do so.

Cheers
 
  


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 4.4.16: the 'idmap uid | gid | backend' option is deprecated. It's a problem? How do I fix it? cesarsj Linux - Software 4 05-28-2020 04:45 PM
OpenLDAP and Samba IDMAP Cottsay Linux - Software 2 08-01-2008 10:37 AM
NFSv4 idmap returns "nobody" - idmap daemons running utahnix Linux - Networking 0 12-09-2007 12:32 AM
winbindd idmap range missing error kcv Linux - Networking 0 08-23-2005 04:10 PM
winbind idmap failure c0m4 Linux - Software 0 05-27-2005 01:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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