Author Topic: [Solved] Trouble with Initial AD Replication  (Read 2810 times)

Peter Haile

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
[Solved] Trouble with Initial AD Replication
« on: April 24, 2013, 05:34:11 pm »
Hi,

I am currently trying to get Zentyal running as a DC in my active directory domain. This is my first Linux project that i have ever started myself, so any help would be greatly appreciated.

I followed the instructions to the tee using:

Does it work? Yes -- to a degree. My Zentyal server joins the domain and acts as a DC. This DC replicates all groups from the PDC of the domain but it does not replicate any users.

After digging deeper i find that a home directory for each user in the domain HAS been created, but the users themselves have not been created.

Am i unsure where i can find the log files for this on Linux (I will post if informed), but my LDAP settings are as follows:

Base DN:    dc=thedomain,dc=local
Root DN:    cn=zentyal,dc=thedomain,dc=local
Password:    mvk@MOAChH/HriMUqTvz
Read-only root DN:    cn=zentyalro,dc=thedomain,dc=local
Read-only password:    V8bl2I28==HB7F47/v4v
Users DN:    ou=Users,dc=thedomain,dc=local
Groups DN:    ou=Groups,dc=thedomain,dc=local


ANY help on this matter would be greatly appreciated.

Cheers.
« Last Edit: April 27, 2013, 01:24:42 am by Peter Haile »

Peter Haile

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Trouble with Initial AD Replication
« Reply #1 on: April 24, 2013, 05:56:06 pm »
I think my first question is "Where can i find the logs files ascertaining to user creation in Zentyal?"

Peter Haile

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Trouble with Initial AD Replication
« Reply #2 on: April 24, 2013, 09:20:11 pm »
Log file attached.

Please note: there are zero errors when Zentyal initially tries to add the domain users.

Peter Haile

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Trouble with Initial AD Replication
« Reply #3 on: April 25, 2013, 05:42:20 pm »
Has anyone had this issue before? Zentyal is continuously trying to replicate all the users in the domain over and over and over again, but the users group remains empty. :/

Honestly, ANY help on this would be appreciated, even if its just random ideas to get the troubleshooting juices flowing!

Peter Haile

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Trouble with Initial AD Replication
« Reply #4 on: April 26, 2013, 10:47:30 pm »
Just curious about a few things -- do I have to be a member of the Zentyal community to warrant a reply? Are my posts too vague? Is this possibly a known issue that has not been resolve/people are working on?

It would be nice to at least be acknowledged.

Sam Graf

  • Guest
Re: Trouble with Initial AD Replication
« Reply #5 on: April 26, 2013, 11:49:34 pm »
Hi Peter,

Sorry...you do warrant a reply. Regrettably, I can't help with any of your questions :( . I don't know if this is a known or at least reported issue. Apparently the community currently lacks the experience to provide even minimal guidance--including random ideas.

So I'm not sure how to best help you. Let me start with a quick search of trac materials on "ad replication":

http://trac.zentyal.org/search?q=ad+replication

Maybe with a bit of random luck there will be something useful to you in there.

Peter Haile

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Trouble with Initial AD Replication
« Reply #6 on: April 27, 2013, 01:03:41 am »
Thanks for the reply Sam!

I searched online for the answer to my solution quite a bit before posting in this forum. I believe my issue is an isolated one and therefor I probably wont find the answers online.

I'm going to continue plugin away at this for the time being. If I happen to find a solution i will undoubtedly post it here for others to benefit.

Thanks again,

Peter.

Peter Haile

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Trouble with Initial AD Replication
« Reply #7 on: April 27, 2013, 01:24:17 am »
Actually -- I just solved this.

For whatever reason the initial user replication did not work. Every couple minutes Zentyal would try the replication again -- but the home directories where created already and therefor the users could not be added.

Over the last couple days I tried using chown, deluser and rmdir to alter/remove these directories but with zero success. Just now I  randomly tried using mv to move all the (bad) home directories to a new location and voila it worked -- the home directories were moved and Zentyal was able to create the new user accounts.

I now have a working (pending testing) Zentyal AD DC.

Thank-you,

Peter.




Sam Graf

  • Guest
Re: [Solved] Trouble with Initial AD Replication
« Reply #8 on: April 27, 2013, 02:30:03 am »
Excellent news! Thank you for sharing the solution.

Peter Haile

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: [Solved] Trouble with Initial AD Replication
« Reply #9 on: May 03, 2013, 11:46:16 pm »
Sorry to bump this old thread but I forgot to add something to my *fix*.

Before starting the File Sharing module do the following:
  • Navigate to /etc/zentyal
  • Open users.conf using sudo
  • Change the line 'mk_home = yes' into 'mk_home = no'

Thanks again Zentyal staff.