RuslanCC
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
For me the problem was that account and profile were the same page in the settings. You need to choose different pages.
For now – no.
I send a ticket to support.Forum: Plugins
In reply to: [Active Directory Integration] How to list user groups from template?OK, now it looks like:
// in functions.php class ADIntegrationPluginGetGroups extends ADIntegrationPlugin { public function get_user_groups($username) { $ad_pass = $this->_decrypt($this->_syncback_global_pwd); $this->_adldap = @new adLDAP( array( "base_dn" => $this->_base_dn, "domain_controllers" => explode(';', $this->_domain_controllers), "ad_username" => $this->_syncback_global_user.$this->_account_suffix, "ad_password" => $ad_pass, "ad_port" => $this->_port, "use_tls" => $this->_use_tls, "network_timeout" => $this->_network_timeout ) ); return $this->_adldap->user_groups($username); } } // in template $ADI = new ADIntegrationPluginGetGroups(); $groups = $ADI->get_user_groups('LOGIN');You should have “Global Sync User”
Forum: Plugins
In reply to: [Active Directory Integration] How to list user groups from template?My temporary solution:
// in functions.php class ADIntegrationPluginGetGroups extends ADIntegrationPlugin { public function get_user_groups($username) { return $this->_adldap->user_groups($username); } } // in template $ADI = new ADIntegrationPluginGetGroups(); $ADI->authenticate(NULL, 'LOGIN', 'PASSWORD'); $groups = $ADI->get_user_groups('LOGIN');$groups = array with group names.
Can I do the same, but without authenticate() ?
Forum: Plugins
In reply to: [Active Directory Integration] How to list user groups from template?Anyone?..
Viewing 5 replies - 1 through 5 (of 5 total)