Koozali.org: home of the SME Server

Contribs.org Forums => Koozali SME Server 10.x => Topic started by: john56 on May 08, 2023, 08:31:30 PM

Title: issue with testparm
Post by: john56 on May 08, 2023, 08:31:30 PM
Hi,
i have this problem with tesparm

Quote
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

I have no idea of the origin of the issue.

Thanks for your help.
Title: Re: issue with testparm
Post by: ReetP on May 08, 2023, 11:31:01 PM
Please stick to one post - I  sure this is related to your later post.

This refers.

https://forums.koozali.org/index.php/topic,54995.0.html
Title: Re: issue with testparm
Post by: john56 on June 01, 2023, 11:29:49 PM
Hi, i still have the issue. any help would be appreciate. Thanks.
Title: Re: issue with testparm
Post by: ReetP on June 02, 2023, 09:07:16 AM
A bit of reading (like I have just done) will take you here.

https://linux.samba.narkive.com/lciVqqkN/samba-error-invalid-idmap-range-for-domain

And here (which I actually found first)

https://bugzilla.samba.org/show_bug.cgi?id=12629

It's a samba bug with testparm.

At a guess Redhat - who CentOS build from - never backported it to EL7.

Remember RH build Samba without AD and a few other oddities so it isn't a 'pure Samba' build and they may have missed or excluded this patch.

May be more on RH or CentOS sites.

Unless your system has errors - or you feel like compiling yourself with the patch - you can ignore this.

Title: Re: issue with testparm
Post by: Sparkey on June 02, 2023, 11:22:30 PM
"testparm" is not made for Samba in AD DC mode. "samba-tool testparm" is what needs to be called on AD DCs

https://bugzilla.samba.org/show_bug.cgi?id=12629
Title: Re: issue with testparm
Post by: ReetP on June 03, 2023, 12:04:55 PM
"testparm" is not made for Samba in AD DC mode. "samba-tool testparm" is what needs to be called on AD DCs

https://bugzilla.samba.org/show_bug.cgi?id=12629


SME is not in AD mode. RH version does not have it.

But see c3, and c7.

https://bugzilla.samba.org/show_bug.cgi?id=12629#c3

Quote
I think a check is also needed, if the server role is ROLE_DOMAIN_PDC

testparm as used on SME seems to have this bug but not fixed by RH.