Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using windows authentication with php?

Scenario:

I have a area of a website that needs to be secure and accessible when offsite. I want the user to enter the username and password used to login at work in a web form. The form will send the username and password to authenticate it. If it works the user is logged in.

I need to use a form not a pop-up login box. PHP is preferred but I'm flexible. Any ideas to point me in the right direction?


My employer has a few secure areas they have set up that uses the "pop-up box". For what I need to accomplish I need to use a web form.

like image 482
dcp3450 Avatar asked Mar 23 '10 16:03

dcp3450


People also ask

How do I connect to Windows Authentication?

Select Connect. In Object Explorer, expand the SQL Server, expand Security, right-click Logins, and then select New Login. For the Login name, enter the Windows user name in the domain\username format. When using this adapter with BizTalk, then the login name you enter, is the identity of the host instance account.

Is Windows Authentication better than SQL Server authentication?

Windows authentication is generally more secure in SQL Server databases than database authentication, since it uses a certificate-based security mechanism. Windows-authenticated logins pass an access token instead of a name and password to SQL Server.

How do I enable Windows Authentication for my website?

In Control Panel, click Programs and Features, and then click Turn Windows features on or off. Expand Internet Information Services, expand World Wide Web Services, expand Security, and then select Windows Authentication. Click OK. Click Close.

Can SQL Server use Windows Authentication?

A connection made using Windows Authentication is sometimes called a trusted connection, because SQL Server trusts the credentials provided by Windows. By using Windows Authentication, Windows groups can be created at the domain level, and a login can be created on SQL Server for the entire group.


1 Answers

Try LDAP

  • http://www.devshed.com/c/a/PHP/Using-PHP-With-LDAP-part-1/
  • http://us2.php.net/ldap

I've written intranet web applications that use the local windows username and password to authenticate and LDAP is by far the best solution.

like image 103
Levi Hackwith Avatar answered Sep 20 '22 18:09

Levi Hackwith