Authentication using Windows Credentials

Hi all,

I have just started learning PHP about a mth ago,

My current little project for my company is to make a web based “Leave System” to allow employees to apply for leaves more easily.

Have installed apache server 2.2.21 and my sql 5.5 on my PC.

I’m wondering if there is a way to allow the system to authenticate a login user against the active user directory in my server? So it would be less hassle for user to remember 1 more password??

I have googled and saw LDAP but im not really sure how to set it up.

Thanks in advance.

What do you mean by “less hassle for user to remember 1 more password”? Do you want the users to login with their username only?
It is entirely possible to set up a mysql database with a list of all the users and authenticate the login against it. You just need to populate your database with the users’ names, create a login form, then compare the login data with the database data.

My meaning of “lesser hassle to remember another password” is that

Im thinking in user perspective that if someone give u to reset a password for a login,

  1. You will use back a same password as domain login
  2. You will choose another password different from what is your domain login.

So im trying to set it so that all users do not need to make this decision and just use their domain logon to logon to the website and do what is needed.

Yup i did thought of the extra table with userid and pwd, just that im trying to see if I can use the windows credentials 1st to implement it before going to that.

If i find i cant do it due to limitations or Im unable to understand how to go about doing it. ;D

I wouldn’t recommend this approach as your relying on third parts software your much better off having your own user authentication.

Alrite then…
Will go with the table :smiley:

Sponsor our Newsletter | Privacy Policy | Terms of Service