|
List Info
Thread: New auth stuff and LDAP store...
|
|
| New auth stuff and LDAP store... |
  United States |
2007-07-21 18:51:46 |
Folks,
I have been wracking my head on this for a few days
now (with jayk
and mst offering much appreciated support on irc). It
appears that the
LDAP store (both .4 and .5) does not play nicely with the
new auth .10
changes. From what I have been able to diagnose it appears
as though there
is an issue with object stringification between
auth/credpassword and ldap
store. The root error shown (when running with debug on and
using any of
the LDAP store generated accessors such as
$c->user->username ) is :
[error] Caught exception in
TestLDAP::Controller::Auth->login "Can't use
string ("Catalyst::Plugin::Authentication") as a
HASH ref while "strict
refs" in use at
/Library/Perl/5.8.6/Class/Accessor/Fast.pm line 39.
at /Library/Perl/5.8.6/Class/Accessor/Fast.pm line 39
Placing a local $SIG = &Carp::confess; on line
38 of C::A::F I
get a dump such as this:
[error] Caught exception in
TestLDAP::Controller::Auth->login "Can't use
string ("Catalyst::Plugin::Authentication") as a
HASH ref while "strict
refs" in use at
/Library/Perl/5.8.6/Class/Accessor/Fast.pm line 39.
at /Library/Perl/5.8.6/Class/Accessor/Fast.pm line 39
Class::Accessor::Fast::__ANON__('Catalyst::Plugin::Authentic
ation::Store::LDAP::Backend')
called at /Library/Perl/5.8.6
/Catalyst/Plugin/Authentication/Store/LDAP/User.pm line 95
Catalyst::Plugin::Authentication::Store::LDAP::User::stringi
fy('Catalyst::Plugin::Authentication::Store::LDAP::User=HASH
(0x1b...')
called at /Library/Perl/5.8.6
/Catalyst/Plugin/Authentication/Store/LDAP/User.pm line 50
Catalyst::Plugin::Authentication::Store::LDAP::User::__ANON_
_('Catalyst::Plugin::Authentication::Store::LDAP::User=HASH(
0x1b...',
'undef', '') called at /Library/Perl/5.8.6
/Catalyst/Plugin/Authentication/Credential/Password.pm line
141
Catalyst::Plugin::Authentication::Credential::Password::logi
n('TestLDAP=HASH(0x1bdf4cc)',
'USERNAME', 'PASSWORD') called at
/Volumes/stuffs/Apps/TestLDAP/script/../lib/TestLDAP/Control
ler/Auth.pm
line 47
TestLDAP::Controller::Auth::login('TestLDAP::Controller::Aut
h=HASH(0x1b66f90)',
'TestLDAP=HASH(0x1bdf4cc)') called at /Library/Perl/5.8.6
/Catalyst/Action.pm line 47
Catalyst::Action::execute('Catalyst::Action=HASH(0x1bc3350)'
,
'TestLDAP::Controller::Auth=HASH(0x1b66f90)',
'TestLDAP=HASH(0x1bdf4cc)')
called at /Library/Perl/5.8.6/Catalyst/Action.pm line 32
Catalyst::Action::__ANON__('TestLDAP::Controller::Auth=HASH(
0x1b66f90)',
'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6/Catalyst.pm line
1187
eval {...} called at /Library/Perl/5.8.6/Catalyst.pm
line 1187
Catalyst::execute('TestLDAP=HASH(0x1bdf4cc)',
'TestLDAP::Controller::Auth',
'Catalyst::Action=HASH(0x1bc3350)') called at
/Library/Perl/5.8.6/Catalyst/Action.pm line 42
Catalyst::Action::dispatch('Catalyst::Action=HASH(0x1bc3350)
',
'TestLDAP=HASH(0x1bdf4cc)') called at /Library/Perl/5.8.6
/Catalyst/Controller.pm line 74
Catalyst::Controller::_ACTION('TestLDAP::Controller::Auth=HA
SH(0x1b66f90)',
'TestLDAP=HASH(0x1bdf4cc)') called at /Library/Perl/5.8.6
/Catalyst/Action.pm line 47
Catalyst::Action::execute('Catalyst::Action=HASH(0x1bb230c)'
,
'TestLDAP::Controller::Auth=HASH(0x1b66f90)',
'TestLDAP=HASH(0x1bdf4cc)')
called at /Library/Perl/5.8.6/Catalyst/Action.pm line 32
Catalyst::Action::__ANON__('TestLDAP::Controller::Auth=HASH(
0x1b66f90)',
'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6/Catalyst.pm line
1187
eval {...} called at /Library/Perl/5.8.6/Catalyst.pm
line 1187
Catalyst::execute('TestLDAP=HASH(0x1bdf4cc)',
'TestLDAP::Controller::Auth',
'Catalyst::Action=HASH(0x1bb230c)') called at
/Library/Perl/5.8.6/Catalyst/Action.pm line 42
Catalyst::Action::dispatch('Catalyst::Action=HASH(0x1bb230c)
',
'TestLDAP=HASH(0x1bdf4cc)') called at /Library/Perl/5.8.6
/Catalyst/Dispatcher.pm line 177
Catalyst: ispatche
r::forward('Catalyst: ispatche
r=HASH(0x1a79c10)',
'TestLDAP=HASH(0x1bdf4cc)', '_ACTION') called at
/Library/Perl/5.8.6
/Catalyst.pm line 300
Catalyst::forward('TestLDAP=HASH(0x1bdf4cc)',
'_ACTION') called at
/Library/Perl/5.8.6/Catalyst/Controller.pm line 48
Catalyst::Controller::_DISPATCH('TestLDAP::Controller::Auth=
HASH(0x1b66f90)',
'TestLDAP=HASH(0x1bdf4cc)') called at /Library/Perl/5.8.6
/Catalyst/Action.pm line 47
Catalyst::Action::execute('Catalyst::Action=HASH(0x2d42dfc)'
,
'TestLDAP::Controller::Auth=HASH(0x1b66f90)',
'TestLDAP=HASH(0x1bdf4cc)')
called at /Library/Perl/5.8.6/Catalyst/Action.pm line 32
Catalyst::Action::__ANON__('TestLDAP::Controller::Auth=HASH(
0x1b66f90)',
'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6/Catalyst.pm line
1187
eval {...} called at /Library/Perl/5.8.6/Catalyst.pm
line 1187
Catalyst::execute('TestLDAP=HASH(0x1bdf4cc)',
'TestLDAP::Controller::Auth',
'Catalyst::Action=HASH(0x2d42dfc)') called at
/Library/Perl/5.8.6/Catalyst/Action.pm line 42
Catalyst::Action::dispatch('Catalyst::Action=HASH(0x2d42dfc)
',
'TestLDAP=HASH(0x1bdf4cc)') called at /Library/Perl/5.8.6
/Catalyst/Dispatcher.pm line 177
Catalyst: ispatche
r::forward('Catalyst: ispatche
r=HASH(0x1a79c10)',
'TestLDAP=HASH(0x1bdf4cc)', '/auth/_DISPATCH') called at
/Library/Perl/5.8.6/Catalyst.pm line 300
Catalyst::forward('TestLDAP=HASH(0x1bdf4cc)',
'/auth/_DISPATCH')
called at /Library/Perl/5.8.6/Catalyst/Dispatcher.pm line
116
Catalyst: ispatche
r::dispatch('Catalyst: ispatche
r=HASH(0x1a79c10)',
'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6/Catalyst.pm line
1136
Catalyst::dispatch('TestLDAP=HASH(0x1bdf4cc)')
called at
/System/Library/Perl/5.8.6/NEXT.pm line 75
NEXT::AUTOLOAD('TestLDAP=HASH(0x1bdf4cc)') called
at
/Library/Perl/5.8.6/Catalyst/Plugin/Static/Simple.pm line
62
Catalyst::Plugin::Static::Simple::dispatch('TestLDAP=HASH(0x
1bdf4cc)')
called at /Library/Perl/5.8.6/Catalyst.pm line 1496
eval {...} called at /Library/Perl/5.8.6/Catalyst.pm
line 1487
Catalyst::handle_request('TestLDAP') called at
/Library/Perl/5.8.6
/Catalyst/Engine/HTTP.pm line 365
Catalyst::Engine::HTTP::_handler('Catalyst::Engine::HTTP::Re
starter=HASH(0x1a8d7e0)',
'TestLDAP', 3000, 'POST', '/auth/login', 'HTTP/1.1') called
at
/Library/Perl/5.8.6/Catalyst/Engine/HTTP.pm line 275
Catalyst::Engine::HTTP::run('Catalyst::Engine::HTTP::Restart
er=HASH(0x1a8d7e0)',
'TestLDAP', 3000, 'undef', 'HASH(0x180c418)') called at
/System/Library/Perl/5.8.6/NEXT.pm line 75
NEXT::AUTOLOAD('Catalyst::Engine::HTTP::Restarter=HASH(0x1a8
d7e0)',
'TestLDAP', 3000, 'undef', 'HASH(0x180c418)') called at
/Library/Perl/5.8.6
/Catalyst/Engine/HTTP/Restarter.pm line 69
Catalyst::Engine::HTTP::Restarter::run('Catalyst::Engine::HT
TP::Restarter=HASH(0x1a8d7e0)',
'TestLDAP', 3000, 'undef', 'HASH(0x180c418)') called at
/Library/Perl/5.8.6/Catalyst.pm line 1800
Catalyst::run('TestLDAP', 3000, 'undef',
'HASH(0x180c418)') called
at ./testldap_server.pl line 55"
If I turn off debug things seem to play a little bit better
-- the line
that seems to be tossing the error is 141 in
Credential/Password.pm:
$c->log->debug("Successfully authenticated user
'$user'.")
if $c->debug;
which leads be to believe that there is a bigger issue with
passing $user
around as an object vs string vs hash between these
modules.
Thanks!
Wade Stuart
Fallon Worldwide
P: 612.758.2660
C: 612.877.0385
_______________________________________________
List: Catalyst lists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalyst lists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/
|
|
| Re: New auth stuff and LDAP store... |
  United States |
2007-07-21 22:02:00 |
For the benefit of the list:
This issue has been resolved. It turned out to be a
disagreement
between what C::P::Authenticaiton was trying to place in
$user->store
() and what LDAP was trying to place in $user->store()
LDAP was correct, and C::P::Authentication should keep it's
grubby
little hands off of $user->store() - I am pushing a
maintenance
release of C::P::Authentication to CPAN now. Should be
available
from CPAN in a few hours.
JayK
On Jul 21, 2007, at 6:51 PM, Wade.Stuart fallon.com wrote:
>
>
>
>
> Folks,
>
>
> I have been wracking my head on this for a few
days now (with
> jayk
> and mst offering much appreciated support on irc). It
appears that
> the
> LDAP store (both .4 and .5) does not play nicely with
the new auth .10
> changes. From what I have been able to diagnose it
appears as
> though there
> is an issue with object stringification between
auth/credpassword
> and ldap
> store. The root error shown (when running with debug on
and using
> any of
> the LDAP store generated accessors such as
$c->user->username ) is :
>
>
> [error] Caught exception in
TestLDAP::Controller::Auth->login
> "Can't use
> string ("Catalyst::Plugin::Authentication")
as a HASH ref while
> "strict
> refs" in use at
/Library/Perl/5.8.6/Class/Accessor/Fast.pm line 39.
> at /Library/Perl/5.8.6/Class/Accessor/Fast.pm line 39
>
>
> Placing a local $SIG = &Carp::confess; on
line 38 of
> C::A::F I
> get a dump such as this:
>
> [error] Caught exception in
TestLDAP::Controller::Auth->login
> "Can't use
> string ("Catalyst::Plugin::Authentication")
as a HASH ref while
> "strict
> refs" in use at
/Library/Perl/5.8.6/Class/Accessor/Fast.pm line 39.
> at /Library/Perl/5.8.6/Class/Accessor/Fast.pm line 39
>
> Class::Accessor::Fast::__ANON__
>
('Catalyst::Plugin::Authentication::Store::LDAP::Backend')
> called at /Library/Perl/5.8.6
> /Catalyst/Plugin/Authentication/Store/LDAP/User.pm line
95
>
>
Catalyst::Plugin::Authentication::Store::LDAP::User::stringi
fy
>
('Catalyst::Plugin::Authentication::Store::LDAP::User=HASH(0
x1b...')
> called at /Library/Perl/5.8.6
> /Catalyst/Plugin/Authentication/Store/LDAP/User.pm line
50
>
>
Catalyst::Plugin::Authentication::Store::LDAP::User::__ANON_
_
>
('Catalyst::Plugin::Authentication::Store::LDAP::User=HASH(0
x1b...',
> 'undef', '') called at /Library/Perl/5.8.6
> /Catalyst/Plugin/Authentication/Credential/Password.pm
line 141
>
>
Catalyst::Plugin::Authentication::Credential::Password::logi
n
> ('TestLDAP=HASH(0x1bdf4cc)',
> 'USERNAME', 'PASSWORD') called at
>
/Volumes/stuffs/Apps/TestLDAP/script/../lib/TestLDAP/Control
ler/
> Auth.pm
> line 47
>
>
TestLDAP::Controller::Auth::login('TestLDAP::Controller::Aut
h=HASH
> (0x1b66f90)',
> 'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6
> /Catalyst/Action.pm line 47
>
Catalyst::Action::execute('Catalyst::Action=HASH(0x1bc3350)'
,
> 'TestLDAP::Controller::Auth=HASH(0x1b66f90)',
'TestLDAP=HASH
> (0x1bdf4cc)')
> called at /Library/Perl/5.8.6/Catalyst/Action.pm line
32
>
>
Catalyst::Action::__ANON__('TestLDAP::Controller::Auth=HASH
> (0x1b66f90)',
> 'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6/
> Catalyst.pm line
> 1187
> eval {...} called at
/Library/Perl/5.8.6/Catalyst.pm line 1187
> Catalyst::execute('TestLDAP=HASH(0x1bdf4cc)',
> 'TestLDAP::Controller::Auth',
'Catalyst::Action=HASH(0x1bc3350)')
> called at
> /Library/Perl/5.8.6/Catalyst/Action.pm line 42
>
Catalyst::Action::dispatch('Catalyst::Action=HASH(0x1bc3350)
',
> 'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6
> /Catalyst/Controller.pm line 74
>
>
Catalyst::Controller::_ACTION('TestLDAP::Controller::Auth=HA
SH
> (0x1b66f90)',
> 'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6
> /Catalyst/Action.pm line 47
>
Catalyst::Action::execute('Catalyst::Action=HASH(0x1bb230c)'
,
> 'TestLDAP::Controller::Auth=HASH(0x1b66f90)',
'TestLDAP=HASH
> (0x1bdf4cc)')
> called at /Library/Perl/5.8.6/Catalyst/Action.pm line
32
>
>
Catalyst::Action::__ANON__('TestLDAP::Controller::Auth=HASH
> (0x1b66f90)',
> 'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6/
> Catalyst.pm line
> 1187
> eval {...} called at
/Library/Perl/5.8.6/Catalyst.pm line 1187
> Catalyst::execute('TestLDAP=HASH(0x1bdf4cc)',
> 'TestLDAP::Controller::Auth',
'Catalyst::Action=HASH(0x1bb230c)')
> called at
> /Library/Perl/5.8.6/Catalyst/Action.pm line 42
>
Catalyst::Action::dispatch('Catalyst::Action=HASH(0x1bb230c)
',
> 'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6
> /Catalyst/Dispatcher.pm line 177
>
> Catalyst: ispatche
r::forward('Catalyst: ispatche
r=HASH(0x1a79c10)',
> 'TestLDAP=HASH(0x1bdf4cc)', '_ACTION') called at
/Library/Perl/5.8.6
> /Catalyst.pm line 300
> Catalyst::forward('TestLDAP=HASH(0x1bdf4cc)',
'_ACTION')
> called at
> /Library/Perl/5.8.6/Catalyst/Controller.pm line 48
>
>
Catalyst::Controller::_DISPATCH('TestLDAP::Controller::Auth=
HASH
> (0x1b66f90)',
> 'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6
> /Catalyst/Action.pm line 47
>
Catalyst::Action::execute('Catalyst::Action=HASH(0x2d42dfc)'
,
> 'TestLDAP::Controller::Auth=HASH(0x1b66f90)',
'TestLDAP=HASH
> (0x1bdf4cc)')
> called at /Library/Perl/5.8.6/Catalyst/Action.pm line
32
>
>
Catalyst::Action::__ANON__('TestLDAP::Controller::Auth=HASH
> (0x1b66f90)',
> 'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6/
> Catalyst.pm line
> 1187
> eval {...} called at
/Library/Perl/5.8.6/Catalyst.pm line 1187
> Catalyst::execute('TestLDAP=HASH(0x1bdf4cc)',
> 'TestLDAP::Controller::Auth',
'Catalyst::Action=HASH(0x2d42dfc)')
> called at
> /Library/Perl/5.8.6/Catalyst/Action.pm line 42
>
Catalyst::Action::dispatch('Catalyst::Action=HASH(0x2d42dfc)
',
> 'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6
> /Catalyst/Dispatcher.pm line 177
>
> Catalyst: ispatche
r::forward('Catalyst: ispatche
r=HASH(0x1a79c10)',
> 'TestLDAP=HASH(0x1bdf4cc)', '/auth/_DISPATCH') called
at
> /Library/Perl/5.8.6/Catalyst.pm line 300
> Catalyst::forward('TestLDAP=HASH(0x1bdf4cc)',
'/auth/
> _DISPATCH')
> called at /Library/Perl/5.8.6/Catalyst/Dispatcher.pm
line 116
>
> Catalyst: ispatche
r::dispatch('Catalyst: ispatche
r=HASH(0x1a79c10)',
> 'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6/
> Catalyst.pm line
> 1136
> Catalyst::dispatch('TestLDAP=HASH(0x1bdf4cc)')
called at
> /System/Library/Perl/5.8.6/NEXT.pm line 75
> NEXT::AUTOLOAD('TestLDAP=HASH(0x1bdf4cc)')
called at
> /Library/Perl/5.8.6/Catalyst/Plugin/Static/Simple.pm
line 62
>
>
Catalyst::Plugin::Static::Simple::dispatch('TestLDAP=HASH(0x
1bdf4cc)')
> called at /Library/Perl/5.8.6/Catalyst.pm line 1496
> eval {...} called at
/Library/Perl/5.8.6/Catalyst.pm line 1487
> Catalyst::handle_request('TestLDAP') called at
/Library/
> Perl/5.8.6
> /Catalyst/Engine/HTTP.pm line 365
>
> Catalyst::Engine::HTTP::_handler
> ('Catalyst::Engine::HTTP::Restarter=HASH(0x1a8d7e0)',
> 'TestLDAP', 3000, 'POST', '/auth/login', 'HTTP/1.1')
called at
> /Library/Perl/5.8.6/Catalyst/Engine/HTTP.pm line 275
>
>
Catalyst::Engine::HTTP::run('Catalyst::Engine::HTTP::Restart
er=HASH
> (0x1a8d7e0)',
> 'TestLDAP', 3000, 'undef', 'HASH(0x180c418)') called
at
> /System/Library/Perl/5.8.6/NEXT.pm line 75
>
NEXT::AUTOLOAD('Catalyst::Engine::HTTP::Restarter=HASH
> (0x1a8d7e0)',
> 'TestLDAP', 3000, 'undef', 'HASH(0x180c418)') called at
/Library/
> Perl/5.8.6
> /Catalyst/Engine/HTTP/Restarter.pm line 69
>
> Catalyst::Engine::HTTP::Restarter::run
> ('Catalyst::Engine::HTTP::Restarter=HASH(0x1a8d7e0)',
> 'TestLDAP', 3000, 'undef', 'HASH(0x180c418)') called
at
> /Library/Perl/5.8.6/Catalyst.pm line 1800
> Catalyst::run('TestLDAP', 3000, 'undef',
'HASH(0x180c418)')
> called
> at ./testldap_server.pl line 55"
>
>
> If I turn off debug things seem to play a little bit
better -- the
> line
> that seems to be tossing the error is 141 in
Credential/Password.pm:
>
> $c->log->debug("Successfully authenticated
user '$user'.")
> if $c->debug;
>
> which leads be to believe that there is a bigger issue
with passing
> $user
> around as an object vs string vs hash between these
modules.
>
> Thanks!
> Wade Stuart
> Fallon Worldwide
> P: 612.758.2660
> C: 612.877.0385
>
>
> _______________________________________________
> List: Catalyst lists.rawmode.org
> Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.
com/
> catalyst lists.rawmode.org/
> Dev site: http://dev.catalyst.per
l.org/
---
"Those who can make you believe absurdities can make
you commit
atrocities." --Voltaire
_______________________________________________
List: Catalyst lists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalyst lists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/
|
|
| Re: New auth stuff and LDAP store... |

|
2007-07-22 12:17:08 |
Excellent work here, both of you.
Adam
On 7/21/07, Jay K <jayk ion0.com> wrote:
> For the benefit of the list:
>
> This issue has been resolved. It turned out to be a
disagreement
> between what C::P::Authenticaiton was trying to place
in $user->store
> () and what LDAP was trying to place in
$user->store()
>
> LDAP was correct, and C::P::Authentication should keep
it's grubby
> little hands off of $user->store() - I am pushing a
maintenance
> release of C::P::Authentication to CPAN now. Should be
available
> from CPAN in a few hours.
>
> JayK
>
> On Jul 21, 2007, at 6:51 PM, Wade.Stuart fallon.com wrote:
>
> >
> >
> >
> >
> > Folks,
> >
> >
> > I have been wracking my head on this for a
few days now (with
> > jayk
> > and mst offering much appreciated support on irc).
It appears that
> > the
> > LDAP store (both .4 and .5) does not play nicely
with the new auth .10
> > changes. From what I have been able to diagnose
it appears as
> > though there
> > is an issue with object stringification between
auth/credpassword
> > and ldap
> > store. The root error shown (when running with
debug on and using
> > any of
> > the LDAP store generated accessors such as
$c->user->username ) is :
> >
> >
> > [error] Caught exception in
TestLDAP::Controller::Auth->login
> > "Can't use
> > string
("Catalyst::Plugin::Authentication") as a HASH ref
while
> > "strict
> > refs" in use at
/Library/Perl/5.8.6/Class/Accessor/Fast.pm line 39.
> > at /Library/Perl/5.8.6/Class/Accessor/Fast.pm
line 39
> >
> >
> > Placing a local $SIG =
&Carp::confess; on line 38 of
> > C::A::F I
> > get a dump such as this:
> >
> > [error] Caught exception in
TestLDAP::Controller::Auth->login
> > "Can't use
> > string
("Catalyst::Plugin::Authentication") as a HASH ref
while
> > "strict
> > refs" in use at
/Library/Perl/5.8.6/Class/Accessor/Fast.pm line 39.
> > at /Library/Perl/5.8.6/Class/Accessor/Fast.pm
line 39
> >
> > Class::Accessor::Fast::__ANON__
> >
('Catalyst::Plugin::Authentication::Store::LDAP::Backend')
> > called at /Library/Perl/5.8.6
> > /Catalyst/Plugin/Authentication/Store/LDAP/User.pm
line 95
> >
> >
Catalyst::Plugin::Authentication::Store::LDAP::User::stringi
fy
> >
('Catalyst::Plugin::Authentication::Store::LDAP::User=HASH(0
x1b...')
> > called at /Library/Perl/5.8.6
> > /Catalyst/Plugin/Authentication/Store/LDAP/User.pm
line 50
> >
> >
Catalyst::Plugin::Authentication::Store::LDAP::User::__ANON_
_
> >
('Catalyst::Plugin::Authentication::Store::LDAP::User=HASH(0
x1b...',
> > 'undef', '') called at /Library/Perl/5.8.6
> >
/Catalyst/Plugin/Authentication/Credential/Password.pm line
141
> >
> >
Catalyst::Plugin::Authentication::Credential::Password::logi
n
> > ('TestLDAP=HASH(0x1bdf4cc)',
> > 'USERNAME', 'PASSWORD') called at
> >
/Volumes/stuffs/Apps/TestLDAP/script/../lib/TestLDAP/Control
ler/
> > Auth.pm
> > line 47
> >
> >
TestLDAP::Controller::Auth::login('TestLDAP::Controller::Aut
h=HASH
> > (0x1b66f90)',
> > 'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6
> > /Catalyst/Action.pm line 47
> >
Catalyst::Action::execute('Catalyst::Action=HASH(0x1bc3350)'
,
> > 'TestLDAP::Controller::Auth=HASH(0x1b66f90)',
'TestLDAP=HASH
> > (0x1bdf4cc)')
> > called at /Library/Perl/5.8.6/Catalyst/Action.pm
line 32
> >
> >
Catalyst::Action::__ANON__('TestLDAP::Controller::Auth=HASH
> > (0x1b66f90)',
> > 'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6/
> > Catalyst.pm line
> > 1187
> > eval {...} called at
/Library/Perl/5.8.6/Catalyst.pm line 1187
> >
Catalyst::execute('TestLDAP=HASH(0x1bdf4cc)',
> > 'TestLDAP::Controller::Auth',
'Catalyst::Action=HASH(0x1bc3350)')
> > called at
> > /Library/Perl/5.8.6/Catalyst/Action.pm line 42
> >
Catalyst::Action::dispatch('Catalyst::Action=HASH(0x1bc3350)
',
> > 'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6
> > /Catalyst/Controller.pm line 74
> >
> >
Catalyst::Controller::_ACTION('TestLDAP::Controller::Auth=HA
SH
> > (0x1b66f90)',
> > 'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6
> > /Catalyst/Action.pm line 47
> >
Catalyst::Action::execute('Catalyst::Action=HASH(0x1bb230c)'
,
> > 'TestLDAP::Controller::Auth=HASH(0x1b66f90)',
'TestLDAP=HASH
> > (0x1bdf4cc)')
> > called at /Library/Perl/5.8.6/Catalyst/Action.pm
line 32
> >
> >
Catalyst::Action::__ANON__('TestLDAP::Controller::Auth=HASH
> > (0x1b66f90)',
> > 'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6/
> > Catalyst.pm line
> > 1187
> > eval {...} called at
/Library/Perl/5.8.6/Catalyst.pm line 1187
> >
Catalyst::execute('TestLDAP=HASH(0x1bdf4cc)',
> > 'TestLDAP::Controller::Auth',
'Catalyst::Action=HASH(0x1bb230c)')
> > called at
> > /Library/Perl/5.8.6/Catalyst/Action.pm line 42
> >
Catalyst::Action::dispatch('Catalyst::Action=HASH(0x1bb230c)
',
> > 'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6
> > /Catalyst/Dispatcher.pm line 177
> >
> > Catalyst: ispatche
r::forward('Catalyst: ispatche
r=HASH(0x1a79c10)',
> > 'TestLDAP=HASH(0x1bdf4cc)', '_ACTION') called at
/Library/Perl/5.8.6
> > /Catalyst.pm line 300
> >
Catalyst::forward('TestLDAP=HASH(0x1bdf4cc)', '_ACTION')
> > called at
> > /Library/Perl/5.8.6/Catalyst/Controller.pm line
48
> >
> >
Catalyst::Controller::_DISPATCH('TestLDAP::Controller::Auth=
HASH
> > (0x1b66f90)',
> > 'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6
> > /Catalyst/Action.pm line 47
> >
Catalyst::Action::execute('Catalyst::Action=HASH(0x2d42dfc)'
,
> > 'TestLDAP::Controller::Auth=HASH(0x1b66f90)',
'TestLDAP=HASH
> > (0x1bdf4cc)')
> > called at /Library/Perl/5.8.6/Catalyst/Action.pm
line 32
> >
> >
Catalyst::Action::__ANON__('TestLDAP::Controller::Auth=HASH
> > (0x1b66f90)',
> > 'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6/
> > Catalyst.pm line
> > 1187
> > eval {...} called at
/Library/Perl/5.8.6/Catalyst.pm line 1187
> >
Catalyst::execute('TestLDAP=HASH(0x1bdf4cc)',
> > 'TestLDAP::Controller::Auth',
'Catalyst::Action=HASH(0x2d42dfc)')
> > called at
> > /Library/Perl/5.8.6/Catalyst/Action.pm line 42
> >
Catalyst::Action::dispatch('Catalyst::Action=HASH(0x2d42dfc)
',
> > 'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6
> > /Catalyst/Dispatcher.pm line 177
> >
> > Catalyst: ispatche
r::forward('Catalyst: ispatche
r=HASH(0x1a79c10)',
> > 'TestLDAP=HASH(0x1bdf4cc)', '/auth/_DISPATCH')
called at
> > /Library/Perl/5.8.6/Catalyst.pm line 300
> >
Catalyst::forward('TestLDAP=HASH(0x1bdf4cc)', '/auth/
> > _DISPATCH')
> > called at
/Library/Perl/5.8.6/Catalyst/Dispatcher.pm line 116
> >
> > Catalyst: ispatche
r::dispatch('Catalyst: ispatche
r=HASH(0x1a79c10)',
> > 'TestLDAP=HASH(0x1bdf4cc)') called at
/Library/Perl/5.8.6/
> > Catalyst.pm line
> > 1136
> >
Catalyst::dispatch('TestLDAP=HASH(0x1bdf4cc)') called at
> > /System/Library/Perl/5.8.6/NEXT.pm line 75
> > NEXT::AUTOLOAD('TestLDAP=HASH(0x1bdf4cc)')
called at
> >
/Library/Perl/5.8.6/Catalyst/Plugin/Static/Simple.pm line
62
> >
> >
Catalyst::Plugin::Static::Simple::dispatch('TestLDAP=HASH(0x
1bdf4cc)')
> > called at /Library/Perl/5.8.6/Catalyst.pm line
1496
> > eval {...} called at
/Library/Perl/5.8.6/Catalyst.pm line 1487
> > Catalyst::handle_request('TestLDAP')
called at /Library/
> > Perl/5.8.6
> > /Catalyst/Engine/HTTP.pm line 365
> >
> > Catalyst::Engine::HTTP::_handler
> >
('Catalyst::Engine::HTTP::Restarter=HASH(0x1a8d7e0)',
> > 'TestLDAP', 3000, 'POST', '/auth/login',
'HTTP/1.1') called at
> > /Library/Perl/5.8.6/Catalyst/Engine/HTTP.pm line
275
> >
> >
Catalyst::Engine::HTTP::run('Catalyst::Engine::HTTP::Restart
er=HASH
> > (0x1a8d7e0)',
> > 'TestLDAP', 3000, 'undef', 'HASH(0x180c418)')
called at
> > /System/Library/Perl/5.8.6/NEXT.pm line 75
> >
NEXT::AUTOLOAD('Catalyst::Engine::HTTP::Restarter=HASH
> > (0x1a8d7e0)',
> > 'TestLDAP', 3000, 'undef', 'HASH(0x180c418)')
called at /Library/
> > Perl/5.8.6
> > /Catalyst/Engine/HTTP/Restarter.pm line 69
> >
> > Catalyst::Engine::HTTP::Restarter::run
> >
('Catalyst::Engine::HTTP::Restarter=HASH(0x1a8d7e0)',
> > 'TestLDAP', 3000, 'undef', 'HASH(0x180c418)')
called at
> > /Library/Perl/5.8.6/Catalyst.pm line 1800
> > Catalyst::run('TestLDAP', 3000, 'undef',
'HASH(0x180c418)')
> > called
> > at ./testldap_server.pl line 55"
> >
> >
> > If I turn off debug things seem to play a little
bit better -- the
> > line
> > that seems to be tossing the error is 141 in
Credential/Password.pm:
> >
> > $c->log->debug("Successfully
authenticated user '$user'.")
> > if $c->debug;
> >
> > which leads be to believe that there is a bigger
issue with passing
> > $user
> > around as an object vs string vs hash between
these modules.
> >
> > Thanks!
> > Wade Stuart
> > Fallon Worldwide
> > P: 612.758.2660
> > C: 612.877.0385
> >
> >
> > _______________________________________________
> > List: Catalyst lists.rawmode.org
> > Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
> > Searchable archive: http://www.mail-archive.
com/
> > catalyst lists.rawmode.org/
> > Dev site: http://dev.catalyst.per
l.org/
>
> ---
> "Those who can make you believe absurdities can
make you commit
> atrocities." --Voltaire
>
>
>
> _______________________________________________
> List: Catalyst lists.rawmode.org
> Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-
archive.com/catalyst lists.rawmode.org/
> Dev site: http://dev.catalyst.per
l.org/
>
--
HJK Solutions - We Launch Startups - http://www.hjksolutions.c
om
Adam Jacob, Senior Partner
T: (206) 508-4759 E: adam hjksolutions.com
_______________________________________________
List: Catalyst lists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalyst lists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/
|
|
| Re: New auth stuff and LDAP store... |
  United States |
2007-09-24 09:32:46 |
On 07/21/2007 10:02 PM, Jay K wrote:
> For the benefit of the list:
>
> This issue has been resolved. It turned out to be a
disagreement
> between what C::P::Authenticaiton was trying to place
in $user->store
> () and what LDAP was trying to place in
$user->store()
>
> LDAP was correct, and C::P::Authentication should keep
it's grubby
> little hands off of $user->store() - I am pushing a
maintenance
> release of C::P::Authentication to CPAN now. Should be
available
> from CPAN in a few hours.
>
I am now trying to use ::Store::LDAP 0.04 with
::Authentication 0.10002 and I
cannot seem to get the config right. I just asked about this
on #catalyst and
was advised to use the older pre-0.1 base Authentication
plugin.
I have a feeling I'm just not getting the config right. But
if it is is more
systemic than that, and the LDAP plugins need some help
getting up to the
latest Authentication API, I have tuits to spend on it and
would gladly
contribute code/tests/docs if I was told those were needed,
and given a pointer
to where to start.
TIA
--
Peter Karman . peter peknet.com . http://peknet.com/
_______________________________________________
List: Catalyst lists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalyst lists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/
|
|
| Re: New auth stuff and LDAP store... |

|
2007-09-24 12:19:53 |
On 9/24/07, Peter Karman <peter peknet.com> wrote:
> Thanks. That works. I'm using OpenLDAP too.
>
> However, I'm concerned about a few things.
>
> (1) the LDAP documentation is wrong.
> (2) in grokking the Authentication.pm code, I see that
the LDAP modules are
> still working by virtue of a lot of code labeled
'BACKWARDS COMPATABILITY' and
> 'old-style' and warnings about the interface eventually
disappearing. These
> include get_user() instead of the newer find_user() et
al.
>
> As I have the time (and who knows how long that will
last...), I'd still like
> to bring the LDAP plugins up to speed. I'll hack on it
a bit today and see
> where I get.
I'll be happy to commit any of your patches and get a new
release
pushed out to CPAN.
(Tests would be great!)
Adam
--
HJK Solutions - We Launch Startups - http://www.hjksolutions.c
om
Adam Jacob, Senior Partner
T: (206) 508-4759 E: adam hjksolutions.com
_______________________________________________
List: Catalyst lists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalyst lists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/
|
|
| Re: New auth stuff and LDAP store... |

|
2007-09-24 12:55:58 |
Anyone willing to give this a test run and let me know if
things are
working correctly for them? I don't have any apps using the
new
interface.
Adam
On 9/24/07, Peter Karman <peter peknet.com> wrote:
>
>
> On 09/24/2007 12:22 PM, Peter Karman wrote:
> >
> > On 09/24/2007 11:55 AM, Peter Karman wrote:
> >
> >> As I have the time (and who knows how long
that will last...), I'd still like
> >> to bring the LDAP plugins up to speed. I'll
hack on it a bit today and see
> >> where I get.
> >>
> >
> > These patches seem to bring the LDAP plugins up
the latest Authentication API,
> > to support realms, etc.
>
> heh. that should be 'preferred' not 'preferred
deprecated'. :/
>
> +=head2 find_user($id)
> +
> +Creates a
L<Catalyst::Plugin::Authentication::Store::LDAP::User>
object
> +for the given User ID. This is the preferred
deprecated mechanism for getting a
> +given User out of the Store.
>
> --
> Peter Karman . peter peknet.com . http://peknet.com/
>
>
> _______________________________________________
> List: Catalyst lists.rawmode.org
> Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-
archive.com/catalyst lists.rawmode.org/
> Dev site: http://dev.catalyst.per
l.org/
>
--
HJK Solutions - We Launch Startups - http://www.hjksolutions.c
om
Adam Jacob, Senior Partner
T: (206) 508-4759 E: adam hjksolutions.com
_______________________________________________
List: Catalyst lists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalyst lists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/
|
|
[1-6]
|
|