22.12.2012 Views

Front cover - IBM Redbooks

Front cover - IBM Redbooks

Front cover - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix B. A sample DSAPI program<br />

B<br />

This appendix contains a sample DSAPI program which demonstrates how to<br />

authenticate a Domino Web user through his operating system user account. It is<br />

an example of the DSAPI method of providing single sign-on, described in<br />

Chapter 7, “Single sign-on” on page 281.<br />

Overall, this DSAPI contains code to use the user’s Windows network user ID<br />

and password if running the filter on a Windows-based Domino server. If it is<br />

used on a UNIX-based Domino server, the user ID and password from the UNIX<br />

system will be used.<br />

The sample consists of three files: the main program. the windows-specific code,<br />

and the UNIX-specific code. The full source code, make files, and definition files<br />

can be found in the Domino 6 C API toolkit in the Samples folder inside the<br />

Admin sub-folder.<br />

Setting up the environment<br />

1. To use this DSAPI filter it must be registered with the Domino server, as<br />

described in “Registering the DSAPI filter with Domino” on page 642.<br />

2. The person used to test this program must have a Domino user account on<br />

this Domino server and an Operating System (OS) user account on the<br />

machine the server is running on. To create a Domino user account for an<br />

existing OS user account see “Creating a Domino user account for existing<br />

OS user” on page 642.<br />

© Copyright <strong>IBM</strong> Corp. 2004. All rights reserved. 641

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!