Coder Social home page Coder Social logo

Comments (8)

coudot avatar coudot commented on June 14, 2024

Can you see what is configured in $display_items ? This should list all attributes displayed.

Check also logs on LDAP server side.

from white-pages.

adminrezo avatar adminrezo commented on June 14, 2024

I didn't change it :

$display_items = array('firstname', 'lastname', 'title', 'businesscategory', 'employeenumber', 'employeetype', 'mail', 'phone', 'mobile', 'fax', 'postaladdress', 'street', 'postalcode', 'l', 'state', 'manager', 'secretary', 'organizationalunit', 'organization', 'description', 'memberof');

My config is above :

$lang = "fr";
$ldap_url = "MY SERVERS";
$ldap_binddn = "MY MANAGER";
$ldap_bindpw = "MY PASS";
$ldap_base = "MY BASE";
$ldap_user_base = "ou=utilisateurs,".$ldap_base;
$ldap_user_filter = "(objectClass=inetOrgPerson)";
$ldap_user_filter = "(objectClass=Person)";
$ldap_group_base = $ldap_user_base;
$ldap_group_filter = "(|(objectClass=group)(objectClass=posixGroup))";

$attributes_map = array(
    ...
    'fullname' => array( 'attribute' => 'displayname', 'faclass' => 'user-circle', 'type' => 'text' ),
    ...
    'office' => array( 'attribute' => 'physicalDeliveryOfficeName', 'faclass' => 'building', 'type' => 'text' ),
    ...
);

$search_result_items = array('mail', 'phone', 'office', 'memberof');

$debug = true;
$use_directory = false;
$use_gallery = false;
$use_vcard = false;
$use_csv = false;

from white-pages.

coudot avatar coudot commented on June 14, 2024

Why do you have twice $ldap_user_filter ?

from white-pages.

adminrezo avatar adminrezo commented on June 14, 2024

Sorry, I forgot it. But it doesn't fix my problem.

from white-pages.

coudot avatar coudot commented on June 14, 2024

Put your Apache logs and LDAP logs here so we can have a look

from white-pages.

coudot avatar coudot commented on June 14, 2024

I think I see the issue: your group base is the same than your user base. White pages uses it to match againts the entry DN to know which kind of object it is.

Set a different group base.

from white-pages.

adminrezo avatar adminrezo commented on June 14, 2024

Hi @coudot,

Thanks a lot for your help.
The problem is solved.

from white-pages.

coudot avatar coudot commented on June 14, 2024

Great!

from white-pages.

Related Issues (20)

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.