[Patch] Fixes for IdentityProvider and LDAP
|
Reklov
Joined: 2012-04-08
Posts: 3 |
Posted: Sun, 2012-04-08 14:44
|
|||||
|
Hi there, after some hours trying to figure out a way to make Gallery3 and module LDAP work with the given LDAP server, I came up with the two patches attached: gallery3-0001-IdentityProvider-and-user-Some-fixes.patch.gz * check for $new_provider::admin_user() before sending the event ldap-0001-ldap-Several-fixes-and-improvements.patch.gz * changed ldap_installer::install() to activate() so that ldap can be The changes regarding renaming install() to activate() could be superfluous with the other fixes since there should not go anything wrong during install and uninstall. However, they do no harm and are really practical if something does go wrong. Hope you can make some use of those (I diffed against current git checkouts). Cheers,
|
||||||

Posts: 25959
Thanks for that. I think there is a LDAP ticket or two in the tracker.
http://sourceforge.net/apps/trac/gallery/
best create a ticket ( none exists ) and attach your patches so it does not get lost in the forums.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 3
A bit delayed, but the ticket is created: https://sourceforge.net/apps/trac/gallery/ticket/1834
Posts: 1
Hi,
I tried to download and install those two patch files.
However, I got the following error:
[root@test]# patch p0 < ldap-0001-ldap-Several-fixes-and-improvements.patch
patch unexpectedly ends in middle of line
patch: **** Only garbage was found in the patch input.
I wondered if there is another way to install patch files.
Posts: 3
Hi,
try this command:
patch -p0 < ldap-0001-ldap-Several-fixes-and-improvements.patch
If this doesn't work, be sure that the patchfile is not zipped (ending on .gz); in this case use gunzip to unpack.
Cheers,
Reklov