Support » Plugin: Next Active Directory Integration » Test Active Directory Login Issue

  • ahowell88

    (@ahowell88)



    I’m not sure if there are a different set of scripts running the Verify Credentials section from the Test Authentication section. But I have a situation that requires me to use the script that comes in the plugin that overrides the admin specifications. I’m referring specifically to the ConnectionDetails.php script found in next-active-directory-integration/classes/Ldap.

    I’m noticing that the Verify Credentials works based on what I set in the mentioned script myself, but all of that gets ignored and overwritten for the settings in the AD Environment page when I run a test authentication, so I would assume this is happening for regular logins too. Is there a solution to make this manual setting in the php script unified throughout the whole plugin and not just in the Verify Credentials setting?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author medan123

    (@medan123)

    Hello @ahowell88,

    NADI is using the settings you configured on the NADI configuration pages. There is no way to manually set those values without affecting the plugin logic.

    Could you describe the use case that requires you to set the settings manually?

    Best regards,
    medan123

    ahowell88

    (@ahowell88)

    How come ConnectionDetails.php script effects the Verify Credentials process?

    For example and to explain my use case, I’m on a server that requires me to set the port as a PHP constant. When using the previous file I mentioned it overrides whatever appears in the port field in the admin menu (I believe the code even tells me this in the comments – Override the default portset by the blog or site admin) with your own custom value.
    ) So even though it says 389 in the field, in the logs it shows that its what the constant sets it as which in my case is 58287, this means ConnectionDetails.php around line 85 (the setPort function).

    I also need to set the address a specific way because when using ldaps ldap_connect function ignores the optional port, so I have to also add the port value to the domain. So in that same file I change the setDomainControllers function value to my own – Override the default domain controllers (set by the blog or site admin) with your own custom value. I was able to do this to pass the credentials verification and save my settings, but I can’t use ConnectionDetails.php to change testing and the real authentication process when logging in.

    Plugin Author medan123

    (@medan123)

    Hello @ahowell88,

    “Verify Connection” directly uses the values of the environment configuration tab in order to connect your WordPress blog / profile to a specific Active Directory.

    All other processes like “Sync to WordPress”, “Sync to AD” and “Test Authentication” use the configurations stored within the database.

    Best regards,
    medan123

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.