Comments (7)
In 3216ffc and 47731cb we merged www/loginform and template/loginform.
This is months ago. And it worked after that so can you please add more information.
What is exactly happening in your case?
from simplesamlphp-module-privacyidea.
We've got simplesamlphp with privecyidea module (1.6) working. But decided to upgrade both to latest versions. Configs just copied from old version to new one. And now SSOService.php is redirection authorization to /module.php/privacyidea/loginform.php?AuthState= and we got simplesaml 404 error page "The given page was not found. The reason was: The URL wasn't found in the module. The URL was: https:///module.php/privacyidea/loginform.php?AuthState=
from simplesamlphp-module-privacyidea.
Okay I cannot reproduce that.
Can you please check the following things?
- Make sure, that your webserver is permitted to read the module.
- Check if your Apache or Nginx is configured correctly
- You said you are using your old configuration. Please make sure that you named the module directory the same way as you did before
- If everything seems to be correct: Please post your logfile here. It should contain additional information.
from simplesamlphp-module-privacyidea.
- Module permissions is ok
- Config wasn't changed for a long time. I've double checked and it looks ok:
location / {
alias /var/www/simplesamlphp/www/;
location ~ \.php(/|$) {
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTPS on;
fastcgi_pass unix:/var/spool/php/php.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
- I've made a clean install of simplesamlphp and privacyidea module. Only certs, metadata and relevant part of config.php was copied:
'privacyidea' => array(
'privacyidea:privacyidea',
'privacyideaserver' => 'https://<privacyidea server domain>',
'sslverifyhost' => True,
'sslverifypeer' => True,
'realm' => '<our realm here>',
// 'otpextra' => 1,
'attributemap' => array(
'username' => 'uid',
'surname' => 'sn',
'givenname' => 'givenName',
'email' => 'mail',
'phone' => 'telephoneNumber',
'mobile' => 'mobile',
'inetUserStatus' => 'inetUserStatus',
'objectClass' => 'objectClass',
'cn' => 'cn',
'memberOf' => 'memberOf',
),
),
Here is relevant part of a log:
Nov 8 06:48:36 login-2 simplesamlphp[29591]: 6 [2226def69f] 10.9.18.173 SAML2.0 - IdP.SSOService: Accessing SAML 2.0 IdP endpoint SSOService
Nov 8 06:48:36 login-2 simplesamlphp[29591]: 4 [2226def69f] 10.9.18.173 The class or interface 'sspmod_core_Auth_UserPassBase' is now using namespaces, please use 'SimpleSAML\Module\core\Auth\UserPassBase' instead.
Nov 8 06:48:36 login-2 simplesamlphp[29591]: 6 [2226def69f] 10.9.18.173 SAML2.0 - IdP.SSOService: IdP initiated authentication: '<service>'
Nov 8 06:48:36 login-2 simplesamlphp[29591]: 4 [2226def69f] 10.9.18.173 The class or interface 'SimpleSAML_Auth_State' is now using namespaces, please use 'SimpleSAML\Auth\State'.
Nov 8 06:48:36 login-2 simplesamlphp[29591]: 4 [2226def69f] 10.9.18.173 The class or interface 'SimpleSAML_Utilities' is now using namespaces, please use 'SimpleSAML\Utilities'.
Nov 8 06:48:37 login-2 simplesamlphp[31725]: 6 [2226def69f] 10.9.18.173 Could not find file '/var/www/simplesamlphp/modules/privacyidea/www/loginform.php'.
Nov 8 06:48:37 login-2 simplesamlphp[31725]: 3 [2226def69f] 10.9.18.173 SimpleSAML\Error\NotFound: The requested page 'https://host.ourdomain.com/module.php/privacyidea/loginform.php?AuthState=_fe137a2cd525d9245aa6bc86e0f60b1bf29aece70b.ourdomain.com.php.ourdomain.com.ourdomain.com.jsp.jspa' could not be found. The URL wasn't found in the module.
Nov 8 06:48:37 login-2 simplesamlphp[31725]: 3 [2226def69f] 10.9.18.173 Backtrace:
Nov 8 06:48:37 login-2 simplesamlphp[31725]: 3 [2226def69f] 10.9.18.173 1 /var/www/simplesamlphp/lib/SimpleSAML/Module.php:220 (SimpleSAML\Module::process)
Nov 8 06:48:37 login-2 simplesamlphp[31725]: 3 [2226def69f] 10.9.18.173 0 /var/www/simplesamlphp/www/module.php:9 (N/A)
Nov 8 06:48:37 login-2 simplesamlphp[31725]: 3 [2226def69f] 10.9.18.173 Error report with id c38f454a generated.
I've replaced our domain name with "ourdomain.com" for security reasons.
from simplesamlphp-module-privacyidea.
Okay I installed now simpleSAMLphp 1.17.7
with simplesamlphp-module-privacyidea
from the master branch.
I tested the privacyidea authentication and it redirected me to /module.php/privacyidea/otpform.php
, which worked without any problems.
from simplesamlphp-module-privacyidea.
After few days debbuging found that is was opcache issue (((
Sorry
from simplesamlphp-module-privacyidea.
Good to hear it's working now.
from simplesamlphp-module-privacyidea.
Related Issues (20)
- Move the themes-readme from /templates to /docs
- Upgrade the code to new PHP standard & use the namespaces to use the saml classes HOT 1
- Adjust the CSS
- Remove the old "doEnrollToken" function
- Remove the old preferredTokenType function HOT 1
- Catch the exceptions
- Update the docs
- "Trigger SMS Token" Button HOT 2
- PHP Error when accessing simplesamlphp web page HOT 4
- Errors with "default" authenticationFlow on the v3.0.0 HOT 7
- triggerChallenge and Email Token HOT 3
- Support for SimpleSAMLphp 2.0 and newer PHP 8.x versions HOT 13
- Save a device HOT 1
- Feature: auto-submit after x digits HOT 1
- Inconsistent number of arguments HOT 3
- Inconsistent type in return HOT 2
- Feature: poll in browser
- Security: Separate the style and script from html body
- Upgrade: migrate translations HOT 1
- Security: load the extra files in the "official" way
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simplesamlphp-module-privacyidea.