A PHP library to use some features of the FreeIPA / Red Hat Identity Management.
This is the ongoing version 1. If you want the version 0.x, see the branch 0.x instead.
FreeIPA SDK for PHP
License: GNU Lesser General Public License v3.0
A PHP library to use some features of the FreeIPA / Red Hat Identity Management.
This is the ongoing version 1. If you want the version 0.x, see the branch 0.x instead.
Hi, can you add an example in Readme File, please?
I am checking if there is any file named bootstrap.php, but I have failed to find any file.
I have run composer install
, but still don't know how to use this library.
An example in readme file to connect with the server would be appreciable.
I am trying this-
require_once('vendor/autoload.php');
$host = 'freeipa.bcc.gov.bd';
//$certificate = './vendor/gnumoksha/php-freeipa/certs/ipa.demo1.freeipa.org_ca.crt';
//$certificate = 'freeipa.bcc.gov.bd_ca.crt';
$certificate = 'ca.crt';
try {
$ipa = new \FreeIPA\APIAccess\Main($host, $certificate);
//print("Connected");
} catch (Exception $e) {
print("\nError {$e->getCode()}: {$e->getMessage()}");
}
//////////////////////////////////////////////////////////////////////////////////////////
$user = 'admin';
$password = '12345678';
try {
$auth = $ipa->connection()->authenticate($user, $password);
if ($auth) {
print 'Logged in';
} else {
$auth_info = $ipa->connection()->getAuthenticationInfo();
var_dump($auth_info);
}
} catch (Exception $e) {
print("\nError {$e->getCode()}: {$e->getMessage()}");
}
And finding this error-
Error 77: error setting certificate verify locations:
CAfile: ca.crt
CApath: none
Error 0: User is not logged in
CAn you plelase help?
Use HTTP-related PSR interfaces:
Hi, i am using your class to manage a user auth on a site. the problem i found is when the password expire, how to change it why the user-mod commad need to be authenticated but if exiperd i cannot auth.
thanks
Hi,
I've added a custom schema to my LDAP and I can't access these attibutes via php.
$user_data = array(
'givenname' => 'Richard',
'sn' => 'Stallman',
'uid' => "rms3",
'mail' => "[email protected]",
'userpassword' => 'Secret123',
//Custom attribute from Schema
'brcpf' => '24587458968'
);
When I added the attribute I got an error "Unknow option"
I'm doing something wrong?
If you need more details I can provide.
Ty in advance!
Handle scenarios where the password used for authentication is expired, like in #4
Setup php 7.1 - 7.4
Hi, would it be possible to pull all users as I was planning on filling a table for user editing?
Cheers,
Pete
Hi, since there is no bootstrap.php and autoload.php in the latest version of this application, can u give me an example of how I can install and run this package. Thanks in advance
Create some examples like the one in #10
php.DEBUG: Warning: curl_close() expects parameter 1 to be resource, null given {"exception":{"Symfony\\Component\\ErrorHandler\\Exception\\SilencedErrorContext":{"severity":2,"file":"/var/www/vendor/gnumoksha/php-freeipa/src/APIAccess/Connection.php","line":493,"trace":[{"file":"/var/www/vendor/gnumoksha/php-freeipa/src/APIAccess/Connection.php","line":440,"function":"endCurl","class":"FreeIPA\\APIAccess\\Connection","type":"->"}],"count":1}}} []
Add ability to access custom LDAP schema attributes like in #5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.