Giter Club home page Giter Club logo

php-freeipa's Introduction

php-freeipa

A PHP library to use some features of the FreeIPA / Red Hat Identity Management.

Build Status Scrutinizer Code Quality Latest Stable Version Total Downloads License Minimum PHP Version

This is the ongoing version 1. If you want the version 0.x, see the branch 0.x instead.

php-freeipa's People

Contributors

arthurmco avatar gamer1120 avatar gnumoksha avatar joethielen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

php-freeipa's Issues

Error 77: error setting certificate verify location

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?

how to manage change pass expired

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

Access custom schema attribute

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!

Warning curl_close() when null

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}}} []

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.