New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for OpenID connect - on Apache2.4 on Windows 64 #275
Comments
You'll need to copy all of the files from the |
Thank you for your reply. |
We could restart the Apache server with below resolution. Resolution: mod_auth_openidc library requires msvcr120.dll which is the newer version of Microsoft VC ++. It looks for this file. We used dependency walker software to see the tree and what are the required files for the mod_auth_openidc.iso. It showed missing msvcr120.dll file. We had to update the current vc++ which added this missing dll in the windows\System32 folder. and we could restart the server. Also we had to add this statment - "Include conf/oidc.conf" in httpd.conf file. Hope this helps for any future developers who are not able to restart the server when integrating with Openid connect. |
That's very useful information to have, thanks! |
@zandbelt Thanks for the posts above, I tried all the steps on Windows 8 and Windows 2012 R2, but apache is not starting C:\Apache24\bin>httpd.exe -version While starting apache getting error: The Apache service named reported the following error:
Please suggest. |
Perhaps you could try and use the dependency walker as well. |
For the record: I can produce a version compiled with Visual Studio 2017 that would rely on the Visual C++ Redistributable for Visual Studio 2015. Update: that is part of the stock release 2.3.2 now. |
Hi @zandbelt, I would be interested in testing using Visual C++ Redistributable for 2015. Please send me the link I can download and steps to perform for running on my local or Windows 2012 R2 servers. |
Hi Did you get it to work? I am trying to run the latest "release 2.3.2" and I get the error in the Event log when I try to start the Apache server from Activity Monitor The Apache service named reported the following error:
But if I try to run httpd.exe from commandline I get: httpd.exe: Syntax error on line 181 of C:/Apache24/conf/httpd.conf: Cannot load I am running: Apache 2.4.28 x64 |
Which Windows platform are you on? The binaries are 64bit. |
Can you run http://dependencywalker.com/ to see if/which dependency is the issue? |
Could it be that you are not using an Apache setup/package that is SSL enabled? |
I have now enabled SSL for the apache server and installed OpenSSL for Windows 64 bit. But I still get the same error for this module. |
It seemed to have been some issue with version 1.1.0 of OpenSSL 64bit. I saw the latest comment on this thread and instead I choose version 1.0.2 and then it worked. https://stackoverflow.com/questions/40017498/cannot-load-modules-mod-ssl-so-into-server |
ah, right; I'll add that to the release notes, thanks |
Also, make sure you have latest copy of Microsoft VC++. Server won’t restart if missing msvcr120.dll file at windows\System32 folder. |
Unable to find below modules. Can someone help on this. Downloaded the mod_auth_openidc library from Github- https://github.com/pingidentity/mod_auth_openidc/releases |
To: ping2sri Isn't it available? |
obou-uobo, |
support and licensing for the Windows build only comes as part of a commercial support subscription |
I am not able to see the mod_auth_openidc-2.2.0-apache-2.4.x-win64.zip file in any of the release. Regards, |
I had some struggle getting this to work, so i want to share my experience: I also had this error: The error is very misleading, since the file is obviously in the folder. The real problem was a missing dll file from openssl ( @stagging18 Look here https://mod-auth-openidc.org/download/?C=M;O=D |
I am unable to find the latest version for windows. Could someone please help me with that? |
|
I am getting this error. |
Environment
Steps did to install mod_auth_openidc:
Registered application by creating a client at the corporate oidc server
Saved clientid, client secret, Redirect_URIs and other required information.
Downloaded the mod_auth_openidc library from Github- https://github.com/pingidentity/mod_auth_openidc/releases
File: mod_auth_openidc-2.2.0-apache-2.4.x-win64.zip
Unzipped this file and copied the contents from bin and modules folder in the Apache folders respectively
Installed the curl-ca-bundle.crt which is in Apache24/bin folder by double clicking it.
Modified the httpd.conf file and added the following line the file -
LoadModule auth_openidc_module modules/mod_auth_openidc.so
Configured mod_auth_openidc from template present at - https://github.com/pingidentity/mod_auth_openidc/blob/master/auth_openidc.conf
Modified and saved this file with the client details done in step 1.
Copied this file in the C:\Apache24\conf\ folder
After doing this configuration we restarted the server and it is not getting started.
When commented - “LoadModule auth_openidc_module modules/mod_auth_openidc.so” this line from httpd.conf file, there is no problem starting the server.
Expected behavior
Server should start and when accessing the webpage it should bring the SSO page asking for user credentials.
Actual behavior
Server is not getting started.
Configuration and Log files
No error in log files.
The text was updated successfully, but these errors were encountered: