News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPied.com:
SAP container for PEARAuth
September 07, 2006 @ 07:04:09

If you've ever wanted to quickly and easily connect your PHP script over to a SAP server to authenticate a user but weren't sure quite how, you'll be happy to see that you can use the PEAR::Auth package to make the request - with a little help.

PEAR::Auth is a package that allows you to abstract the user authentication from the main part of your application and not worry about it. What is good about the package is that it comes with different "containers" that allows you to authenticate users against different storages.

So I played around with creating an SAP container that allows you to check users against your company's SAP system and for example build a section of your Internet (or Extranet) page that is only accessible for people and partners that exist as users in the SAP system.

There's an extension to PHP you'll need to get and install, but with that in place, it's as simple as setting the authentication type to "SAP" and giving it the hostname to connect to. He also includes some sample scripts to get you started, including the Auth_Container_SAP class that makes the magic happen.

0 comments voice your opinion now!
sap container pear package auth extension class saprfc sap container pear package auth extension class saprfc


blog comments powered by Disqus

Similar Posts

Secunia.com: Debian Update for PHP4 & PHP5

Community News: Latest PEAR Releases for 10.09.2006

Ian Selby's Blog: Dynamically Add Functions to PHP Classes

Christopher Jones' Blog: PHP PECL OCI8 1.3.4 is available

Zend Developer Zone: Working with RAR, LZF and BZ2 Compression Formats in PHP


Community Events





Don't see your event here?
Let us know!


composer update interview laravel mvc library package symfony version opinion release introduction framework series language tool voicesoftheelephpant security podcast community

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework