The LDAP server then uses the client's stored password to determine whether the client used the right password. To use the CRAM-MD5 authentication mechanism, you must set the authentication environment properties as follows. Set to the principal name. This is a server-specific format. Others accept a distinguished name.
Some servers accept multiple formats.
The following example shows how a client performs authentication by using CRAM-MD5 to an LDAP server. The Netscape Directory Server v4.1 supports the CRAM-MD5 authentication mechanism only if you install some additional software on the server. Otherwise, attempting to use CRAM-MD5 with the server results in a CommunicationException 's being thrown. See the server's documentation for instructions on how to obtain and install the software.