Page 2 of 2

Re: Help me with scripts

Posted: Thu Jul 25, 2019 6:19 pm
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

Re: Help me with scripts

Posted: Thu Jul 25, 2019 6:54 pm
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.

Re: Help me with scripts

Posted: Thu Jul 25, 2019 7:26 pm
by ccelis5215
Ok, you have to figure out which account doesn't have zimbraAuthLdapExternalDn attribute..

ccelis