Help me with scripts

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
User avatar
ccelis5215
Outstanding Member
Outstanding Member
Posts: 632
Joined: Sat Sep 13, 2014 2:04 am
Location: Caracas - Venezuela
ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 P12

Re: Help me with scripts

Post by ccelis5215 »

DualBoot wrote:the real attribute which match the main address is zimbraMailDeliveryAddress
For information using ldapsearch is more efficient because it does not use Java.
That's right.!

Then

Code: Select all

zmprov -l gaa -v domain.com | grep -e "zimbraAuthLdapExternalDn" -e "zimbraMailDeliveryAddress: " |  awk '{ ORS = (NR%2 ? FS : RS) } 1'
ccelis
tutek
Posts: 24
Joined: Sat Jun 03, 2017 4:51 pm

Re: Help me with scripts

Post by tutek »

still not correct,
at some rows zimbraAuthLdapExternalDn is at first position at some rows is second,
still zimbraAuthLdapExternalDn have not correct zimbraMailDeliveryAddress in many rows.
User avatar
ccelis5215
Outstanding Member
Outstanding Member
Posts: 632
Joined: Sat Sep 13, 2014 2:04 am
Location: Caracas - Venezuela
ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 P12

Re: Help me with scripts

Post by ccelis5215 »

Ok, you have to figure out which account doesn't have zimbraAuthLdapExternalDn attribute..

ccelis
Post Reply