User talk:D3s3ertf0x

About this board

Could not bind to LDAP: (-1) Can't contact LDAP server when trying to switch to LDAPS

1
D3s3ertf0x (talkcontribs)

When I am trying to switch to LDAPS using

"port" : "637",

"enctype": "ssl",

I am getting:

2a36f59f1dd724005c227a9f] /w/index.php?title=Special:PluggableAuthLogin MWException from line 169 of /data/www/bluespice/w/extensions/LDAPProvider/src/Client.php: Could not bind to LDAP: (-1) Can't contact LDAP server

Backtrace:

#0 /data/www/bluespice/w/extensions/LDAPProvider/src/Client.php(92): MediaWiki\Extension\LDAPProvider\Client->establishBinding()

#1 /data/www/bluespice/w/extensions/LDAPProvider/src/Client.php(329): MediaWiki\Extension\LDAPProvider\Client->init()

#2 /data/www/bluespice/w/extensions/LDAPAuthentication2/src/PluggableAuth.php(77): MediaWiki\Extension\LDAPProvider\Client->canBindAs(string, string)

#3 /data/www/bluespice/w/extensions/PluggableAuth/includes/PluggableAuthLogin.php(31): MediaWiki\Extension\LDAPAuthentication2\PluggableAuth->authenticate(NULL, string, NULL, NULL, NULL)

#4 /data/www/bluespice/w/includes/specialpage/SpecialPage.php(565): PluggableAuthLogin->execute(NULL)

#5 /data/www/bluespice/w/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)

#6 /data/www/bluespice/w/includes/MediaWiki.php(288): SpecialPageFactory::executePath(Title, RequestContext)

#7 /data/www/bluespice/w/includes/MediaWiki.php(861): MediaWiki->performRequest()

#8 /data/www/bluespice/w/includes/MediaWiki.php(524): MediaWiki->main()

#9 /data/www/bluespice/w/index.php(42): MediaWiki->run()

#10 {main}

from Debuglog:

[LDAP] ldap_connect( $hostname = 'ldaps://XXXX.net:636', $port = 389 );

[LDAP] # __METHOD__ returns Resource id #105

[MediaWiki\Extension\LDAPProvider\Client] Setting LDAP_OPT_PROTOCOL_VERSION to 3

[LDAP] ldap_set_option( $linkID, $option = 17, $newval = 3 );

[LDAP] # returns 1

[MediaWiki\Extension\LDAPProvider\Client] Setting LDAP_OPT_REFERRALS to 0

[LDAP] ldap_set_option( $linkID, $option = 8, $newval = 0 );

[LDAP] # returns 1

[error] [a81ad9ed23d3b327b63bccdb] /w/index.php?title=Special:PluggableAuthLogin   ErrorException from line 122 of /data/www/bluespice/w/extensions/LDAPProvider/src/Client.php: PHP Notice: Array to string conversion

.

.

.

[LDAP] ldap_set_option( $linkID, $option = , $newval = Array );

[LDAP] # returns

[MediaWiki\Extension\LDAPProvider\Client] Cannot set option to LDAP connection!

[LDAP] ldap_bind( $linkID, $bindRDN = 'XXXX', $bindPassword = 'XXXX' );

[LDAP] # returns

[LDAP] ldap_error( $linkID );

[LDAP] # returns Can't contact LDAP server

[LDAP] ldap_errno( $linkID );

[LDAP] # returns -1

I have tested that the port is open and other software works with LDAPS.

Any Ideas?

Reply to "Could not bind to LDAP: (-1) Can't contact LDAP server when trying to switch to LDAPS"
There are no older topics