t's
very cool stuff. Moose offers limited type checking. Moose reported a
mis-match in the type it expected versus the type it received.
"schema_class" eventually becomes an object attribute. Moose thinks that
"schema_class" should be set to an instance of type
"Catalyst::Model::
n => 'compliance',
'+select' => ['compliance.percent_compliant'],
'+as' => ['compliance.percent_compliant'],
join => 'department_id',
o the LDAP server. If the connection succeeded, then that
user is authenticated.
E-mail me off list if you would like a copy of that credential module.
--
Robert Wohlfarth
rbwohlfa...@gmail.com
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://
On Mon, May 21, 2012 at 11:03 AM, Luis Muñoz wrote:
>
> On May 21, 2012, at 11:42 AM, Robert Wohlfarth wrote:
>
> > The standard Catalyst::Authentication::Store::LDAP does not work with
> this model.
>
> I've been told that the "right" way to do authentic
n one of my projects reads "#!/usr/bin/env perl". Does the
Apache user have permissions to execute both "/usr/bin/env" and "perl"?
Can it find "perl" in the PATH? The Apache environment may have a totally
different PATH (or none at all).
--
Ro
to the interpreter.
In addition, if your CGI program depends on other environment
variables<http://httpd.apache.org/docs/2.0/howto/cgi.html#env>,
you will need to assure that those variables are passed by Apache.
--
Robert Wohlfarth
___
List: Catal
nt_id,
> role_id, user_id) V...', 'ARRAY(0x4fa0490)', 'ARRAY(0x533ea30)') called at
> /usr/local/share/perl5/DBIx/Class/Storage/DBI.pm line 789
>
I see that you send $new_role to the log. What is the value when it
crashes? An invalid value may cause unhelpful
he model code, I defined an
auto number field as the primary key. That makes DBIx::Class happy.
--
Robert Wohlfarth
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archiv
t;
>
You can set the primary key in the schema file. For example, add a
line like __PACKAGE__->set_primary_key(
"id" ); to lib/MyApp/Schema/Result/MyTable.pm. You do not need to change
the database. DBIx::Class will then use *id* whenever it wants
t" :)
>
I've used this configuration successfully in a couple of apps.
class NoPassword
class LDAP
ldap_server ldaps://ldap.domain:636
binddn uid=user,ou=group,dc=domain
bindpw password
user_basedn ou=people,dc=domain
user_field uid
user_filter (uid=%s)
user_scope
# Generate the HTML here with columns from $index_status...
foreach my $old_status ($index_status->old_statuses->all) {
# Generate the HTML here for any $old_status records...
}
}
--
Robert Wohlfarth
___
List: Catalyst@lists.scsys.
do not have a corresponding row in
old_statuses. The "join" tells the SQL generator to join the tables so that
you can add conditions about old_statuses. DBIx::Class automatically does a
LEFT JOIN because the relationship is declared has_many.
--
Robert Wohlfarth
___
12 matches
Mail list logo