Synchronize Users automatic

16 years 10 months ago #38260 by tia
Synchronize Users automatic was created by tia
Hi

Is it possible? Synchronize users automatically?

I use LDAP autentication and the users are create in Joomla and I have to sincronize every time.

Thanks

Please Log in to join the conversation.

16 years 9 months ago #38629 by mikeclarke
Replied by mikeclarke on topic Re:Synchronize Users automatic
We have the same problem. Can't belive there's not an easy fix yet. Cron in cpanel just don't work for many of us.

Please help us someone.

Please Log in to join the conversation.

16 years 9 months ago #38682 by beat
Replied by beat on topic Re:Synchronize Users automatic
Yes, this can be done with a CB plugin, which would have to be written custom for your application.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

16 years 9 months ago #38828 by tia
Replied by tia on topic Re:Synchronize Users automatic
Hi

a friend of mine added a query and everything is okay now.
But, I did it in a test site.

Instructions:
-open index.php and search "frontend login & logout controls"
-after "$mainframe->login();" put the code:

$sql_sync = "INSERT IGNORE INTO #__comprofiler(id,user_id) SELECT id,id FROM #__users";
$database->setQuery($sql_sync);
$database->query();

Tia
The following user(s) said Thank You: julianelihu, seriousrakesh

Please Log in to join the conversation.

16 years 9 months ago #38836 by mikeclarke
Replied by mikeclarke on topic Re:Synchronize Users automatic
I just can't belive that worked! It's not perfect but it works for me. User's have to logout and back in for profile to be active.

Thanks again so much!

Please Log in to join the conversation.

15 years 6 months ago #74362 by lumo
Re:Change to sync the Joomla users to CB users

Amazing, this works perfectly, :)
When the user registers with the standard Joomla com_registration or in my case the com_secureregistration the message received is "Success, you may now login".
When logged in he can access all appropriate areas and in Virtuemart complete a transaction, being asked for his shopper details at checkout.

Perfect, thanks tia

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.335 seconds

Facebook Twitter LinkedIn