1 (edited by aarango 2017-11-16 13:49:28)

Topic: Fail connecting LDAP with Synology

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
======== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
======== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
======== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi,

I am having a trouble trying to connect LDAP server to SYnology. I dont know which values on mapping should I use. Could anyone help me please?

Thanks

I attach a picture.

Post's attachments

Screenshot-2017-11-16 Synology DiskStation.png 451.43 kb, 1 downloads since 2017-11-16 

You don't have the permssions to download the attachments of this post.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Fail connecting LDAP with Synology

*) Is LDAP service port open in firewall?
*) Is LDAP service listening on an IP address which is accessible from your Synology?
*) Try to turn on debug mode in OpenLDAP for further debugging if necessary. FYI:
https://docs.iredmail.org/debug.openldap.html

3

Re: Fail connecting LDAP with Synology

ZhangHuangbin wrote:

*) Is LDAP service port open in firewall?
*) Is LDAP service listening on an IP address which is accessible from your Synology?
*) Try to turn on debug mode in OpenLDAP for further debugging if necessary. FYI:
https://docs.iredmail.org/debug.openldap.html

Hi,

Yesterday I got the list of users, but I can't do login, any objectclass isn't getting correctly.

Here picture and mapping. Which mapping shoudl I use on openLDAP?

Thanks

Post's attachments

Screenshot-2017-11-17 Aeorum_NAS - Synology DiskStation(1).png
Screenshot-2017-11-17 Aeorum_NAS - Synology DiskStation(1).png 65.42 kb, file has never been downloaded. 

Screenshot-2017-11-17 Aeorum_NAS - Synology DiskStation.png
Screenshot-2017-11-17 Aeorum_NAS - Synology DiskStation.png 19.49 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

4

Re: Fail connecting LDAP with Synology

Please check the LDIF data of mail user / group, it will be easier to understand which filter you should use.

5

Re: Fail connecting LDAP with Synology

Where could I find that values?

I attach two pictures:

Thanks

Post's attachments

Screenshot-2017-11-20 phpLDAPadmin (1 2 3) -(1).png
Screenshot-2017-11-20 phpLDAPadmin (1 2 3) -(1).png 37.59 kb, file has never been downloaded. 

Screenshot-2017-11-20 phpLDAPadmin (1 2 3) -.png 46.74 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

6

Re: Fail connecting LDAP with Synology

phpldapadmin supports exporting account in LDIF format. Please try again.

7

Re: Fail connecting LDAP with Synology

ZhangHuangbin wrote:

phpldapadmin supports exporting account in LDIF format. Please try again.

Thanks, I think that with this last 2 pictures you could help me finally. I hope that you can help me with mapping.
I attach my LDIF from one user and mapping that NAS expects.

Thanks again.

Post's attachments

Screenshot-2017-11-22 Aeorum_NAS - Synology DiskStation(1).png
Screenshot-2017-11-22 Aeorum_NAS - Synology DiskStation(1).png 18.02 kb, file has never been downloaded. 

Screenshot-2017-11-22 phpLDAPadmin (1 2 3) -xxx.png 131.25 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

8

Re: Fail connecting LDAP with Synology

Up

9

Re: Fail connecting LDAP with Synology

It's hard to help without practice, i don't know what your application expects, and you may need to test again and again.

10

Re: Fail connecting LDAP with Synology

ZhangHuangbin wrote:

It's hard to help without practice, i don't know what your application expects, and you may need to test again and again.

Yes, if I add in "passwd -> uidNumber" -> "sn" I can get users but they can't login, I think that I need another object or another field with a value.
Maybe the main is know how OpenLDAP give the password (in which variable) to add it in NAS, dunno.

Thanks.

11

Re: Fail connecting LDAP with Synology

aarango wrote:
ZhangHuangbin wrote:

It's hard to help without practice, i don't know what your application expects, and you may need to test again and again.

Yes, if I add in "passwd -> uidNumber" -> "sn" I can get users but they can't login, I think that I need another object or another field with a value.
Maybe the main is know how OpenLDAP give the password (in which variable) to add it in NAS, dunno.

Thanks.

hi, @aarango. did you sovled this problem?