I can't connect with my CRM

Oct 19, 2010 at 9:11 PM

Thanks for this great job, it's exactlly what i want for make a Php/mysql project connected with Micrsoft Dynamics CRM !

So i have a problem. I have created the table and the user. I have configure information for mysql connect and CRM Server but i don't arrive to connect on my CRM... I use LDAP for authentification.

I have put this in the configuration information. I don't understand how i can specify the constant "AD_DOMAIN_CONTROLER" over Internet... It's possible ? The problem isn't here ?

//Active Directory
define('USE_AD_AUTHENTICATION', true);
//Don't forget to activate the LDAP extension in PHP
define('AD_ACCOUNT_SUFFIX', '@wizdom');
define('AD_BASE_DN', 'DC=wizdom');
define('AD_DOMAIN_CONTROLER', 'wizdom')

And when i try to login, i must write

wizdom\myusername - mypassword
OR
myusername - mypassword ?

Maybe my english isn't very good, i'm french. Sorry...

Thanks for your help.

Oct 21, 2010 at 5:26 PM

i make a mistake, all is OK.

thanks for your project, it help me a lot !

Coordinator
Nov 10, 2010 at 6:20 AM

Salut,

 

T'as réussi ton AD login via internet? L'important c'est d'avoir le  même DC quand tu utilises l'AD authentication.

Bonne continuation et n'hésite pas  si t'as d'autres questions.

Cdt,

Apr 12, 2011 at 7:54 AM

hi, i followed the instructions in the documentation and got this error:

Strict Standards: Declaration of DynamicsCRM::call() should be compatible with that of nusoap_client::call() in C:\xampp\htdocs\phpcrm\crmsoap.inc.php on line 31

 

Using my local machine here's the code

//Mysql Server
define('MYSQL_DB_SERVER', 'localhost');
define('MYSQL_DB_USER', 'root');
define('MYSQL_DB_PASSWORD', '');
define('MYSQL_DB_NAME', 'travel');

//CRM Server
//Don't forget to activate the CURL extension in PHP to be able to fetch the Web Service
define('CRM_SERVER', 'mscrm');
define('CRM_ORG_NAME', 'ORG');
define('CRM_WSDL', 'http://mscrm/MSCrmServices/2007/CrmServiceWsdl.aspx?uniquename=ORG');

//Active Directory
define('USE_AD_AUTHENTICATION', true);
//Don't forget to activate the LDAP extension in PHP
define('AD_ACCOUNT_SUFFIX', '@localhost.local');
define('AD_BASE_DN', 'DC=localhost,DC=local');
define('AD_DOMAIN_CONTROLER', 'dc01.localhost.local');
?>

This is line 31:

class DynamicsCRM extends nusoap_client {

i uncomment extension=php_curl.dll

copied ssleay32.dll and libeay32.dll into system32 folder.

any help is much appreciated.. :)

Coordinator
Apr 12, 2011 at 9:46 PM

Hi Hirako,

This seems to be a PHP config problem. I don't know much of the XAMPP default configuration, I'm using WAMPSERVER: http://www.wampserver.com/ and it's working just fine, no need to add any dll in the system32 folder.

 

Can you try with it and tell me if you still have the problem?

 

Cheers,

Zoran

Apr 13, 2011 at 2:24 AM

Hi zivanov,

thanks for the response.

i also tried it using wamp server. yes i did not add any dll but the problem here is:

ERROR: operation RetrieveMultiple not present in WSDL.
____________Request____________
string(0) ""

____________Response____________
string(0) ""

 

i guess this is about the Ad authentication. if it's true, i can't logged in. if false, after i logged in the above error appears.

 

Thanks!

Hirako

Coordinator
Apr 13, 2011 at 6:34 AM

Hi,

Your last problem was already discussed here: http://phpmscrm.codeplex.com/discussions/233036?ProjectName=phpmscrm

Keep up the good work i'm sure you'll have it working today :).

 

Zoran

Apr 19, 2011 at 1:19 AM

Hi,

i can't get what they're talking about there.


//Active Directory
define('USE_AD_AUTHENTICATION', true);
//Don't forget to activate the LDAP extension in PHP
define('AD_ACCOUNT_SUFFIX', '@localhost.local');
define('AD_BASE_DN', 'DC=localhost,DC=local');
define('AD_DOMAIN_CONTROLER', 'dc01.localhost.local');
?>

so i just have to get the access and put it in the above code?

 

and do i need to change something here?

//CRM Server
//Don't forget to activate the CURL extension in PHP to be able to fetch the Web Service
define('CRM_SERVER', 'mscrm');
define('CRM_ORG_NAME', 'ORG');
define('CRM_WSDL', 'http://mscrm/MSCrmServices/2007/CrmServiceWsdl.aspx?uniquename=ORG');

Coordinator
Apr 20, 2011 at 6:32 AM

Hi,

 

The first part is about the AD authentication. You may try not to use it in the beginning to avoid difficulties. Go with the Mysql authentication which is easier.

And the second part is the CRM server config, I already saw on some other discussion that you've set this up to match your envronment.

 

So you should have already connected to the CRM by this time.

What are your last error messages?

 

Cheers,

 

Apr 25, 2011 at 5:30 AM

hi,,

yes i can logged in using sql authentication , here's the error message:

 

ERROR: operation RetrieveMultiple not present in WSDL.
____________Request____________
string(0) ""

____________Response____________
string(0) ""

 

 

and

 

Strict Standards: Declaration of DynamicsCRM::call() should be compatible with that of nusoap_client::call() in C:\xampp\htdocs\phpcrm\crmsoap.inc.php on line 31

Apr 25, 2011 at 5:46 AM

but when using my wamp server on another unit, the strict standard line doesn't show.