stdevPavelmc / mailad

Software to provision a mail server with users from a Windows or Samba 4 Active Directory
GNU General Public License v3.0
33 stars 11 forks source link

[BUG] Some AD groups are not getting listed as email aliases #117

Closed stdevPavelmc closed 4 years ago

stdevPavelmc commented 4 years ago

Describe the bug

Some AD groups are not getting listed as emails aliases.

Common denominator is long group names as for example:

"Economía para facturas de la empresa desde ETECSA"

Short groups works ok.

stdevPavelmc commented 4 years ago

Investigation revealed that the issue is related to ldapsearch truncating the results at ~79 chars per line and then the DN of the group get truncated.

So, when you search for it later to get the mails of the members the query does not returns any result and the alias wont be created.

stdevPavelmc commented 4 years ago

Quick workaround is to use short group names in the AD until this issue es solved.

stdevPavelmc commented 4 years ago

Fix discovered and in testing stage

ldapseach -o ldif-wrap=no [...]

That disables the word wrap at all.

stdevPavelmc commented 4 years ago

Fix worked, preparing PR