-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
LDAP: List/Table in Users and Groups not sortable #399
Comments
Can you I don't have this module setup. |
It's easy. Any help? |
The source is easy enough to access, but the account data is sensitive company information. I've tried to review it myself, but I can't seem to find any major differences in how the tables are implemented in LDAP Users and Groups and the standard Users and Groups module. As a matter of fact, the LDAP Users and Groups module calls functions from the Users and Groups module to create the table. Could it be that you're making an exception for that module to force the table to be sortable? If so, perhaps LDAP Users and Groups could be included in such an exception. I've done a little toward trying to sanitize the page source, to remove sensitive information, but there's still a lot there. If you feel that's essential to solving the problem, I can spend more time on it. |
I just need you to copy the selector path using console. I don't care about data. |
I might need help with that. I can get the selector for the table, but I don't know how to get the selector path. |
Best I can tell, the table on the LDAP UaG module has Here's the selector tags for the table: |
The original U&G module's tags are like this: |
Go to Chrome's console, switch
Does it work? In case it does, take a look at the right frame source and tell me the name of the URL, like |
Uncaught ReferenceError: _init_dt is not defined(…)(anonymous function) @ VM12640:2InjectedScript._evaluateOn @ VM12630:875InjectedScript._evaluateAndWrap @ VM12630:808InjectedScript.evaluate @ VM12630:664 |
What OS browser you have? |
Just in case it still has some troubleshooting value, the frame source is https://server.example.com:10000/ldap-useradmin/index.cgi for LDAP UaG, and |
Ok, good. What if you add the code I provided to js extension using theme settings? |
Windows 7 / Chrome Version 48.0.2564.116 m (64-bit) |
Can you add this |
It should initialize your sortings in case you got the selector correctly. |
I assume you mean add it to Webmin Configuration>>Webmin Themes>>Current Theme>>Theme Extensions>>Edit scripts.js and add the line: |
I tried that, and it doesn't seem to change anything. |
Then try removing |
Any luck? |
Haven't had the time to do any more troubleshooting. I did discover that LDAP UaG uses the default sort order from the settings of the standard UaG module, so there's a workaround to tell it to sort by name, but default, but it's still not displaying like a sortable data table. |
This is working fine after 1.791-1 upgrade. |
I'm not sure what you mean. Nothing was changed in this regard on the theme's side. You should still have no ability to sort, I guess. |
Can you click bluе back button OR back button on top and see if issue comes back? I have a feeling, that I don't catch URL properly in some cases and when modules name starts to have |
I've tried both. I don't see any change. Sorting works as expected and everything. I haven't had time to check, but perhaps the LDAP U&G addon was updated with the last Webmin update. |
This is interesting: On the two servers I have Webmin running on, one of them is not showing the table under "Network Interfaces" as sortable, and the other one is. They are both on Webmin 1.791 and Authentic Theme 17.72. |
I'm getting "uncaught TypeError: _init_dt is not a function" on the server that DOES display the table as sortable. The console shows no error for the other server. |
I don't see how is this possible in case versions are the same. Did you restart |
Probably it's something that you left and forgot in theme's custom extensions? Check for it. |
LDAP started working after Webmin update? LDAP was updated 2 months ago. |
Wait a second. The server that's working now, still has the code you asked me to add. Perhaps that's why other tables are working/sortable (Network Interfaces, Webmin Actions Log, etc), whereas they are not on the server that doesn't have LDAP UaG |
Try removing that code and see if anything changes - it should, right? |
Yes. When I do that, I lose the sortable columns in the Webmin Actions Log (using that for an example) |
And in LDAP UaG, but not the standard UaG module |
Okay, so for some reason, putting the code back into scripts.js and restarting the server, does NOT bring the sortable tables back. Even the ones that worked prior to removing that line of code. |
So maybe the code fixed it, but it didn't get applied until the Webmin update? I'm not sure how to get it to re-read that scripts.js file. |
Script file is re-read each time when the page is reloaded (It should by the browser, no need for restarting Webmin). Hard reload the page. Which browser are you using? |
Chrome Version 49.0.2623.87 m (64-bit) |
Hard reloading will fix stuck cache. |
Did a hard reload. The LDAP UaG is now sortable again, but for some odd reason, the Webmin Actions Log table is not; on either server. I'm 98% certain that it was working yesterday before I removed the code. |
The URLs for the frames that work, and the ones that don't seem very different. |
To make Webmin log sortable you would need
Ok, I will make things work well by the 17.80 ;) |
I'll need you to test things before release, so stay tuned please. One more time: LDAP sorting is working for you with out an issue? |
Yes. LDAP Users and Groups sorting works without issue. |
I'll be happy to help test. I appreciate your time and patience! |
LDAP works and you have nothing in custom |
No. I still have _init_dt($('form > table.table.table-striped.table-condensed')) in scripts.js. |
Here's the URL for that frame: https://server.example.com:10000/ldap-useradmin/ |
Great, thanks for saying. |
Hi, Could you please remove/comment out Could you provide the screenshot of the top of the table starting with Thanks. |
Will be fixed with 17.80. Thanks for reporting. |
Thank you for all your work on this! 👍 |
I'm actually behind a Websense proxy that blocks .ru addresses. Can you post that code here? |
Please upgrade 17.80 is out! |
The main List/Table in LDAP Users and Groups is no longer sortable by heading. The sort function works fine in the classic Users and Groups module with this theme.
The text was updated successfully, but these errors were encountered: