Apache 2 - LDAP/Active Directory - Automatic login/authentication process - windows

Is there a fully automated way to authentication a user using IE8+ with Apache without the user having to enter any form of credentials?
Running IIS is not really an option even tho i'm running Windows.
I've found some Perl based solutions that should work but i could only get it to work on *Nix with a LOT of fuzzing around.
I'm currently using authnz_ldap_module which works great, but the users are really cranky and annoyed by having to put in their user-id and password for each new session that they open.
Any ideas?

I've been having the same problem myself today after eventually getting the mod_authnz_ldap module to work.
From my research thus far, I gather you can't do seamless signon with the mod_authnz_ldap module and you'll have to use mod_auth_sspi instead. I've tried this out and it seems to work as expected (on Internet Explorer anyway - you can also configure Firefox to pass through by modifying the network.automatic-ntlm-auth.trusted-uris key).
Here's the steps:
Download the mod_auth_sspi module from http://sourceforge.net/projects/mod-auth-sspi/
From the zip file's bin folder, copy mod_auth_sspi.so to your apache modules folder
From the zip file's bin folder, copy sspipkgs.exe to your apache bin folder
Edit httpd.conf so that the Directory is configured something like this:
Alias /secure "C:/Secure"
<Directory "C:/Secure">
Order deny,allow
Allow from all
AuthType SSPI
SSPIAuth On
SSPIOfferBasic on
SSPIBasicPreferred On
SSPIAuthoritative Off
AuthName "Login"
SSPIDomain dc.domain
Require valid-user
</Directory>
Now restart Apache.
Unfortunately, after all that it's no good for me as a solution as I have multiple LDAP servers to authenticate against, but hopefully this will help you.

Related

snipe-it with XAMPP

I have configured snipe-it following https://snipe-it.readme.io/docs/configuration and I don't seem to get pre-flight to run/launch and there is no instructions on snipe-it website unless I have missed it. I tried to use URL (http://localhost/setup) that I setup in the .env file but it says "This site can not be reached". I also tried IP but no luck. Any one out there have any idea what configuration file I need to check and how to launch it? Thank you all

500 Internal Server Error with Wamp and Magento

I am stuck at accessing the installation page, can't seem to get it to work, it always gives me a 500 Internal Server Error error.
I have looked into some of the similar question solutions but they didn't work.
Following error you have given in your post's comment should lead you to the solution after a little search.
The problem is Magento's .htaccess file consists <IfVersion> command.
In order to use this feature mod_version module should have enabled on your Apache web server. Otherwise it will give 500 error.
In Wamp it is disabled by default.
To enable it in Wamp you can do following steps:
Find your apache config file (httpd.conf) : It usually is under /wamp/bin/apache/apache(version)/conf/httpd.conf
Open the configuration file with your favourite text editor: You can simply use Notepad. But I suggest any other one since notepad sometimes doesn't show line breaks. It will be more readable if you do (e.g. Notepad++)
Search the following text: "mod_version"
You will see following line: #LoadModule version_module modules/mod_version.so
Uncomment it, so it will become enabled: Simply delete # sign to uncomment it
Left Click on Wamp and press Restart All Services: Since you have made changes in the configuration file in order to let Apache server know about the changes you should restart at least Apache server.
Now you can check if Magento is working. If it isn't check the error log again. There might be another issue.
Following 6 steps should easily solve the error that you have provided in the comment. Also, please edit your post and add more details e.g. error log.
If first time issue after installation, probably You must enable the Apache mod_rewrite and mod_version modules, simply uncomment strings in file httpd.conf(LoadModule version_module modules/mod_version.so and LoadModule rewrite_module modules/mod_rewrite.so ) save and restart server.
https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements-tech.html
Apache 2.2 or 2.4
In addition, you must enable the Apache mod_rewrite and mod_version modules. The mod_rewrite module enables the server to perform URL rewriting. The mod_version module provides flexible version checking for different httpd versions. For more information, see our Apache documentation.

URL Rewrite Config when Installing Phabricator on cPanel/WHM

