Zimbra Auto Provision only run in the first time

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
User avatar
lucascbeyeler
Posts: 6
Joined: Fri Aug 26, 2016 7:21 pm

Zimbra Auto Provision only run in the first time

Post by lucascbeyeler »

I need some help with Zimbra's AutoProv service: When I enable for any domain, all the accounts are created without any issue. The problem is after this: the sever don't find any other account until I rerun the script to change all the configurations in my server.

The configuration:
md dexter.com.br zimbraAutoProvAccountNameMap "samAccountName"
md dexter.com.br +zimbraAutoProvAttrMap description=description
md dexter.com.br +zimbraAutoProvAttrMap displayName=displayName
md dexter.com.br +zimbraAutoProvAttrMap givenName=givenName
md dexter.com.br +zimbraAutoProvAttrMap cn=cn
md dexter.com.br +zimbraAutoProvAttrMap sn=sn
md dexter.com.br zimbraAutoProvAuthMech LDAP
md dexter.com.br zimbraAutoProvBatchSize 40
md dexter.com.br zimbraAutoProvLdapAdminBindDn "CN=Zimbra Admin Account AutoProv,CN=Users,DC=dexter,DC=com,DC=br"
md dexter.com.br zimbraAutoProvLdapAdminBindPassword "bo-ho"
md dexter.com.br zimbraAutoProvLdapBindDn "zimbra@dexter.com.br"
md dexter.com.br zimbraAutoProvLdapSearchBase "CN=Users,DC=dexter,DC=com,DC=br"
md dexter.com.br zimbraAutoProvLdapSearchFilter "(cn=%u)"
md dexter.com.br zimbraAutoProvLdapURL "ldap://ad.dexter.com.br:389"
md dexter.com.br zimbraAutoProvMode EAGER
md dexter.com.br zimbraAutoProvNotificationBody "Sua conta foi auto-provisionada. Seu endereco de e-mail e ${ACCOUNT_ADDRESS}."
md dexter.com.br zimbraAutoProvNotificationFromAddress admin@dexter.com.br
md dexter.com.br zimbraAutoProvNotificationSubject "Nova conta provisionada"
ms zimbra.dexter.com.br zimbraAutoProvPollingInterval "1m"
ms zimbra.dexter.com.br +zimbraAutoProvScheduledDomains "dexter.com.br"

The log:
2017-08-01 15:57:28,163 INFO [AutoProvision] [] autoprov - Auto provisioning accounts on domain dexter.com.br
2017-08-01 15:57:28,168 INFO [AutoProvision] [] autoprov - 0 external LDAP entries returned as search result
2017-08-01 15:57:28,168 INFO [AutoProvision] [] autoprov - Auto Provisioning has finished for now, setting last polled timestamp: 20170801185728.166Z
2017-08-01 15:57:28,172 INFO [AutoProvision] [] autoprov - Sleeping for 60000 milliseconds.
The strange part is there is no issue, no error, warning, nothing! The AutoProv run smoothly, but only in the first time.

Am I forgotting any config? Someone can help me with this?
iomarmochtar
Posts: 41
Joined: Sat Sep 13, 2014 3:54 am
Location: Indonesia
Contact:

Re: Zimbra Auto Provision only run in the first time

Post by iomarmochtar »

You may try with auto provision mode LAZY. as per now it's working fine for me.

See my post for your references.
https://iomarmochtar.wordpress.com/2014 ... visioning/
User avatar
lucascbeyeler
Posts: 6
Joined: Fri Aug 26, 2016 7:21 pm

Re: Zimbra Auto Provision only run in the first time

Post by lucascbeyeler »

Thanks for the return iomarmochtar, but I really need the EAGER mode working...
phoenix
Ambassador
Ambassador
Posts: 27272
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Zimbra Auto Provision only run in the first time

Post by phoenix »

The log files entry you're posted shows this:

Code: Select all

2017-08-01 15:57:28,168 INFO [AutoProvision] [] autoprov - 0 external LDAP entries returned as search result
According to that the autoprovision is running but does not find any entries. You also haven't mentioned what external source you're using to provision the accounts, if it was Novell there was a bug fixed in ZCS 8.7. Can you actually search your LDAP server and find the new records you've entered?

You should always post the output of the following command:

Code: Select all

zmcontrol -v
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
thiagolinhares
Posts: 9
Joined: Tue Apr 12, 2016 1:30 am

Re: Zimbra Auto Provision only run in the first time

Post by thiagolinhares »

Hello,

I'm also running through this issue.

[zimbra@srv-lnxvmx1 ~]$ zmcontrol -v
Release 8.7.11_GA_1854.RHEL7_64_20170531151956 RHEL7_64 FOSS edition.


EAGER mode.
yeeP6rai
Posts: 41
Joined: Mon Feb 12, 2018 10:16 am

Re: Zimbra Auto Provision only run in the first time

Post by yeeP6rai »

thiagolinhares wrote:Hello,

I'm also running through this issue.

[zimbra@srv-lnxvmx1 ~]$ zmcontrol -v
Release 8.7.11_GA_1854.RHEL7_64_20170531151956 RHEL7_64 FOSS edition.


EAGER mode.
Try recreate your test user in LDAP and wait for zimbraAutoProvPollingInterval.
Some time ago, i'm also was discover this issue, and as workaround is to recreate user.
therealj
Posts: 1
Joined: Mon Aug 27, 2018 4:22 pm

Re: Zimbra Auto Provision only run in the first time

Post by therealj »

Hello i have the same problem in zmprov/8.8.9
the first time the autoprov work fine but after that i create another user in my Wserver2016 AD buy nothing to do
[] autoprov - Auto provisioning accounts on domain xxxx
2018-08-27 16:33:08,635 INFO [AutoProvision] [] autoprov - 0 external LDAP entries returned as search result
2018-08-27 16:33:08,635 INFO [AutoProvision] [] autoprov - Auto Provisioning has finished for now, setting last polled timestamp: 20180827163308.634Z
2018-08-27 16:33:08,638 INFO [AutoProvision] [] autoprov - Sleeping for 60000 milliseconds.

if u resolve the poblem please help
Post Reply