Ldap Configuration In Yii

Dear All,

I am new to yii frame work i am trying to create an ldap configuration for user authentication

The following steps which i taken to create but it throws eerro as below

include(Controller.php) [<a href=‘function.include’>function.include</a>]: failed to open stream: No such file or directory

C:\xampp\htdocs\yiif\framework\YiiBase.php(418)

steps:

  1. i have included the following http://www.yiiframework.com/extension/ldaprecord/

extension in C:\xampp\htdocs\seed2\protected\extensions\ldaprecord

  1. i have included the following code in config/main.php

‘components’=>array(

	'user'=&gt;array(


		// enable cookie-based authentication


		'allowAutoLogin'=&gt;true,


	),


	'ldap'=&gt;array(


        'class' =&gt; 'ext.ldaprecord.LdapComponent',


        'server' =&gt; 'ldap://192.168.x.xxxx',


        'port' =&gt; 389,


        //'bind_rdn' =&gt; 'cn=suren diran,cn=Users,dc=xxxx,dc=demo,dc=com',


        //'bind_pwd' =&gt; 'pass@123',


        'base_dn' =&gt; 'dc=rsales,dc=demo,dc=com'),);


'params'=&gt;array(


	// this is used in contact page


	'adminEmail'=&gt;'sundarapandian@rsalesarm.com',


),


'ldap'=&gt;array(


        'class' =&gt; 'ext.ldaprecord.LdapComponent',


        'server' =&gt; 'ldap://192.168.x.xxx',


        'port' =&gt; 389,


        //'bind_rdn' =&gt; 'cn=xxxx xxxx,cn=Users,dc=xxxx,dc=demo,dc=com',


        //'bind_pwd' =&gt; 'pass@123',


        'base_dn' =&gt; 'dc=xxxxx,dc=demo,dc=com'),

);

  1. included this line in the index.php

$config=dirname(FILE).’/protected/extensions/ldaprecord/CLdapRecord.php’;

  1. and i have changed the useridentity authentication function as

public function authenticate()

{

&#036;username=&#036;this-&gt;username;

$password=$this->password;

$dname= ‘xxxxxxx’;

$options[‘host’]=‘ldap://192.168.x.xxx’;

$options[‘port’]=389;

&#036;ldap_username = &quot;CN=&quot;.&#036;username.&quot;,CN=Users,DC=xxxx,DC=demo,DC=com&quot;;





       &#036;options = Yii::app()-&gt;params['ldap'];


	  print_r(&#036;options);


  &#036;connection = ldap_connect(&#036;options['host'], &#036;options['port']);


  


	//print_r(&#036;connection);


    ldap_set_option(&#036;connection, LDAP_OPT_PROTOCOL_VERSION, 3);


    ldap_set_option(&#036;connection, LDAP_OPT_REFERRALS, 0);





    if(&#036;connection)


    {


    	echo &quot;success&quot;;


		//exit;


    try


     {


        	//echo &#036;connection.&#036;ldap_username.&#036;this-&gt;password;


		//print_r(ldap_bind(&#036;connection,&#036;dname.&quot;&#092;&#092;&quot;. &#036;ldap_username, &#036;password));


			//exit;


          @&#036;bind = ldap_bind(&#036;connection,&#036;dname.&quot;&#092;&#092;&quot;. &#036;ldap_username, &#036;password);


		   print_r(@&#036;bind);


		   if(@&#036;bind)


		   {


		   echo &quot;successfully logedin&quot;;


		           }


	 }


    catch (Exception &#036;e){


        echo &#036;e-&gt;getMessage();


     }


        if(&#33;&#036;bind) &#036;this-&gt;errorCode = self::ERROR_PASSWORD_INVALID;


        else &#036;this-&gt;errorCode = self::ERROR_NONE;


    }


    return &#33;&#036;this-&gt;errorCode;

}

i am stucked here can any one help me hw to resolve this issue .please help me ,Thanks in advance…