I'm trying to install Phabricator on a cPanel/WHM server. According to this page:
https://secure.phabricator.com/book/phabricator/article/configuration_guide/#next-steps
I need to add some URL rewriting configuration to httpd.conf, but that's not really possible with cPanel, and the error is:
Request parameter '__path__' is not set. Your rewrite rules are not configured correctly.
I tried copying the rewrite rules to Phabricator's web root, and this should work, but it doesn't, and gives a 500 error, without any error log entries.
Tried changing this line:
RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA]
by removing the first slash (in case it didn't recognize this as the root directory), but it didn't help either.
What am I doing wrong, and is there a guide on installing Phabricator with cPanel/WHM (I wasn't able to find one)?
Note: I have root and WHM access to the server, but would like to avoid making changes that would require these permissions, if possible.
While this is really not the biggest problem when installing Phabricator on cPanel/WHM, the solution to it is a vHost-specific include, supported by cPanel/WHM. Here is a simple guide:
http://tecadmin.net/add-custom-settings-in-whm-cpanel-apache-virtualhost/
Some more information (although potentially more confusing) can be found here:
https://documentation.cpanel.net/display/EA/Modify+Virtualhost+Containers+With+Include+Files

XAMPP + WAMP very slow over the weekend?

I use xampp for half a year now, with xdebug and some other extensions. Everything is fine but now, over the weekend it magically went horrible slow. Does not matter if i enter "localhost", "127.0.0.1" or my LAN-IP.
So i installed WAMP. As i know now, WAMP for x64 is a waste of time - (CURL not working) so i installed WAMP x32.
CURL is working so far but the page still takes over a minute to load! Not building the page, not processing the code, to me it looks hardly like it takes a minute to start processing.
Sadly, can anyone recommend a fully working php-apache-mysql bundle for windows that is working as expected with all provided extensions in 2014?? Would be nice if that package/software (if it exists) would work as expected without need to modify registry, systemfiles, dll's and without spending hours and hours to get a simple page-request working.
Last but not least, the content of my host-file:
#::1 localhost
127.0.0.1 localhost
127.0.0.1 127.0.0.1
I tried really everything i found on the web so far. Nothing helps. Theres a similar question to this on Stackoverflow - without any useful (fixing) answer.
Collective Information:
XAMPP and WAMPP are slow
localhost/127.0.0.1/LAN-IP in URL does not
affect performance
the webserver does not take long to perform
requests
the websever does need about 60 seconds to recieve a request
cross-browser tested
with killed session tested
You could try removing the line
127.0.0.1 127.0.0.1
from your HOSTS file.
It is an illegal instruction anyway, but I have know it to cause loops. Does you PHP error file or Apache error file tell you anything useful?
Was this something you added, just before the system slowed down?
ADDITIONAL SUGGESTION:
Also changing these settings has been known to help on Windows systems, you may need to add then to your httpd.conf if they dont already exist.
AcceptFilter http none
AcceptFilter https none
In wamp php.ini turn off displaying errors and change type of displaying errors! :)
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
display_errors = Off
enter php.ini via wamp
edit these lines
Enable gzip
a) enable apache modules: deflate_module and headers_module
b) than paste code below to ur main wordpress folder .htaccess
<IfModule mod_deflate.c>
<FilesMatch "\.(html|php|txt|xml|js|css)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>

Can't get access to file on localhost under Windows

Periodically after branch downloading from github Yii shows such an issue:
copy(Z:\home\localhost\www\insur\insurance\assets\c75d288a\css\_notes\dwsync.xml) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied
(/_notes/dwsync.xml - is a file created by DreamWeaver automatically for developer's notes).
I can't figure out following:
Why Yii tries to implement copy($path,$dst.DIRECTORY_SEPARATOR.$file); for that file (it's here: [site_root]\yii\framework\utils\CFileHelper.php(130))?
Why an access error is possible on Windows localhost?
What exactly is an error source - Windows, Apache or Yii (or maybe DW)?
What is solution?
So a real Guru needed!
I believe that here is one!
Generally Yii Assets Manager will try to publish (or republish) copies of diffirent resources (img, css, js, ..etc) used by your app (made by you or nativly in the framework, e.g Gii module stuff)
An access error can happen in localhost if you didn't set needed permission to web-server process. But in this exact case i think the web-server can not find the folder from the begining.
It is a joint crime between Yii & Apache. Yii CAssestsManager expects an assets folder, Apache can't find it and complains
Proposed Solution:
Make sure you have a folder named assets in your App Root and make sure it's writable by the web server process!!
To understand more about Yii Assests check this wiki-post

Resources