Comments (6)
in the homer 3.5 we have used also dn
https://github.com/sipcapture/homer/blob/homer3/webhomer/class/auth/ldap/auth.php
the fix:
Line 72: Compat: This works for Active Directory, but might horribly break other directory services. Creating a constant in preferences called "ACTIVE_DIRECTORY" and checking that and determining whether to pass $username or $result[0]['dn'] would be better.
we can change it to a php constant variable
from homer-ui.
and
please test
from homer-ui.
should be:
$result[0][LDAP_GROUP_USER][0]
^^
if (!$this->check_filegroup_membership($ds,$result[0][LDAP_GROUP_USER][0])) {
then it works!
from homer-ui.
from homer-ui.
That looks good for us now. But it looks like you have to put the new grp values for admins also to $_SESSION:
diff --git a/api/Authentication/LDAP.php b/api/Authentication/LDAP.php
index dff73e5..b43fc90 100644
--- a/api/Authentication/LDAP.php
+++ b/api/Authentication/LDAP.php
@@ -124,6 +124,7 @@ class LDAP extends Authentication {
if ($value == $param['username']) {
$_SESSION['userlevel'] = 1; # LDAP_ADMINLEVEL;
$user['grp'] = "users,admins";
-
$_SESSION['grp'] = "users,admins"; } } return $user;
from homer-ui.
The pull request for this fix has already been accepted. I guess we can close this issue then :-)
from homer-ui.
Related Issues (20)
- QoS chart has 1px wide bars, barely readable/usable HOT 1
- When will be the next release cut? Last one was from July 2, 2020. HOT 1
- Resizing of QOS chart doesn't work in 7.10 HOT 1
- Alert widget improvment [low prio] HOT 1
- Protosearch, selection bug HOT 2
- Transaction / QoS - resizing doesn't work HOT 1
- Popup browser window broken HOT 1
- Flow export as PNG HOT 1
- Autorefresh not working HOT 9
- ISUP in SIP-I/SIP-T messages in Homer not decoded and displayed HOT 8
- RTCP view HOT 4
- SIP Call Search widget toggling AND/OR keeps orlogic: true
- Angular bug - ng build error: Invalid version: "15.2-15.3" HOT 3
- Poor scrolling in ladder view, Safari MacOS HOT 3
- Erratic input in Smart Search field, Safari MacOS HOT 3
- Grafana widget path
- List of fixes that need porting
- Bug in UI - SIP Call Search
- dependecy tree error when running npm install HOT 5
- security issues in homer-ui, status of maintenance HOT 6
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 homer-ui.