Current version 0.4
Yii 1.1 or above
... 'import'=>array( ... 'ext.ldaprecord.*', ... ), ... 'components'=>array( ... 'ldap'=>array( 'class' => 'ext.ldaprecord.LdapComponent', 'server' => 'ldap://127.0.0.1/', 'port' => 389, 'bind_rdn' => 'cn=Manager,dc=domain,dc=com', 'bind_pwd' => '<pwd>', 'base_dn' => 'dc=domain,dc=com', ... ),
Read a Ldap node by DN
$node = CLdapRecord::model('<yourclassname>')->findByDn('<theDN>');
Read a Ldap subtree
$nodes = CLdapRecord::model('LdapSubTree')->findSubTree(<attributes>);
Howto set relations
Edit method relations() in your class inherited from CLdapRecord (howto see Comment CLdapRecord->relations()).
Total 1 comment
This extension is not error free for error_reporting = E_ALL configuration in php.ini.
I must change to error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED for running well.
I hope you will fix it.
Leave a comment
Please login to leave your comment.