Porting adLDAP to Codeigniter