Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: B0UJI on October 17, 2012, 03:39:44 am

Title: Setting Up Group Policy
Post by: B0UJI on October 17, 2012, 03:39:44 am
Hey all, has anyone had any luck setting up group policy through Microsoft Server Management tools?

When i use the Group Policy Management tool and try to either edit the Default Domain Policy or Create a new policy on an OU, I get the attached error saying Acces Denied.  The user i'm doing it with is definitely a domain administrator.

Has anyone seen this?
Title: Re: Setting Up Group Policy
Post by: Krisztián Czakó on October 17, 2012, 10:47:50 am
Hi,

Yes, it works.

I've done the following:
I hope it helps you.
Regards,
Krisztián

Title: Re: Setting Up Group Policy
Post by: B0UJI on October 18, 2012, 05:43:25 am
Thanks for your reply.

I get the same issue if it's a user who is part of the "Domain Admins" but I've noticed what might be my issue.... perhaps.

When I set up Zentyal I set up the user as "Administrator".  Now i think that there may be two "Administrator" users and the system is NOT happy with it.  Does this sound right?

So there's an Administrator user on the Samba side for the Domain Controller aspect.  But my local user for the Zentyal SYSTEM itself is also called "Administrator".  Was this a bad call!? eeep!

*update* Just had a look through AD Management Console, indeed the "Administrator" user in Samba4 has no "User logon name".  So this perhaps leads more credence to this being my actual issue?
Title: Re: Setting Up Group Policy
Post by: Krisztián Czakó on October 18, 2012, 11:40:13 am
Hi,

You're right. You shouldn't use a user name for Zentyal administration who is also a user in Zentyal itself (added on the web interface or from the AD). It's a bit strange, I know. The technical reason is that they're all real Linux users in the background handled differently. There shouldn't exist two users with the same login name (however in Linux this can happen).
Do not choose "administrator" as a user name when installing Zentyal!
I think Zentyal's installer should prevent this (but does not).

Regards,
Krisztián


Title: Re: Setting Up Group Policy
Post by: B0UJI on October 18, 2012, 11:56:39 am
Yeah i noticed that and was like "awwwww damn".

Reckon I can recover this server by filling in the logon name (for the Samba Administrator) as "admin"? Or rename the other one?
Title: Re: Setting Up Group Policy
Post by: Krisztián Czakó on October 18, 2012, 03:01:52 pm
I recommend renaming the one you've created at installation time, but I don't know the side effects.
First, log off from the web interface!
Try this in a terminal (make a backup first!):
Check your real user id:
Code: [Select]
idIf it's really administrator, try to rename it to "myadmin":
Code: [Select]
sudo usermod -d /home/myadmin -l myadmin administrator
sudo mv /home/administrator /home/myadmin
Reboot your system immediately!
After reboot, you should be able to log in on the console and to the web interface with the new name and the old password.
I hope that the Zentyal's "Administrator" account (visible in the users list) is there and you can use it. Change the password for that user!

I hope it helps, but be aware that you can lock out yourself from your system, so make a backup!

Regards,
Krisztián

Title: Re: Setting Up Group Policy
Post by: B0UJI on October 19, 2012, 11:08:16 am
You sir, are a saviour.  That was indeed the issue.  A note for next time, i will ensure my Zentyal administrator is NOT "Administrator" as that is needed by the Domain.

Phew.

Against your advice (sorry! :( ) i just renamed the DomainAdministrator "logon name" to "Admin".  My stance is it was currently blank so any services that "relied" on it were screwed anyway.  Seems to have worked and it definately lets me apply Group Policy.  Interesting to note, i set up the account I designated as my Administrator to be the same as it, and it still didn't allow Group Policy creations so it must be something to do with special privileges of the inbuilt Domain Administrator.

But again, many thanks!