The client changes Ted's password by binding to Directory Server, then requesting a modification to the userPassword attribute value.
After activating the plug-in in the server, compile the client code, saslclient.c. Next, run the client to perform the bind and the password modification.
$ ./saslclient Using the following connection info: host: localhost port: 389 bind DN: uid=tmorris,ou=people,dc=example,dc=com new pwd: 23skidoo Getting the handle to the LDAP connection... Setting the version to LDAP v3... Bind DN is uid=tmorris,ou=people,dc=example,dc=com... Binding to the server using my_sasl_mechanism... Server credentials: my credentials Modifying the password... Modification was successful. $ |
On the Directory Server side, the message showing that the plug-in has authenticated the client is in the errors log.
$ grep tmorris /local/ds/logs/errors | grep -i sasl [04/Jan/2006:12:05:30 +0100] - INFORMATION - testsasl_bind in test-saslbind plug-in - conn=12 op=0 msgId=1 - Authenticated: uid=tmorris,ou=people,dc=example,dc=com |