-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No information is displayed when opening user details in a multi-organizational DIT #51
Comments
Thanks for the report. We could indeed find a configuration setting to be able to match if the DN is a user or a group. |
For the record, the issue was also found in #45 |
I think we can add this parameter in config.inc.php: $dn_group_regex = '/ou=groups,/i';
#$dn_group_regex = '/'.$ldap_group_base.'$/i'; And then update dipslay.php: # Find object type
if ( preg_match( $dn_group_regex, $dn) ) { $type = "group"; }
else { $type = "user"; } I will push the code as soon as possible. |
FYI, I've been looking into this:
Would test tomorrow. PR's on its way, ... |
Hello @faust64, thanks a lot. I agree with the first branch (fix-display) but I'm not very fond of having several user/group branchs. I agree this can fix the issue but it requires to update the White Pages configuration if we create a new user or group branch. I prefer to let the group_regex (or user_regex) be configurable. |
When WP is used with a ldap DIT such as this:
Integrator needs to configure two identifcal ldap_base for search for users and groups in order to fetch all entries including the ones in sub organizations:
But when two identical ldap_base are configured, the below code in htdocs/display.php will consider that we are fetching a group even though we are actually fetching a user:
Resulting in following request being sent to ldap :
Quick and dirty fix was to change the offending lines as follow:
A solution could be add two config parameters for group and users "ou" potential name(s) ?
The text was updated successfully, but these errors were encountered: