Koozali.org: home of the SME Server

issue with testparm

Offline john56

  • ***
  • 143
  • +0/-0
issue with testparm
« 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.

Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: issue with testparm
« Reply #1 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
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline john56

  • ***
  • 143
  • +0/-0
Re: issue with testparm
« Reply #2 on: June 01, 2023, 11:29:49 PM »
Hi, i still have the issue. any help would be appreciate. Thanks.

Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: issue with testparm
« Reply #3 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.

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Sparkey

  • *
  • 24
  • +0/-0
Re: issue with testparm
« Reply #4 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

Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: issue with testparm
« Reply #5 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.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation