Re: [PHP] SSPI php extension

2012-02-03 Thread Hendrik Schmieder

Curtis Maurand schrieb:

Hendrik Schmieder wrote:
  Hello,
 
  Is there a SSPI php extension ?
  I only found a perl extension sofar.
  (http://search.cpan.org/~tomk/Win32-IntAuth-0.20/lib/Win32/IntAuth.pm)
 
  I want to make what is written on the above side for the server in php.
 
  with best regards
 
  Hendrik
 


 Apache has one (mod_auth_sspi)


This doesn't help me since the php script isn't executed in the context 
of apache nor IIS.


The function in the php script has two arguments, both string.
The first argument ($username) has the form n...@domain.tld, the second 
is some sort of token .


Now the php function should check if the token is valid and if it is 
also possible to check if the token is for the user given by the first 
argument.


keyword : Windows athentification.

with best regards

   Hendrik



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Function links on error and warningmessages

2012-02-03 Thread Florian Müller

Hi guys,

I was wondering some time ago, why the links which are shown on error or 
warning (E_WARNING etc.) show relative links to an usually non-existing file.

Wouldn't it be much more useful if all errors are linking to the function 
description on php.net? 

So, if I get an error with file_exists, for example, it links on 
myCurrentDir/function.file-exists.php. Wouldn't it be nice if it links to 
http://php.net/file_exists?

Regards, Flo
  

RE: [PHP] Function links on error and warningmessages

2012-02-03 Thread Ford, Mike
 -Original Message-
 From: Florian Müller [mailto:florip...@hotmail.com]
 Sent: 03 February 2012 14:36
 
 Hi guys,
 
 I was wondering some time ago, why the links which are shown on
 error or warning (E_WARNING etc.) show relative links to an usually
 non-existing file.

Because you haven't set the docref_root configuration option?
(See http://php.net/errorfunc.configuration.php#ini.docref-root). 


Cheers!

Mike

-- 
Mike Ford,
Electronic Information Developer, Libraries and Learning Innovation,  
Portland PD507, City Campus, Leeds Metropolitan University,
Portland Way, LEEDS,  LS1 3HE,  United Kingdom 
E: m.f...@leedsmet.ac.uk T: +44 113 812 4730



To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Typecasting question

2012-02-03 Thread jas

I am familiar with typecasting. Booleans, ints, strings, etc.

However while using an extension, more specifically the OpenSSL 
extension I have come across a problem I am not entirely familiar with.


I have an array that looks like...

array('config' = 'config/openssl.cnf',
  'encrypt_key'= true,
  'private_key_type'   = 'OPENSSL_KEYTYPE_RSA',
  'digest_algorithm'   = 'sha256',
  'private_key_bits'   = 512,
  'x509_extensions'= 'usr_cert',
  'encrypt_key_cipher' = 'OPENSSL_CIPHER_3DES');

And according to the current OpenSSL documentation regarding the 
configuration constants 
(http://www.php.net/manual/en/openssl.ciphers.php) the array needs to 
have the 'private_key_type' and 'encrypt_key_cipher' elements as an INT 
value vs the string they are currently. Like so.


array('private_key_type'   = OPENSSL_KEYTYPE_RSA,
  'encrypt_key_cipher' = OPENSSL_CIPHER_3DES);

I have tried to perform typecasting these two elements as an int but 
because they are specific to the extension I am not certain how I should 
go about doing this.


According to the source for php (the openssl.c) file is an internal 
attribute that I cannot find an integer value for to set it manually vs. 
using the pre-defined constant values mentioned in the docs.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Function links on error and warningmessages

2012-02-03 Thread Matijn Woudt
On Fri, Feb 3, 2012 at 4:35 PM, Ford, Mike m.f...@leedsmet.ac.uk wrote:
 -Original Message-
 From: Florian Müller [mailto:florip...@hotmail.com]
 Sent: 03 February 2012 14:36

 Hi guys,

 I was wondering some time ago, why the links which are shown on
 error or warning (E_WARNING etc.) show relative links to an usually
 non-existing file.

 Because you haven't set the docref_root configuration option?
 (See http://php.net/errorfunc.configuration.php#ini.docref-root).


 Cheers!

 Mike


While that's indeed correct, I wonder why the docref_root isn't set by
default (eg. www.php.net)?

- Matijn

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Typecasting question

2012-02-03 Thread Marco Behnke
Am 03.02.12 17:11, schrieb jas:
 I am familiar with typecasting. Booleans, ints, strings, etc.

 However while using an extension, more specifically the OpenSSL
 extension I have come across a problem I am not entirely familiar with.

 I have an array that looks like...

 array('config' = 'config/openssl.cnf',
   'encrypt_key'= true,
   'private_key_type'   = 'OPENSSL_KEYTYPE_RSA',

remove the quotes around the constant, it must be

'private_key_type'   = OPENSSL_KEYTYPE_RSA,

   'digest_algorithm'   = 'sha256',
   'private_key_bits'   = 512,
   'x509_extensions'= 'usr_cert',
   'encrypt_key_cipher' = 'OPENSSL_CIPHER_3DES');

same here

-- 
Marco Behnke
Dipl. Informatiker (FH), SAE Audio Engineer Diploma
Zend Certified Engineer PHP 5.3

Tel.: 0174 / 9722336
e-Mail: ma...@behnke.biz

Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal

http://www.behnke.biz




signature.asc
Description: OpenPGP digital signature