By Tim on Thursday, 23 January 2014
Posted in General
Replies 27
Likes 0
Views 1.3K
Votes 0
I am not sure what might have caused it, but when new users log in (we are connected to an Active Directory setup with jmapmyldap), they are getting orphaned instead of associating to the default profile. Any suggestions on how to fix this?
Hello Tim,

I am really sorry for the delay of this reply. After a very long search and debug process, it looks like there are no hacks necessary because EasySocial already has these codes (my bad, i can't remember that I wrote this) . The reason why it wasn't kicking in was simply because the EasySocial user plugin was set to "Special" access
·
Thursday, 06 February 2014 00:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tim,

Hm, not too sure what you meant by "orphaned". Can you please advise?
·
Thursday, 23 January 2014 11:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Sure, here's a screenshot from the easysocial profiles screen. I have created and logged in with about 5 new Active directory accounts and each has been listed as orphaned on this screen. When the user opens up easysocial and attempts to edit Account Settings, the screen is blank until I go into the backend and manually assign a profile. Any help you can provide is appreciated!
Tim
·
Thursday, 23 January 2014 11:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tim,

Hm, is this happening for existing user's only? Can you please provide us with the login for one of the user that is not mapped on Joomla yet?
·
Thursday, 23 January 2014 11:28
·
0 Likes
·
0 Votes
·
0 Comments
·
No, it was working ok up until today, but now it doesn't work for users that have never logged in before. I've been making a lot of modifications in the joomla back-end and the only thing I can think of that would be related is this: I deleted a user from the easysocial backend.

At your request, I created a new user on Active Directory. It is attached below. When you log in, a user account should be created for it in joomla, and it will join the group "ESC" but it will not be associated with an easysocial profile.
Tim
·
Thursday, 23 January 2014 11:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tim,

Hm, this is odd because I am not hitting any errors with the user that you have just provided when I access http://home2.warsaw.k12.in.us/index.php?option=com_easysocial&view=profile&Itemid=194 . Can you also create another super admin user and also provide us with the FTP access?
·
Thursday, 23 January 2014 16:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark, I'm sorry. It looks like I'm not explaining very well! I see that you logged in with the new account. The URL I see problems at is http://home2.warsaw.k12.in.us/index.php?option=com_easysocial&view=profile&layout=edit&Itemid=194 . I'm attaching two screenshots, one from the front-end and one from the back-end.

I appreciate your time on this! Your company's product and support are awesome!
Tim
·
Thursday, 23 January 2014 19:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry, I missed your request for another superuser account.

the below username (stackideas) is a superuser. I am also including updated ftp since we changed our domain name.
Tim
·
Saturday, 25 January 2014 00:10
·
0 Likes
·
0 Votes
·
0 Comments
·
I thought perhaps updating easysocial would resolve this, but it hasn't.

Would it be helpful if I did a screencast to show what is happening more clearly?
Tim
·
Saturday, 25 January 2014 23:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Ops, I am really sorry, I guess I missed your post (Was too carried away with the development of EasySocial 1.2) . By the way, can I know how were the user's created on the site? Are you currently only using the LDAP plugin or is there some sort of bridge around?

I think the problem here is because when the user is created (somewhere else not via EasySocial), the profile assignment didn't get triggered since there's another plugin on the site that is creating the users in Joomla. I probably need to add some hacks so that when a new user is created and does not belong to any profile, to automatically assign them. Can I proceed with such hacks?
·
Sunday, 26 January 2014 02:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark, I appreciate the work you're doing on version 1.2!

What is confusing to me on this problem: we ran an alpha test with the JMapMyLdap plugin for about 10 users and they (as far as I was made aware) did not have this problem. It was only when I posted this ticket that I started noticing the problem (Beta testers). Since I've been doing a lot of configuring user groups on the joomla side to restrict rights on other (not-Stackideas) plugins, I can't say specifically when the problem started.

If you apply hacks, will they be something I can reproduce long term?
Tim
·
Sunday, 26 January 2014 03:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tim,

Hm, I need to know what is your current plugin doing because I can't really tell how to fix this unless I understand the behavior of your existing plugin. I guess once I apply the hacks, you wouldn't need to re-apply them unless you update that plugin.
·
Sunday, 26 January 2014 13:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

It looks like your account isn't tied up with any subscriptions on our site. Is there any mistake on our end? Would it be possible for you to contact us at https://crm.stackideas.com and provide us with the order reference and your username so that we can fix this up for you?
·
Sunday, 26 January 2014 20:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Our domain was "home2.warsaw.k12.in.us" and we changed our domain to "wcsmission.com".
I'll get this updated in the stackideas control panel right away.
Tim
·
Tuesday, 28 January 2014 06:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tim,

Hm, sorry my message earlier wasn't directed to you but it is for the user "nimfa" above. By the way, let me know if it's okay for me to apply the hacks?
·
Tuesday, 28 January 2014 11:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, please go ahead.
Tim
·
Tuesday, 28 January 2014 13:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Tim but before that, can I know how did you create the user on LDAP? Did you create it on Joomla or an external system? I actually need to know which plugin is responsible in doing this.
·
Thursday, 30 January 2014 00:31
·
0 Likes
·
0 Votes
·
0 Comments
·
We are using the JMapMyLDAP extension for its mapping of groups from Active Directory

I believe the addition of the user happens via the jmapmyldap user plugin:

/plugins/user/jmapmyldap/jmapmyldap.php
JMapMyLDAP::saveUser [Line #102]

Then to saveUser function in:
/libraries/shmanic/jmapmyldap.php [Line #745]

Let me know if this is what you were looking for.
Tim
·
Thursday, 30 January 2014 04:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tim,

I am really sorry for the delay of this reply, was away for the Chinese New Year Holidays and didn't had the time to look into this. I have applied some fixes on the site but I am not sure if it is working or not as I don't have any new LDAP logins to try. Could you create some LDAP logins to test this out?
·
Monday, 03 February 2014 21:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Just for your information, I have added the codes below in the file /plugins/user/easysocial/easysocial.php and at line 136 added the codes below:


/**
* Checks if the user has any profile upon saving
*
* @since 1.2
* @access public
* @param string
* @return
*/
public function onUserAfterSave( $user , $isnew , $success , $msg )
{
if( $isnew )
{
$model = Foundry::model( 'Profiles' );
$profile = $model->getDefaultProfile();

// Get the user object
$my = Foundry::user( $user->id );

if( !$my->profile_id )
{
$my->profile_id = $profile->id;

$profile->addUser( $my->id );
}
}
}
·
Monday, 03 February 2014 21:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark, thank you for the update. I appreciate your efforts on this. Unfortunately, it didn't solve the problem, and introduced a new one. With that code enabled, I am no longer able to edit users in the joomla administrative back-end, and users are not able to log-out using the menu item in the copyright menu (bottom of page.)

I have commented-out the code until you can look at it again.

I've created three new users, starting with the one listed below, and incrementing the number so that you can test with them.

I'm attaching a screenshot of nitsu21's preferences->account settings screen as well.
Tim
·
Monday, 03 February 2014 21:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tim,

Hm, I would need users that has been created on the LDAP server but never logged into the Joomla site before. I need to be able to "capture" these user data.
·
Monday, 03 February 2014 21:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, those three users are brand new users on Active directory but have never logged into our website.
Tim
·
Monday, 03 February 2014 23:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello TIm,

I don't see those 3 user's login credentials above. Can you please advise?
·
Tuesday, 04 February 2014 00:37
·
0 Likes
·
0 Votes
·
0 Comments
·
sorry, please see below for the sequence (optional information)
Tim
·
Tuesday, 04 February 2014 01:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark, that is embarrassing. We were trying to figure out how to make our "intranet" accessible to specific "outsiders" without allowing them access to easysocial, and we must have flipped that without realizing what it was (and forgot to flip it back). I appreciate you taking the time to figure that out. We love this combination of easyblog, easydiscuss, and easysocial so far, and the support is outstanding.
Tim
·
Thursday, 06 February 2014 00:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tim,

Not a problem at all, at least the issue is fixed now
·
Thursday, 06 February 2014 01:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post