LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-27-2022, 06:28 PM   #1
drumlin61
LQ Newbie
 
Registered: Feb 2022
Posts: 2

Rep: Reputation: 0
Fedora openldap and Synology NAS


I have a simple home network consisting of (for now) a Fedora 35 desktop and Synology NAS. I'm trying to join the NAS to my ldap domain that I configured on my desktop. I received help from Synology in how to configure the NAS, but I think my openldap server configuration has problems, at least that's what I'm assuming for now. Most of my problems come from lack of understanding of openldap, and confusing information found online. In any case, I used the information found on this page to configure the server side, substituting "aquila" for "srv" and "test" for "world" in the configuration files. I also used the link found in the instructions to generate an SSL certificate and then continue to configure slapd for SSL/TLS. Synology has vague instructions on connecting to the server, but as I said, they helped me with this end, but of course can't help me with the server configuration. According to Synology, the password encryption to use would be SSL/TLS (which is not shown on the instructions) and that I would have to upload a certificate and key. Now I tried this by uploading the server certificate and server key and I kept getting a failure. I'm also not sure what to use for the "Bind DN or LDAP admin account" but I've tried various permutations involving something like "uid=root,cn=users,dc=aquila,dc=test" with no luck. I keep getting the same error (shown below). I also began thinking that there was a problem with my certificate, so I followed the instructions I found on another site that answered a question specific to home networks, and again I kept getting the same failure. On this page, the instructions are to use the "rootca.crt" certificate, but it doesn't mention which key to use, which seems to be required by the NAS. In any case, the error I keep getting on the server end is:

Feb 27 16:04:01 fedora slapd[674034]: conn=1014 fd=13 ACCEPT from IP=192.168.1.61:57876 (IP=0.0.0.0:636)
Feb 27 16:04:01 fedora slapd[674034]: conn=1014 fd=13 closed (TLS negotiation failure)
Feb 27 16:04:02 fedora slapd[674034]: conn=1015 fd=13 ACCEPT from IP=192.168.1.61:57878 (IP=0.0.0.0:636)
Feb 27 16:04:02 fedora slapd[674034]: conn=1015 fd=13 TLS established tls_ssf=256 ssf=256
Feb 27 16:04:02 fedora slapd[674034]: conn=1015 op=0 BIND dn="uid=root,cn=users,dc=aquila,dc=test" method=128
Feb 27 16:04:02 fedora slapd[674034]: conn=1015 op=0 RESULT tag=97 err=49 text=
Feb 27 16:04:02 fedora slapd[674034]: conn=1015 op=1 UNBIND
Feb 27 16:04:02 fedora slapd[674034]: conn=1015 fd=13 closed
Feb 27 16:04:02 fedora slapd[674034]: conn=1016 fd=13 ACCEPT from IP=192.168.1.61:57880 (IP=0.0.0.0:636)
Feb 27 16:04:02 fedora slapd[674034]: conn=1016 fd=13 closed (TLS negotiation failure)

I've tried many different permutations with no luck. The "TLS negotiation failure" seems to me to indicate problem somewhere with the certificate, but again my ignorance hinders me. Does anyone have an hints of what to try next? Thanks!
 
Old 03-13-2022, 04:41 PM   #2
drumlin61
LQ Newbie
 
Registered: Feb 2022
Posts: 2

Original Poster
Rep: Reputation: 0
After some help from Synology support, and some playing around, here is how to do it:

1. Follow instructions for server set-up found here. Make sure you substitute your domain name. Suggested domain name for home use, I found out is "home.arpa".

2. When prompted (step 5 on the previous page), set up certificate from these instructions.

3. Add users from instructions found here. Since we have two users on our home network, I just used the script in step 2.

4. On the synology nas, use control panel to launch gui to join the ldap domain. Follow instructions found here. If the server is set up as above, you need to enter "uid=Manager,dc=home,dc=arpa" for Bind DN and assuming the domain is named "home.arpa". Password encryption is SSL/TLS (assuming following instructions above), profiles is "Standard" and client certification needs to be enabled. Certificate and key are as created above in step 2. There is a minor complaint about SMB schema not being configured on the server, but I don't use it so I did not configure it. I just skipped this when it complained and I was able to join the nas to the domain.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Backup With Rclone And Cron From Your Synology NAS LXer Syndicated Linux News 0 03-23-2021 06:15 AM
Mounting a NAS device (Synology) so I can read and write files Alligator42 Linux - Newbie 2 05-19-2017 05:33 PM
nas which one between qnap ts-219p+ and synology ds211+ Gatemaze Linux - Networking 4 05-24-2011 06:37 PM
Synology NAS and RAID concepts depam Linux - Hardware 11 04-22-2010 07:28 AM
nss_ldap, openldap and openldap-server ... what is openldap for? chakkerz Linux - Server 2 08-13-2009 07:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration