<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Can anyone help me?<br><br><div><font face="times new roman" size="5"><strong><em><font color="#c00000">Genius at work</font><img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/40.gif"></em></strong></font></div><div><strong><em><font face="Times New Roman" size="5"> </font></em></strong></div><br><br>--- On <b>Mon, 15/2/10, Amit Jha <i><shanu_040@yahoo.co.in></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Amit Jha <shanu_040@yahoo.co.in><br>Subject: [Catalyst] Authentication Using Catalyst::Authentication::Store::LDAP<br>To: Catalyst@lists.scsys.co.uk<br>Date: Monday, 15 February, 2010, 1:41 PM<br><br><div id="yiv2053380353"><table border="0" cellpadding="0"
cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; -x-system-font: none;" valign="top">Hi All,<br><br>In my authentication module I am trying to add DBIC and LDAP authentication via Catalyst::Authentication::Store::LDAP. DBIC is working fine but LDAP is not. Following is app configuration file:<br><br>__PACKAGE__->config( <br> 'Plugin::ConfigLoader' => {<br> driver => {<br> 'General' => {<br> -LowerCaseNames => 1,<br> },<br>
},<br> file => __PACKAGE__->path_to('conf'),<br> },<br> 'Plugin::Session' =>
{<br> expires => 3600,<br> storage => '/home/amit/GISTFIND/tmp/session',<br> },<br> 'Plugin::Authentication' => {<br> default_realm => 'general', <br> general => {<br> credential => {<br> class => 'Password',<br> password_field => 'login_password',<br> password_type =>
'clear'<br> },<br> store => {<br> class => 'DBIx::Class',<br> user_model => 'DB::Login',<br> role_column => 'roles',<br> }<br> },<br> ldap => {<br> credential => {<br> class =>
'Password',<br> password_field => 'password',<br> password_type => 'clear'<br> },<br> store => {<br> binddn => "cn=Manager, dc=example, dc=com",<br> bindpw => "secret",<br>
class => "LDAP",<br> ldap_server => "192.168.100.50",<br> ldap_server_options => { timeout => 30, port => '389', },<br> user_basedn => "dc=example,dc=com",<br> user_field => "uid",<br> user_results_filter => sub { return shift->pop_entry
}, <br> },<br> },<br> },<br>);<br><br>When I search LDAP using Net::LDAP It authenticate the user and return the DN for that. <br><br>dn:uid=shanu,dc=example,dc=com<br> uid: shanu<br>userPassword: shanu<br> objectClass: account<br> simpleSecurityObject<br> top<br>uid=shanu,dc=example,dc=com checks out!<br><br>But when I try the same from catalyst I won't show any thing. Can anyone point me what to do and how to debug it.<br><br>if ($c->authenticate({ id => $username, password => $password }, 'ldap')) {<br> $c->stash->{auth}-> "asa";<br>} <br><br><span style="font-style: italic;"><span
style="font-weight: bold;"><br>Thanks<br><br></span></span><div><strong><em><font face="Times New Roman" size="5"> </font></em></strong></div></td></tr></tbody></table><br>
<hr size="1">
Your Mail works best with the New Yahoo Optimized IE8. <a rel="nofollow" target="_blank" href="http://in.rd.yahoo.com/tagline_ie8_new/*http://downloads.yahoo.com/in/internetexplorer/">Get it NOW!</a>.</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>List: <a ymailto="mailto:Catalyst@lists.scsys.co.uk" href="/mc/compose?to=Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br></div></blockquote></td></tr></table><br>
<!--1--><hr size=1></hr>
The INTERNET now has a personality. YOURS! <a href="http://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/" target="_blank">See your Yahoo! Homepage</a>.