schakko
Forum Replies Created
-
Forum: Plugins
In reply to: [Next Active Directory Integration] Sync To WordPressAs mentioned in the documentation (https://active-directory-wp.com/docs/Configuration/Sync_to_WordPress.html), you have to configure the security groups which have should be imported.
Forum: Plugins
In reply to: [Next Active Directory Integration] rror with login and test authenticationYou are probably affected by https://github.com/NeosIT/active-directory-integration2/issues/146, which has been already fixed in the master branch.
You could checkout https://github.com/NeosIT/active-directory-integration2 and see if it works for you.
Forum: Plugins
In reply to: [Next Active Directory Integration] Sync To WordPressCan you share your “Sync to WordPress” (https://active-directory-wp.com/docs/Configuration/Sync_to_WordPress.html) configuration?
Forum: Plugins
In reply to: [Next Active Directory Integration] Sync to wordpress / Security GroupCan your Sync to WordPress configuration (https://active-directory-wp.com/docs/Configuration/Sync_to_WordPress.html). Is the group “X-Users” present for the “Import members of security group” configuration?
Do you have multiple Active Directories and/or LDAP servers?
Forum: Plugins
In reply to: [Next Active Directory Integration] Usage of another URL for custom loginI am unable to dig deeper into this issue. Please check if one of the NADI support plans is suitable for you.
Forum: Plugins
In reply to: [Next Active Directory Integration] Usage of another URL for custom loginPlease note, that the constant is
NEXT_AD_INT_PREFIXand notNEXT_AD_INT.If
print NEXT_AD_INT_PREFIX;does also print nothing, try the followingadd_filter('next_ad_int_auth_enable_login_check', function($loginCheckAlreadyEnabled) { ... }), 10, 1);instead of
add_filter(NEXT_AD_INT_PREFIX . 'auth_enable_login_check', function($loginCheckAlreadyEnabled) { ... }), 10, 1);Forum: Plugins
In reply to: [Next Active Directory Integration] Usage of another URL for custom loginThe print statement must be outside your callback handler as the callback handler itself does not get executed in your case 😉
print "1"; print NEXT_AD_INT_PREFIX; // should print "next_ad_int_" add_filter(NEXT_AD_INT_PREFIX . 'auth_enable_login_check', function($loginCheckAlreadyEnabled) { ... }), 10, 1);- This reply was modified 4 years, 11 months ago by schakko.
Forum: Plugins
In reply to: [Next Active Directory Integration] Usage of another URL for custom login– In your plug-in, what values is printed for
print NEXT_AD_INT_PREFIX;?(should benext_ad_int_`). If this prints nothing, there should be also a PHP warning that the constant is not defined. You ‘next_ad_int_auth_enable_login_check’ instead.– You can try
function my_nadi_hook($param) { print "3"; } add_filter('next_ad_int_auth_enable_login_check', 'my_nadi_hook', 10, 1);- This reply was modified 4 years, 11 months ago by schakko.
Forum: Plugins
In reply to: [Next Active Directory Integration] Usage of another URL for custom loginIf you put
printstatements in both of your plug-in code and Init.php, in which order do they get executed?The correct order would be:
– your_plugin: 1
– your_plugin: 3
– Init.php: 1
– Init.php: 2
– Init.php: 3
( – Init.php: 4)
– your_plugin: 2
– Init.php: 5Forum: Plugins
In reply to: [Next Active Directory Integration] Usage of another URL for custom login– Is this a Multisite environment?
– Have you added print statements in the Init.php to see if theisOnLoginPagemethod gets triggered?Forum: Plugins
In reply to: [Next Active Directory Integration] Usage of another URL for custom login– How does the surrrounding code before and after your
add_filterstatement looks like? It seems like you are registering your filter too late and it has already been called by NADI.– You can check, if the method calling the filter is executed by adding print statements to https://github.com/NeosIT/active-directory-integration2/blob/master/classes/Adi/Init.php, method isOnLoginPage().
Forum: Plugins
In reply to: [Next Active Directory Integration] Usage of another URL for custom loginHi Klaus, does your custom filter not get executed (you can check it with a simple print statement) or does it not work?
Forum: Plugins
In reply to: [Next Active Directory Integration] wp_login Hook Not Being CalledYou can use WordPress’ own filter
wp_authenticate_useror NADI’snext_ad_int_login_succeededornext_ad_int_auth_after_create_or_update_userfilter.Forum: Plugins
In reply to: [Next Active Directory Integration] Uncaught ErrorDoes this occur in a multisite instance and/or with Kerberos enabled?
Forum: Plugins
In reply to: [Next Active Directory Integration] 504 error on curlThe synchronization of users require a lot of time. Please check after how long the 504 error occurs and check if this correlates to any timeout setting of your upstream server (in Apache e.g. TimeOut or KeepAliveTimeout). You can increase the according value.
If you are not able to increase those values, you can use the wp-cli premium extension to run the synchronization without using HTTP.