Git Product home page Git Product logo

idbroker's People

Stargazers

 avatar  avatar  avatar  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  avatar  avatar

idbroker's Issues

Active Directory search problems using root of the domain as a $base_dn

Hi!

I'm using your LDAP Datasource in my Project (https://github.com/fiveoclock/proximus-admin/blob/master/app/models/datasources/ldap_source.php) and had problems searching when I used the root of the domain as $base_dn.

The solution was to following the Ldap option:

ldap_set_option($this->database, LDAP_OPT_REFERRALS, 0);

as described here: http://www.php.net/manual/de/function.ldap-search.php#49889

I added the line stated above to the ActiveDirectory specific section (line 1270) now everything is working properly :-) Maybe you want to add this to master as well....

By the way.. thank you for your work! I'm using your Ldap source to authenticate users against AD.

Cheers,
Alex

Include check for LDAP compat

At line 34, add the following:
if(!function_exists('ldap_connect'))
die("LDAP not configured on this server.");

Otherwise, your ldap_connect() function call is masked from reporting errors and your users (me) are left scratching their heads all day, trying to figure out what's wrong.

Strict warnings and typo

In 'LdapSource.php':

402 - function create( Model $model, $fields = null, $values = null ) {
402 + function create( &$model, $fields = null, $values = null ) {
488 - function read( Model $model, $queryData = array(), $recursive = null ) {
488 + function read( &$model, $queryData = array(), $recursive = null ) {
569 - function update(Model $model, $fields = null, $values = null, $conditions = null) {
569 + function update( &$model, $fields = null, $values = null ) {
632 - function delete(Model $model, $id = null) {
632 + function delete( &$model ) {
794 - function lastNumRows($source = null) {
794 + function lastNumRows() {

Then an error in 'LdapAuthenticate.php':

219 - return $result[$this->sqlModel->alias];
219 + return $result[$this->sqlUserModel->alias];

Integrate update chains

Need to implement functions to allow the change of one function to affect another.

functions should contain before and after form loads before fore presetting things like available uid&gid and after for things like making sure the qmailuid and qmailgid match uid & gid

  • preset(attribute, value)
  • onAttributeUpdate(attributetoupdate, value, recursive) //Note value could be a function that manipulates the data to get a new value and not just a full copy
    //recurisve for if the new value being updated

No submodule mapping found in .gitmodules for path 'webroot/js/jstree'

Hi,

I added Idbroker dev_cake2.0 branch to my project.

$ git submodule add -b dev_cake2.0 https://github.com/analogrithems/idbroker.git app/Plugin/Idbroker

I found .gitmodules under app/Plugin/Idbroker, so I try to update submodules. Then I got this error.

$ cd app/Plugin/Idbroker
$ git submodule update --init
No submodule mapping found in .gitmodules for path 'webroot/js/jstree'

It seems that the master branch is also same.

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.