The component uses curl to query the active directory server. For Windows, a version of the curl binary is shipped with the component.
Check if curl is installed on your Linux machine – if your system does not have a version of curl that supports ldap, follow the directions below to build curl.
OUTPUT:
curl 8.6.0 (x86_64-pc-linux-gnu) libcurl/8.6.0 OpenSSL/3.0.8 OpenLDAP/2.4.57
Release-Date: 2024-01-31
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS HSTS HTTPS-proxy IPv6 Largefile NTLM SSL threadsafe TLS-SRP UnixSocketsThese steps show building curl from source for Amazon Intel Linux. For other flavours of linux, adjust the commands accordingly (some common alternatives are included after the steps).
Step 1: Get the latest curl download from the curl website download page.
wget https://curl.se/download/curl-8.11.0.tar.gzStep 2: Use tar to extract the files.
tar -xzf curl-8.11.0.tar.gzStep 3: cd into the curl folder.
Step 4: Install gcc if needed.
Step 5: Install openldap-devel.x86_64 if needed.
sudo yum install openldap-devel-2.4.57-6.amzn2023.0.6.x86_64Step 6: Install openssl-devel.x86_64 if needed.
sudo yum install openssl-devel.x86_64Step 7: Run the command to configure and enable ldap.
./configure --enable-ldap --with-openssl --without-libpslStep 8: Compile the source code.
Step 9: Install source code.
Step 10: Check curl version and make sure LDAP is present in the Protocols list.
OUTPUT:
curl 8.6.0 (x86_64-pc-linux-gnu) libcurl/8.6.0 OpenSSL/3.0.8 OpenLDAP/2.4.57
Release-Date: 2024-01-31
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS HSTS HTTPS-proxy IPv6 Largefile NTLM SSL threadsafe TLS-SRP UnixSocketsInstall commands will vary on ARM Amazon Linux etc., for example:
Step 4: Install gcc if needed.
Step 5: Install openldap if needed.
Amazon ARM: sudo yum install openldap-devel
Ubuntu ARM and Intel: sudo apt install libldap2-dev
Red Hat and Fedora ARM and Intel: sudo dnf install openldap-devel
Step 6: Install openssl if needed.
Amazon ARM: sudo yum install openssl-devel
Ubuntu ARM and Intel: sudo apt install libssl-dev
Red Hat and Fedora ARM and Intel: sudo dnf install openssl-devel