PHP-Client doesn´t work.

3 messages Options
Embed this post
Permalink
Felix Burth

PHP-Client doesn´t work.

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hallo everybody,

I´m CASifying the simplest PHP-example named example_simple.php.
The CAS-Server is running and is successfully tested.

If I call my example_simple.php it redirects to my CAS-server (Login). The URL looks allready nice =>

https://xilef:8443/cas-server/login?service=http%3A%2F%2Fxilef%2Ftest%2Fexample_simple.php

I sign on with username and password and now there is my problem. The CAS-server exhibit 6 ST`s and the browser shows my a message, that there is an endless loop.

This was logged in the error.log:

[Tue Jul 07 14:53:05 2009] [notice] Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9 mod_jk/1.2.27 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
[Tue Jul 07 14:53:05 2009] [notice] Server built: Dec 10 2008 00:10:06
[Tue Jul 07 14:53:05 2009] [notice] Parent: Created child process 5808
[Tue Jul 07 14:53:09 2009] [notice] Digest: generating secret for digest authentication ...
[Tue Jul 07 14:53:09 2009] [notice] Digest: done
[Tue Jul 07 14:53:11 2009] [notice] Child 5808: Child process is running
[Tue Jul 07 14:53:11 2009] [notice] Child 5808: Acquired the start mutex.
[Tue Jul 07 14:53:11 2009] [notice] Child 5808: Starting 250 worker threads.
[Tue Jul 07 14:53:11 2009] [notice] Child 5808: Starting thread to listen on port 443.
[Tue Jul 07 14:53:11 2009] [notice] Child 5808: Starting thread to listen on port 80.

I have created a virtualHost, but I don´t think it makes trouble:

<VirtualHost *>

Options +FollowSymlinks
RewriteEngine on

RewriteCond {HTTP_HOST}   !^http://127.0.0.1:80 [NC]

RewriteRule ^/praxisprojekt(.*)$       http://127.0.0.1:8080/praxisprojekt/$1 [L,R]
RewriteRule ^/cas-server(.*)$       https://xilef:8443/cas-server/$1 [L,R]

<Location "/">
Order allow,deny
allow from all
</Location>

</VirtualHost>

These Apache Extensions are set:

;extension=php_apc.dll
;extension=php_apd.dll
;extension=php_bcompiler.dll
;extension=php_bitset.dll
;extension=php_blenc.dll
;extension=php_bz2.dll
;extension=php_bz2_filter.dll
;extension=php_classkit.dll
;extension=php_cpdf.dll
;extension=php_crack.dll
extension=php_curl.dll
;extension=php_cvsclient.dll
extension=php_db.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_dbx.dll
;extension=php_dio.dll
;extension=php_docblock.dll
;extension=php_domxml.dll 
;extension=php_event.dll
;extension=php_fdf.dll
;extension=php_fileinfo.dll
;extension=php_filepro.dll
;extension=php_filter.dll
;extension=php_fribidi.dll
extension=php_gd2.dll
extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_gopher.dll
;extension=php_hash.dll
;extension=php_http.dll
;extension=php_hyperwave.dll
;extension=php_ibm_db2.dll
;extension=php_id3.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
;extension=php_imagick.dll
extension=php_imap.dll
;extension=php_ingres.dll
;extension=php_interbase.dll
;extension=php_ixsfunc.dll
;extension=php_java.dll
;extension=php_json.dll
;extension=php_ldap.dll
;extension=php_lzf.dll
;extension=php_mailparse.dll
;extension=php_maxdb.dll
extension=php_mbstring.dll
extension=php_exif.dll
extension=php_mcrypt.dll
;extension=php_mcrypt_filter.dll
;extension=php_memcache.dll
;extension=php_mhash.dll
extension=php_mime_magic.dll
extension=php_ming.dll
;extension=php_msql.dll
extension=php_mssql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_netools.dll
;extension=php_ntuser.dll
;extension=php_oracle.dll
;extension=php_oci8.dll
;extension=php_oggvorbis.dll
extension=php_openssl.dll
;extension=php_parsekit.dll
extension=php_pdf.dll
extension=php_pdo.dll
;extension=php_pdo_firebird.dll
extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_oci8.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_sqlite.dll
;extension=php_perl.dll
extension=php_pgsql.dll
;extension=php_phpdoc.dll
;extension=php_pop3.dll
;extension=php_printer.dll
;extension=php_pspell.dll
;extension=php_radius.dll
;extension=php_runkit.dll
;extension=php_sdo.dll
;extension=php_sdo_das_xml.dll
;extension=php_shmop.dll
;extension=php_smtp.dll
;extension=php_snmp.dll
extension=php_soap.dll
extension=php_sockets.dll
extension=php_sqlite.dll
;extension=php_ssh2.dll
;extension=php_stats.dll
;extension=php_sybase_ct.dll
;extension=php_threads.dll
;extension=php_tidy.dll
;extension=php_timezonedb.dll
;extension=php_translit.dll
;extension=php_win32ps.dll
;extension=php_win32scheduler.dll
;extension=php_win32service.dll
;extension=php_win32std.dll
;extension=php_xdebug.dll
;extension=php_xmlreader.dll
extension=php_xmlrpc.dll
;extension=php_xmlwriter.dll
extension=php_xsl.dll
;extension=php_yaz.dll ; Module make problems
extension=php_zip.dll
extension=php_zlib_filter.dll
extension=php_ps.dll
extension=php_paradox.dll


I hope somebody has an Idea, how to fix this problem.

Thanks a lot!

Regards Felix from Germany



Die virtuelle Festplatte im Netz - 25 GB für deine Bilder, Musikfiles und Dateien! Jetzt kostenlos sichern!
-- 
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
Marvin Addison

Re: [cas-user] PHP-Client doesn´t work.

Reply Threaded More More options
Print post
Permalink
> If I call my example_simple.php it redirects to my CAS-server (Login). The
> URL looks allready nice =>
>
> https://xilef:8443/cas-server/login?service=http%3A%2F%2Fxilef%2Ftest%2Fexample_simple.php

I see that your CAS service URL is plain http, not https.  Many CAS
clients require SSL, and the infinite redirect you described could be
consistent with the client trying to redirect to an SSL URL that
itself is protected by CAS.  Try an https service URL, e.g.
https://xilef/test/example_simple.php, and see whether that helps.

M

--
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
Felix Burth

RE: [cas-user] Re: [cas-user] PHP-Client doesn´t work.

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Now I have this error-message:


--------------------------------------------------------------------------------
Warning: DOMDocument::loadXML() [domdocument.loadxml]: Empty string supplied as input in C:\xampp\htdocs\test\CAS\domxml-php4-to-php5.php on line 72
CAS Authentication failed!

You were not authenticated.

You may submit your request again by clicking here.

If the problem persists, you may contact the administrator of this site.
phpCAS 1.1.0RC1 using server https://xilef:8443/cas-server/:443/ (CAS 2.0)
--------------------------------------------------------------------------------


extension=php_domxml.dll is not selectet, because I use PHP5 -> (--with-dom: DOM support, to read the XML responses of the CAS server (PHP4);)

I m not sure why this string is empty.

Has somebody an idea?

regards Felix


Surfen - optimiert für MSN. Hol Dir die neue Version des Internet Explorers - kostenlos!
-- 
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user