Single account management

My goal is to set-up a service that can replace my AD server or my Mac OS X server.

First requirement:

All user-account log-ins are stored on a central password server.
Users can log-in from Mac OS X machines using the password on the password server.
Users can log-in from Windows machines using the password on the password server.
Users can log-in on Apache configurations using the password on the password server.

Auxiliary requirements:

Home folders are configured on the password server.
Home folders are configured on the password server but residing on a third server.
Users can log-in from Unix machines using the password on the password server.

Final goal:

Allow unlimited window users on a domain without buying individual CALs.
or
Replace Mac OS X server to run on commodity hardware.

Comments and remarks are welcome.