[SOLVED] Samba 4.10.16 ERROR: Invalid idmap range for domain *! on CentOS Linux 7 (Core)
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 :
Samba 4.10.16 ERROR: Invalid idmap range for domain *! on CentOS Linux 7 (Core)
Quote:
Originally Posted by Ser Olmy
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.