I have php with ldap enabled on IIS7,
I have the school intranet with icons to different web applications which when users click they are taken to the login page of the web application where they have to supplu their active directory username and password
web application list:
Now what I want is to create a php login page that has a form that will authenticate users against active directory credentials. when user supplies wrong username and password they should see a message displayed "please enter corrent username or password" and is user is authenticated they should be redirected to the intranet page and when they click an icon to a web application they should be automatically logged in since they would have supplied correct username and password on the php login page. so this php login page should essentially store/hold the user credentials and push them to other web applications
can I please have detailed php code to do this and information on how I can get other web applications to use this php login page as the login page instead of the web application's default login.
waiting hear your quick responds experts