
andrew at morphoss
Sep 30, 2011, 2:10 AM
Post #4 of 6
(296 views)
Permalink
|
On Fri, 2011-09-30 at 10:32 +0200, Frank Steinberg wrote: > Thanks a lot! > > (Wouldn't it be reasonable to apply this change upstream?) Well... The reason for the $c->expand_pdo_parameters option in the first place is so that DAViCal can work around variations in the way PHP's PDO drivers handle parsing of named parameters in SQL statements - something that DAViCal uses rather a lot. I guess the issue (as Frank points out) is that AWL does not handle the SQL 'BIT' type correctly and this is where the fix should really be applied. Frank's is a good workaround though. Cheers, Andrew. > > -frank > > Am 29.09.2011 um 16:42 schrieb Peter Rindfuss: > > > On 29.09.2011 14:11, Frank Steinberg wrote: > >> Hi, > >> > >> for a long time I did not update my local users and groups from the > >> underlying LDAP. When I did this again these days, I notices a couple > >> of error messages and none of the expected new users in the > >> database. > >> > >> As fas as I can tell today, the problem seems to be the fact that in > >> Principal.php default_privileges is set to an integer value: > >> > >> $field_values->{'default_privileges'} = > >> decbin(privilege_to_bits($c->default_privileges)); > >> > >> which results in SQL commands that contain integers instead of > >> BIT(24)-values. This probably needs to be fixed in libawl which does > >> not yet support BITs. > >> > > > > > > Hi Frank, > > > > You can fix this in two steps. > > > > First, set > > $c->expand_pdo_parameters = false; > > in the config file > > > > Second, change the above line to > > $field_values->{'default_privileges'} = > > sprintf('%024s', decbin(privilege_to_bits($c->default_privileges))); > > > > Cheers, Peter > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Davical-general mailing list > Davical-general [at] lists > https://lists.sourceforge.net/lists/listinfo/davical-general > -- ------------------------------------------------------------------------ andrew (AT) morphoss (DOT) com +64(272)DEBIAN Chemist who falls in acid will be tripping for weeks. ------------------------------------------------------------------------
|