APPLICATION ERROR #1401

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
marcin5471
Posts: 7
Joined: 12 Mar 2020, 20:17

APPLICATION ERROR #1401

Post by marcin5471 »

APPLICATION ERROR #1401

LDAP Server Connection Failed.

Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.


Tu jest moja konfiguracja :

$g_login_method = LDAP;

$g_ldap_server = 'ldap://serwer.cos.ad.local:3268';

$g_ldap_root_dn = 'DC=cos,DC=ad,DC=local';

$g_ldap_uid_field= 'sAMAccountName';

$g_ldap_bind_dn = 'CN=m.on,OU=DZIT,OU=Users_Administracja,OU=OU_USERS,DC=cos,DC=ad,DC=local';

$g_ldap_bind_passwd = 'costam'; # System account password *
$g_ldap_protocol_version = 3;
$g_use_ldap_email = OFF;
$g_use_ldap_realname = ON;

nie mam już pojęcia co jest źle proszę o pomoc
pozdrawiam Marcin
cas
Posts: 1587
Joined: 11 Mar 2006, 16:08
Contact:

Re: APPLICATION ERROR #1401

Post by cas »

Please check the forum, there are multiple topics on LDAP.
Please do report in English if you want to get support.
marcin5471
Posts: 7
Joined: 12 Mar 2020, 20:17

Re: APPLICATION ERROR #1401

Post by marcin5471 »

ok thanks i just have a problem connecting via ldap
marcin5471
Posts: 7
Joined: 12 Mar 2020, 20:17

Re: APPLICATION ERROR #1401

Post by marcin5471 »

this my new configuration:

$g_login_method = LDAP;
$g_ldap_server = 'ldap://serwer.cos.ad.local:389';

$g_ldap_root_dn = 'CN=Users,DC=cos,DC=ad,DC=local';
$g_ldap_organization = '(objectClass=*)';

$g_ldap_realname_field = 'cn';
$g_ldap_uid_field= 'sAMAccountName';

$g_ldap_bind_dn = 'CN=m.on,CN=Users,DC=cos,DC=ad,DC=local';

$g_ldap_bind_passwd = 'costam'; # System account password *
$g_ldap_protocol_version = 3;
$g_use_ldap_email = OFF;
$g_use_ldap_realname = ON;

and I have a log list with an error:

2020-03-14 20:36 CET LDAP ldap_api.php:327 ldap_authenticate_by_username() Binding to LDAP server
2020-03-14 20:36 CET LDAP ldap_api.php:63 ldap_connect_bind() Attempting connection to LDAP server/URI 'ldap://serwer.cos.ad.local:389'.
2020-03-14 20:36 CET LDAP ldap_api.php:66 ldap_connect_bind() Connection accepted by LDAP server
2020-03-14 20:36 CET LDAP ldap_api.php:79 ldap_connect_bind() Setting LDAP protocol version to 3
2020-03-14 20:36 CET LDAP ldap_api.php:101 ldap_connect_bind() Attempting bind to ldap server with username and password
2020-03-14 20:36 CET LDAP ldap_api.php:114 ldap_connect_bind() Bind to ldap server successful
2020-03-14 20:36 CET LDAP ldap_api.php:335 ldap_authenticate_by_username() Searching for (&(objectClass=*)(sAMAccountName=administrator))
2020-03-14 20:36 CET LDAP ldap_api.php:358 ldap_authenticate_by_username() Checking CN=Administrator,CN=Users,DC=cos,DC=ad,DC=local
2020-03-14 20:36 CET LDAP ldap_api.php:370 ldap_authenticate_by_username() Unbinding from LDAP server
2020-03-14 20:36 CET LDAP ldap_api.php:397 ldap_authenticate_by_username() Authentication failed


why was the authorization unsuccessful?
marcin5471
Posts: 7
Joined: 12 Mar 2020, 20:17

Re: APPLICATION ERROR #1401

Post by marcin5471 »

and why?
sAMAccountName=administrator

not user : m.on?
marcin5471
Posts: 7
Joined: 12 Mar 2020, 20:17

Re: APPLICATION ERROR #1401

Post by marcin5471 »

now I can only upload to the user:
the one given to connect to ldap:

m.on


"Your account may be disabled or the username / password may not be valid."

even though the same organizational unit
marcin5471
Posts: 7
Joined: 12 Mar 2020, 20:17

Re: APPLICATION ERROR #1401

Post by marcin5471 »

now logs in to each account
provided that there must be a default organizational unit, e.g. Users
on the newly created unit does not work :(
Post Reply