Odd ldap problem after changing domain

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: Odd ldap problem after changing domain

Post by DualBoot »

Do not change this file, just use this file to make your ldap request and check if it fits.
ldapsearch -LLL ldap_server ....
zim_mike
Outstanding Member
Outstanding Member
Posts: 330
Joined: Sat Sep 13, 2014 3:26 am

Re: Odd ldap problem after changing domain

Post by zim_mike »

$ ldapsearch -x -h mx.domain.com -b 'cn=config' -D cn=config -w exxxxxxxi

This returns nothing. I have not used ldap in many years.
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: Odd ldap problem after changing domain

Post by DualBoot »

Code: Select all

  ldapsearch -LLL -H ldap://your_server:389 -b uid=zmpostfix,cn=appaccts,cn=zimbra -w "ldap_postfix_password" "(&(|(zimbraMailDeliveryAddress=%s)(zimbraMailAlias=%s)(zimbraMailCatchAllAddress=%s))(zimbraMailStatus=enabled))" zimbraMailCanonicalAddress zimbraMailCatchAllCanonicalAddress
Where you can change %s (should be support@domain.com) by the address the system is looking for.
Hope I did not forget anything.
zim_mike
Outstanding Member
Outstanding Member
Posts: 330
Joined: Sat Sep 13, 2014 3:26 am

Re: Odd ldap problem after changing domain

Post by zim_mike »

"ldap_postfix_password"

Assuming changing the two %s to the email address and changing the above to the ldap password, then I get this error.

ldap_sasl_interactive_bind_s: Can't contact LDAP server (-1)
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: Odd ldap problem after changing domain

Post by DualBoot »

man ldapsearch

=> -Z option should do the trick.
zim_mike
Outstanding Member
Outstanding Member
Posts: 330
Joined: Sat Sep 13, 2014 3:26 am

Re: Odd ldap problem after changing domain

Post by zim_mike »

There is no man for this tool on the system. I'm looking on the net and cannot find that option either.
Not really sure what you are suggesting, can you post the complete command to save time and I'll run it as requested.
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: Odd ldap problem after changing domain

Post by DualBoot »

As zimbra user man ldapsearch works.
if not... maybe your server is not a Zimbra MTA or Zimbra packages are missing.
zim_mike
Outstanding Member
Outstanding Member
Posts: 330
Joined: Sat Sep 13, 2014 3:26 am

Re: Odd ldap problem after changing domain

Post by zim_mike »

Something is missing then because this server was dedicated to zimbra and nothing else.

I am installing a new server so I can have another server to also check. If I can fix this one, I'll use it, if not, I'll have another as a backup.

One weird thing and I don't know if zimbra knows about this but during the install, there are always these errors.

mkdir /opt/zimbra/perl5: Permission denied at /usr/share/perl5/vendor_perl/local/lib.pm line 269


Starting servers...Attempting to create directory /opt/zimbra/perl5
mkdir /opt/zimbra/perl5: Permission denied at /usr/share/perl5/vendor_perl/local/lib.pm line 269.
BEGIN failed--compilation aborted.

After install;

# su zimbra
Attempting to create directory /opt/zimbra/perl5
mkdir /opt/zimbra/perl5: Permission denied at /usr/share/perl5/vendor_perl/local/lib.pm line 269.
BEGIN failed--compilation aborted.

I think I have to start a new post.
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: Odd ldap problem after changing domain

Post by DualBoot »

Which user do you use to install Zimbra ?
zim_mike
Outstanding Member
Outstanding Member
Posts: 330
Joined: Sat Sep 13, 2014 3:26 am

Re: Odd ldap problem after changing domain

Post by zim_mike »

Root... I think I should have been sudo?

Following this; https://wiki.zimbra.com/wiki/Zimbra_Rel ... stallation
But, no mention of needing to be anything but root.
Post Reply