Show Table of Contents
9.12. Using SASL with LDAP Clients
To use SASL with the LDAP clients, such as
ldapsearch, pass the -Y SASL_mechanism to the command. For example:
- To use the
GSSAPISASL mechanism over the LDAP protocol:# ldapsearch -Y GSSAPI -U "dn:uid=user_name,ou=people,dc=example,dc=com" -R EXAMPLE.COM -H ldap://server.example.com -b "dc=example,dc=com"
- To use the
PLAINSASL mechanism over the LDAPS protocol:# ldapsearch -Y PLAIN -D "uid=user_name,ou=people,dc=example,dc=com" -W -H ldaps://server.example.com -b "dc=example,dc=com"
Note
SASL proxy authorization is not supported in Directory Server. Therefore, Directory Server ignores any SASL
authzid value supplied by the client.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.