Comments (6)
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.
from white-pages.
For the record, the issue was also found in #45
from white-pages.
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.
from white-pages.
FYI, I've been looking into this:
-
switching priorities, if ldap_user_base & ldap_group_base collide:
https://github.com/faust64/white-pages/tree/fix-display -
allowing for multiple groups/users OUs:
https://github.com/faust64/white-pages/tree/multi
Would test tomorrow. PR's on its way, ...
from white-pages.
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.
from white-pages.
from white-pages.
Related Issues (20)
- [WP 0.3] Problem with vCard export HOT 7
- Bad value displayed when attribute type is a list HOT 7
- Backup files are loaded as config in lang/
- Login Logout pages HOT 1
- WP not connecting to my ldap server HOT 5
- WP incompatible with PHP 8+ (ldap_sort) HOT 5
- Split debug and debug_smarty
- Provide CSS map files for minified version
- Use LTB LDAP common lib HOT 3
- Displayer for address
- Bug in group display in user and group base are the same
- Missing bin/ directory in packages
- Birthday page
- Add multi-tenancy feature
- Possibility to configure attribute displayed in a DN link
- Feature request: add custom url chat links HOT 1
- New map feature incorrectly deployed : missing map.js HOT 2
- sort for display
- Encoding issue whith dn_link
- use new ltb-ldap v0.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from white-pages.