Cannot login after upgrade

Hello,

I was able to upgrade Dolibarr from v 3.6 to 16.0.3 but now i cannot login anymore since all the user seem to have been configured via LDAP.

I had to use a blank installation of dolibarr (thus removing all the old directory files) and used the same database but it seems i might have gotten rid of some plugin files or config files i might need.

Any idea please what i need to retrieve from the old dolibarr v 3.6 directory to copy over the new install in order to be able to log in again?

Thank you very much.

Hello,

Can you check the value of $dolibarr_main_authentication in conf/conf.php ?

// $dolibarr_main_authentication='dolibarr';       // Use the password defined into application on user file (default).
// $dolibarr_main_authentication='http';           // Use the HTTP Basic authentication
// $dolibarr_main_authentication='ldap';           // Check the password into a LDAP server
// $dolibarr_main_authentication='ldap,dolibarr';  // You can set several mode using a comma as a separator.
// $dolibarr_main_authentication='forceuser';      // This need to add also $dolibarr_auto_user='loginforuser';
// $dolibarr_main_authentication='twofactor';      // To use Google Authenticator. This need the non official external module "Two Factor" available on www.dolistore.com
//
$dolibarr_main_authentication='dolibarr';

Also can you check that you have users declared in llx_user db table?

Hello Ksar,

users are all declared. and here below is the file as it sits currently.

Thanks for your help.

so if i want both local and ldap i have to use: ‘Ldap, dolibarr’ ? like in your comment above?

<?php
//
// File generated by Dolibarr installer 3.6.2 on 01 Juin 2015
//
// Take a look at conf.php.example file for an example of conf.php file
// and explanations for all possibles parameters.
//
$dolibarr_main_url_root='http://CORRECTROOT';
$dolibarr_main_document_root='CORRECTPATH';
//$dolibarr_main_url_root_alt='/custom';
//$dolibarr_main_document_root_alt='C:\inetpub\intranet/custom';
$dolibarr_main_data_root='C:\inetpub\intranet/docs';
$dolibarr_main_db_host='CORRECTHOST';
$dolibarr_main_db_port='';
$dolibarr_main_db_name='CORRECTDBNAME';
$dolibarr_main_db_prefix='llx_';
$dolibarr_main_db_user='CORRECTUSERNAME';
$dolibarr_main_db_pass='CORRECTPW';
$dolibarr_main_db_type='mysqli';
$dolibarr_main_db_character_set='utf8';
$dolibarr_main_db_collation='utf8_general_ci';
$dolibarr_main_authentication='dolibarr';

// Specific settings
$dolibarr_main_prod='0';
$dolibarr_nocsrfcheck='0';
$dolibarr_main_force_https='0';
$dolibarr_main_cookie_cryptkey='XXXXXXXXXXXXXXXXXXX';
$dolibarr_mailing_limit_sendbyweb='0';

//ldap settings
$dolibarr_main_auth_ldap_host = 'CORRECTVALUE';
$dolibarr_main_auth_ldap_port = '50000';
$dolibarr_main_auth_ldap_version = '3';
$dolibarr_main_auth_ldap_servertype = 'activedirectory';
$dolibarr_main_auth_ldap_login_attribute = 'samaccountname';
$dolibarr_main_auth_ldap_dn = 'DC=CORRECTDOMAIN,DC=CORRECTENDING';
$dolibarr_main_auth_ldap_admin_login = 'CORRECTLOGIN';
$dolibarr_main_auth_ldap_admin_pass = 'CORRECTPW';
$dolibarr_main_auth_ldap_filter = '&(objectClass=user)(objectClass=inetOrgPerson)(objectCategory=Person)';
$dolibarr_main_auth_ldap_debug = 'false';

//$dolibarr_lib_TCPDF_PATH='';
//$dolibarr_lib_FPDF_PATH='';
//$dolibarr_lib_FPDI_PATH='';
//$dolibarr_lib_ADODB_PATH='';
//$dolibarr_lib_GEOIP_PATH='';
//$dolibarr_lib_NUSOAP_PATH='';
//$dolibarr_lib_PHPEXCEL_PATH='';
//$dolibarr_lib_ODTPHP_PATH='';
//$dolibarr_lib_ODTPHP_PATHTOPCLZIP='';
//$dolibarr_js_CKEDITOR='';
//$dolibarr_js_JQUERY='';
//$dolibarr_js_JQUERY_UI='';
//$dolibarr_js_JQUERY_FLOT='';

//$dolibarr_font_DOL_DEFAULT_TTF='';
//$dolibarr_font_DOL_DEFAULT_TTF_BOLD='';
?>

Yes.
Actually Dolibarr is using database llx_user for login

Ok thank you so much, will try to correct that tomorrow then.