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: 612
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

Postby ccelis5215 » Thu Jul 25, 2019 6:19 pm

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: 18
Joined: Sat Jun 03, 2017 4:51 pm

Re: Help me with scripts

Postby tutek » Thu Jul 25, 2019 6:54 pm

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: 612
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

Postby ccelis5215 » Thu Jul 25, 2019 7:26 pm

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

ccelis

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 7 guests