Zentyal Forum, Linux Small Business Server

Zentyal Server => Directory and Authentication => Topic started by: Jools on May 21, 2016, 11:40:16 am

Title: The group Domain Users has not gidNumber set. Get method returned 'undef'.
Post by: Jools on May 21, 2016, 11:40:16 am
Hi All,

As you can see from the title, the return of an old error.  Problem is, I can't take the box down and re-install easily as it's a long way away.

In the syslog I have the following error:

May 21 10:34:54 server01 kernel: [56487.119187] init: zentyal.set-uid-gid-numbers main process (31310) terminated with status 255
May 21 10:34:54 server01 kernel: [56487.119196] init: zentyal.set-uid-gid-numbers main process ended, respawning


While the reported error is as the subject.  The Domain Users group doesn't appear in the user/group manager but if you try to create it, it says it already exists.

Zentyal is v4.2 and as the staff turnover isn't very high, this is the first time I've created a new user since v3.5 so the problem may have been around since then.

Any help appreciated.

Title: Re: The group Domain Users has not gidNumber set. Get method returned 'undef'.
Post by: techiem2 on August 08, 2016, 03:26:56 am
I'm having the same issue.
Tonight I found this migration document on the wiki:
https://wiki.zentyal.org/wiki/Migration_from_3.0_to_3.5/4.0_version,_Multiple_Domain_Controllers

It mentions that the group ids and such were previously in LDAP rather than SAMBA, and gives a script to fix it.
However, the script is hosted on people.zentyal.org, which appears to no longer exist.

Does anyone have this script or have an alternate link?
Title: Re: The group Domain Users has not gidNumber set. Get method returned 'undef'.
Post by: techiem2 on August 08, 2016, 03:40:43 am
After some more searching I found another page on the wiki with the actual file.
https://wiki.zentyal.org/wiki/File:Fix_3.0-3.5_samba_upgrade.pl

However, when I run it I get:
Could not get ticket: could not acquire credentials using an initial credentials context: No ENC-TS found

Title: Re: The group Domain Users has not gidNumber set. Get method returned 'undef'.
Post by: techiem2 on August 08, 2016, 03:44:44 am
Got it!
I found this post: https://forum.zentyal.org/index.php?topic=24210.0

Run this:
samba-tool user setexpiry administrator --noexpiry

And then run (after you've downloaded it from the wiki link above):
perl Fix_3.0-3.5_samba_upgrade.pl