cancel
Showing results for 
Search instead for 
Did you mean: 

external Invitation to site no username/password

oklein
Champ on-the-rise
Champ on-the-rise
Hi,

i just installed Community 3.3 and tested invitation for external users. The invited user gets a email with an url, but no username / password. From the used template (invite-email.ftl) I know, the inviteeGenPassword is missing, how do I enable the generation of an inital password?

Bye, Olaf
8 REPLIES 8

oklein
Champ on-the-rise
Champ on-the-rise
Hi,

i now turned on debugging and it seems, that createInviteeDisabledAccount is not called for that user. By looking into java/org/alfresco/repo/invitation/InvitationServiceImpl.java I can see that can only happen when the system thinks the User exists already:

if (this.mutableAuthenticationDao.userExists(inviteeUserName) == false) {
                        if (logger.isDebugEnabled())
                                logger
                                                .debug("Invitee user account does not exist, creating disabled account.");
                        inviteePassword = createInviteeDisabledAccount(inviteeUserName);
                }

I wonder if that happens because of our Authentication.chain - passthru, ldap-ad?

Bye, Olaf

PS: Here the debug output from InvitationServiceImpl:

12:28:19,402 DEBUG [org.alfresco.repo.invitation.InvitationServiceImpl] startInvite() inviterUserName=olaf.klein inviteeUserName=null inviteeFirstName=eeee inviteeLastName=rrrrrr inviteeEmail=postmaster@xxx siteShortName=oklein inviteeSiteRole=SiteConsumer
12:28:21,904 DEBUG [org.alfresco.repo.invitation.InvitationServiceImpl] not explictly passed username - created new person, inviteeUserName=eeee_rrrrrr
12:28:23,991 DEBUG [org.alfresco.repo.invitation.InvitationServiceImpl] Starting Invite workflow task by attaching empty package…
12:28:24,705 DEBUG [org.alfresco.repo.invitation.InvitationServiceImpl] Updating Invite workflow task…
12:28:25,112 DEBUG [org.alfresco.repo.invitation.InvitationServiceImpl] Transitioning Invite workflow task…

oklein
Champ on-the-rise
Champ on-the-rise
Here the debug output created with a default installation, the password gets created:

13:56:37,587 DEBUG [org.alfresco.repo.invitation.InvitationServiceImpl] startInvite() inviterUserName=admin inviteeUserName=null inviteeFirstName=aaa inviteeLastName=bbb inviteeEmail=postmaster@xxx siteShortName=xxx inviteeSiteRole=SiteConsumer
13:56:39,822 DEBUG [org.alfresco.repo.invitation.InvitationServiceImpl] not explictly passed username - created new person, inviteeUserName=aaa_bbb
13:56:39,891 DEBUG [org.alfresco.repo.invitation.InvitationServiceImpl] Invitee user account does not exist, creating disabled account.
13:56:40,750 DEBUG [org.alfresco.repo.invitation.InvitationServiceImpl] Starting Invite workflow task by attaching empty package…
13:56:41,192 DEBUG [org.alfresco.repo.invitation.InvitationServiceImpl] Updating Invite workflow task…
13:56:41,304 DEBUG [org.alfresco.repo.invitation.InvitationServiceImpl] Transitioning Invite workflow task…

mrogers
Star Contributor
Star Contributor
Yes your issue is that when using NTLM the account already exists so there's no need to generate a new account and temporary password.

Possibly the notification email should be changed.   What would you like to see in your case?

oklein
Champ on-the-rise
Champ on-the-rise
Hi,

since i want to invite external users to my site in /share/page/site/testsite/invite ("…Add External Users"), the accounts do not exist.
What can I do to create this users in alfresco and get a username / password for them?

Bye, Olaf

oklein
Champ on-the-rise
Champ on-the-rise
Yes your issue is that when using NTLM the account already exists so there's no need to generate a new account and temporary password.

Uuuh, my fault, thanks for pointing me in the right direction - I just added an AlfrescoNtlm1 authentication into the auth-chain and it works like expected. Now we only have to decide if we want the user data in 2 different databases…

opoplawski
Champ in-the-making
Champ in-the-making
I think I'm seeing the same this with 3.2r2 - invited users get a link but no username and password.  The account is created in alfresco and is enabled.  How to turn on debugging here?

kbonnet
Champ in-the-making
Champ in-the-making
I think I'm seeing the same this with 3.2r2 - invited users get a link but no username and password. The account is created in alfresco and is enabled. How to turn on debugging here?

I have this same questions for Alfresco Enterprise 3.2

opoplawski
Champ in-the-making
Champ in-the-making