This forum has been archived. All content is frozen. Please use KDE Discuss instead.

List ldap groups in konqueror permissions

Tags: None
(comma "," separated)
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I am currently testing some changes to my code ( so autocomplete for the superuser works )
Could you download and execute the binary here: http://sourtooth.googlepages.com/test-groups.zip
It should list all the groups you are in ( as seen with "groups" )

Thanks.
( It is zipped )


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
gracedman
Registered Member
Posts
66
Karma
0
Alas, it fails as both root and non-privileged user:

Code: Select all
root@jasiii:/download# ./test-groups
./test-groups: error while loading shared libraries: libkio.so.5: cannot open shared object file: No such file or directory
root@jasiii:/download# su - jasiii
jasiii@jasiii:~$ cd /download
jasiii@jasiii:/download$ ./test-groups
./test-groups: error while loading shared libraries: libkio.so.5: cannot open shared object file: No such file or directory


www.spiritualoutreach.com
Making Christianity intelligible to secular society
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
This means you have no KDE 4 components installed. I will see if I can build a Qt3 version.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I have been able to remove the KDE 4 dependency. As long as Qt4 is installed you will be able to run it. ( apt-get install libqt4 ) Same location as previously.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
gracedman
Registered Member
Posts
66
Karma
0
Glad to try especially after all your help. However, I get the same error. I installed libqt4-core and libqt4-gui (there was no libqt4 package) but that didn't work. Then I installed kdelibs5 and that had the libkio library. But it still fails but very strangely as the file is there and in the library path:

Code: Select all
ldconfig deferred processing now taking place
root@jasiii:/download# ./test-groups
./test-groups: error while loading shared libraries: libkio.so.5: cannot open shared object file: No such file or directory
root@jasiii:/download# dpkg-query -S libkio
kdelibs5: /usr/lib/kde4/lib/libkio.so.5
kdelibs4c2a: /usr/lib/libkio.so.4.2.0
kdelibs4c2a: /usr/lib/libkio.so.4
kdelibs5: /usr/lib/kde4/lib/libkio.so.5.0.0
root@jasiii:/download# ldconfig
root@jasiii:/download# ./test-groups
./test-groups: error while loading shared libraries: libkio.so.5: cannot open shared object file: No such file or directory
root@jasiii:/download# ln -s /usr/lib/kde4/lib/libkio.so.5 /usr/lib/libkio.so.5
root@jasiii:/download# ./test-groups
./test-groups: error while loading shared libraries: libkio.so.5: cannot open shared object file: No such file or directory
root@jasiii:/download# ln -s /usr/lib/kde4/lib/libkio.so.5 /usr/lib64/libkio.so.5
ln: creating symbolic link `/usr/lib64/libkio.so.5': File exists
root@jasiii:/download# ./test-groups
./test-groups: error while loading shared libraries: libkio.so.5: cannot open shared object file: No such file or directory

I tried linking it to /usr/lib but that didn't work. When I tried linking to /usr/lib64, it was already there! Unfortunately, I'm up to my eyeballs in two big projects so don't have much time to keep digging. Any idea of what I need to do next? Thanks - John


www.spiritualoutreach.com
Making Christianity intelligible to secular society
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
This is probably because I use the latest KDE, so it won't work. I double checked the package at the download location, and it is only dependant upon Qt, no KDE involved. Could you try redownloading it? Thanks.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
gracedman
Registered Member
Posts
66
Karma
0
Alas, the same error. Just to make sure, I deleted the old file rather than overwrite, did a wget http://sourtooth.googlepages.com/test-groups.zip, unzipped and ran. Same error - John


www.spiritualoutreach.com
Making Christianity intelligible to secular society
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I built a version with Qt3, using QMake. this only needs Qt3. It is located here: http://sourtooth.googlepages.com/test-groups-qt3.zip

Sorry for the inconvience.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
gracedman
Registered Member
Posts
66
Karma
0
That worked. As a regular user, it listed the groups of which I was a member. As root, it looks like it listed all groups.


www.spiritualoutreach.com
Making Christianity intelligible to secular society
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Thanks, that was the desired behaviour. I will now be able to send my patch to kde-core-devel.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
gracedman
Registered Member
Posts
66
Karma
0
We have finally begun heavy testing in preparation for putting this system into production. The patch is working perfectly except we have to revert to the old version with apt-get -f install every time we need to install anything which touches this library (which seems to be just about anything graphic). Is there any way to get around this behavior? Thanks - John


www.spiritualoutreach.com
Making Christianity intelligible to secular society
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You need to place a hold on the package.
I found these instructions, which should help, the second one looks the most relevant and easiest:
http://forums.debian.net/viewtopic.php?t=240
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=249017


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
gracedman
Registered Member
Posts
66
Karma
0
Alas, that didn't do the trick. It's not so much that its being overwritten but it is causing failed dependencies:

Code: Select all
root@jasiii:/data/Tech/ProjectPlans# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
  kdelibs: Depends: kdelibs4c2a (>= 4:3.5.10-0ubuntu1~hardy1.1) but 4:3.5.10-0ubuntu1~hardy1 is installed
E: Unmet dependencies. Try using -f.
root@jasiii:/data/Tech/ProjectPlans# ls *.deb
kdelibs4c2a_3.5.10-0ubuntu1~hardy1_amd64.deb


Do we need to change something inside the package? I'm quite the packaging ignoramus. Thanks - John


www.spiritualoutreach.com
Making Christianity intelligible to secular society
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The most secure way would be to download their updated patch set ( from http://archive.ubuntu.com/ubuntu/pool/m ... .1.diff.gz ) and apply them, which should also increase the version at the same time. You may need to start again however.

Alternately, you could just alter the "control" file in the "Debian" folder so that it has the version needed and remake the package.

On a related note, this fix will be included in KDE 4.3.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]