1

I have been following some tutorials on installing the client and connecting to the LDAP server and they all say its via ssh.

Is there another way besides ssh to connect to the LDAP server?

2 Answers 2

1

An example with ldapsearch command line tool:

ldapsearch -b "dc=foobar,dc=fr" -D "cn=Manager,dc=foobar,dc=fr" -w ldap

It comes with openldap package.

0

LDAP is a protocol, transmitted described in terms of ASN.1 and transmitted using BER. It has nothing whatsoever to do with "ssh". LDAP clients connect using the protocol, which is described in RFC4511. Clients may:

  • connect on a non-secure connection
  • connect on a non-secure connection and promote the connection to a secure connection using the StartTLS extended operation
  • connect using SSL (not ssh), in this case the connection is secure right away

As noted, the legacy OpenLDAP distribution includes the ldapsearch command. Many programming languages include an API for LDAP, most notably Java.

see also

Not the answer you're looking for? Browse other questions tagged .