[Catalyst] Catalyst::Authentication::Credential::LDAP
Hi, there's already C::A::Store::LDAP to authenticate users against LDAP servers. This module fetches a user from LDAP and checks his password (if you told C::A::Credential::Password password_type => self_check). In most of my apps i don't want to fetch the user from LDAP whereas i just want to check his password against LDAP. The user, his roles and preferences are stored in a database. So i use C::A::Store::DBIx::Class to retrieve a user from the store and a custom C::A::Credential::LDAP to verify his password. Maybe this setup is used by someone else too and above all C::A::Credential::LDAP is useful? If that's the case i'll put it on CPAN - what do you think? Thanks for your time, plu -- Johannes Plunien | mailto:[EMAIL PROTECTED] | http://www.pqpq.de ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Announce: Catalyst::Authentication::Credential::Authen::Simple
Hi Jose, your credential module deprecates my idea writing Credential::LDAP. Your module is way more flexible and fits exactly my needs - so i want to thank you :) Kind regards, Johannes -- Johannes Plunien | mailto:[EMAIL PROTECTED] | http://www.pqpq.de On 28.06.2008, at 16:54, Jose Luis Martinez wrote: Hello, Just wanted to announce that I've published Catalyst::Authehtication::Credential::Authen::Simple. This credential module will permit Catalyst users use the Authen::Simple modules to verify the user supplied credentials. That way, you can authenitcate against LDAP, POP3 servers, HTTP, Passwd files, DBI, etc just configuring the Authen::Simple classes that you want to use. Please give it a test drive, and tell me if you like it, bugs, things to be improved, etc. Thanks, Jose Luis Martinez Torres [EMAIL PROTECTED] CAPSiDE ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] transactions with DBIx::Class model
Hi, On 02.08.2008, at 18:34, Ansgar Burchardt wrote: The C::M::DBIC::Schema documentation says that I should be able to access the schema object via $c->model("MyApp::Something")->schema, but if I do so I get the following error: Can't locate object method "schema" via package "DBIx::Class::ResultSet" let's say your model is called 'FilmDB' and you got an 'Actor' schema/ table. I guess you did something like $c->model('FilmDB::Actor')- >schema->txn_do - right? Please try instead $c->model('FilmDB')- >schema->txn_do(...). # to access schema methods directly: $c->model('FilmDB')->schema->source(...); HTH, plu -- Johannes Plunien | mailto:[EMAIL PROTECTED] | http://www.pqpq.de smime.p7s Description: S/MIME cryptographic signature ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] getting database handles and run arbitrary SQL
Hi, On 24.09.2008, at 09:15, theshz wrote: Is it possible to get the database handle and run SQL directly as in DBI? yes, try: my $dbh = $c->model('DBIC::User')->result_source->storage->dbh; (assuming your model based on Catalyst::Model::DBIC::Schema is named DBIC and you got a schema called User) Kind regards, plu -- Johannes Plunien | mailto:[EMAIL PROTECTED] | http://www.pqpq.de/contact/ smime.p7s Description: S/MIME cryptographic signature ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] create search engine friendly uri from string
On 15.12.2008, at 21:22, Jim Spath wrote: You might also want to add these two to the end: =~ s/--+/-/g; =~ s/-$//g; Scott McWhirter wrote: $str =~ s{\W}{}g; $str = lc($str); $str =~ s{\s+}{-}g; My not very elegant, but working solution: my $str = " Beta Launch Invites: Kwyno Brings The Web Into Your IM And (Soon) SMS Inboxes "; $str =~ s/^\s+|\s+$//g; $str =~ s/\W/ /g; $str =~ s/\s{1,}/ /g; $str =~ s/\s/-/g; $str = lc($str); print "$str\n"; -- Johannes Plunien | mailto:p...@pqpq.de | http://www.pqpq.de/contact/ smime.p7s Description: S/MIME cryptographic signature ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Where is the DAO equivalent?
On 27.05.2009, at 18:59, Jarom Smith wrote: So, my question is: In a Catalyst context, where do I put these kinds of "helper" DB methods and how do I access them? (both from within a Catalyst app, as well as from the command-line like in a Cron job or whatever...) Some actual specific examples would be great. I'm sure there is a way, and I'm guessing it involves the model somehow (possibly by creating a new model class?) but I haven't been able to figure it out yet. I tried adding methods to the classes created by Catalyst/DBIC in the Schema/Result directory, but gradually it dawned on me that methods placed here are only dealing with a single entity of that type. To go back to Java- speak, it seems like the stuff in Schema/Result are DTO methods; what I'm trying to figure out is how/where to put the DAO methods. http://www.pqpq.de/mt/2009/05/catalyst-dbic-dao.html Cheers, plu -- Johannes Plunien | mailto:p...@pqpq.de | http://www.pqpq.de/contact/ smime.p7s Description: S/MIME cryptographic signature ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Connect Catalyst app to MS SQL Server 2005
On 27.05.2009, at 21:44, Ascii King wrote: schema_class WebTest::Schema dsn dbi:odbc:WebTestODBC userWebGuy password webtest AutoCommit 1 M/Model::DB> schema_class WebTest::Schema connect_info dbi:odbc:WebTestODBC connect_info WebGuy connect_info webtest AutoCommit 1 ... should do the trick. See also: http://search.cpan.org/dist/Catalyst-Model-DBIC-Schema/lib/Catalyst/Model/DBIC/Schema.pm#CONFIG_PARAMETERS Cheers, plu -- Johannes Plunien | mailto:p...@pqpq.de | http://www.pqpq.de/contact/ smime.p7s Description: S/MIME cryptographic signature ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/