When would do you purchase Crowd?
Asked by Jonathan Smith:

How many Atlassian applications should you have before getting Crowd?

Note: Currently all of my apps are running user directories though active directory so enabling/disabling is handled outside the apps. Knowing this, how would I benefit in having Crowd?


Answers:
author: AnnWorley
body: When to get Crowd is not dependent on how many Atlassian applications you have. Rather, you should buy Crowd when you want to handle user management for all the apps from a single console or you want to use the SSO capability Crowd provides.

The best practice is to connect the LDAP directories to Crowd and then Crowd to the individual applications.

Eager to hear what others have to say about when/if to implement Crowd.

comments: author: Vick Khera
body: Does SSO still work? As of Crowd 3.2 you cannot specify a bare domain beginning with a dot as the cookie domain anymore and still login to crowd itself.


author: AnnWorley
body: Hi Vick,

It does still work - please see our guide:

[SSO within a Single Domain](https://confluence.atlassian.com/crowd/overview-of-sso-179445277.html#OverviewofSSO-SSOwithinaSingleDomain)
> If you wish to have single sign-on (SSO) support for \*.mydomain.com, you will need to configure the SSO domain in Crowd as .mydomain.com --- including the full stop ('.') at the beginning

Have you had an experience where it has not worked, or run into a bug? Please let us know how to help.

Thanks,

Ann


author: Marcin Kempa
body: Hi [@Vick Khera](/t5/user/viewprofilepage/user-id/559610)

As [@AnnWorley](/t5/user/viewprofilepage/user-id/502040) noted the SSO still works and you do not need to specify a base domain starting with a dot. [The RFC 6265 states](https://tools.ietf.org/html/rfc6265#section-5.2.3) regarding the domain attribute in the Set-Cookie header:
>
> ```
> If the first character of the attribute-value string is %x2E ("."):      Let cookie-domain be the attribute-value without the leading %x2E      (".") character.   Otherwise:      Let cookie-domain be the entire attribute-value.
> ```

I believe the problem you are seeing in the Crowd 3.2 (and in Crowd 3.1) is related to [this issue](https://jira.atlassian.com/browse/CWD-5141).

Indeed Crowd should not act in a way where this leading dot is not permitted as the same [RFC 6265 states in the server requirements (4.1.2.3)](https://tools.ietf.org/html/rfc6265#section-4.1.2):
> \[...\]
>
> ```
> (Note that a leading %x2E ("."), if present,   is ignored even though that character is not permitted,
> ```
>
> \[...\]

however this is the way Tomcat 8.5.x works by default and this is the Tomcat version that is being included since Crowd 3.1.x

Sorry for the inconvenience but we are already working on resolving this problem. In order to resolve it by yourself just remove the leading dot in the SSO cookie domain in Crowd config.

Hope that helps,

Marcin Kempa


author: Vick Khera
body: Yes, you get a well known exception from the cookie validator when logging into Crowd itself. I filed an issue already. Cookie domains are not allowed to begin with a "." and now the validator enforces it.


author: Vick Khera
body: [@Marcin Kempa](/t5/user/viewprofilepage/user-id/671367) Thanks! I had to delete the property from the database when I upgraded from 3.1 to 3.2. I just restored it without the leading dot.


author: Marcin Kempa
body: I can imagine that the experience here is not great... I am now updating the <https://jira.atlassian.com/browse/CWD-5141> with the appropriate information.

Again sorry for the inconvenience!


author: Marcin Kempa
body: [@Vick Khera](/t5/user/viewprofilepage/user-id/559610) indeed looks like the problem only occurs in Crowd 3.2.0


author: Marcin Kempa
body: Once the SSO domain is change, Crowd will start to set the SSO cookie for this domain, however browser may still have the old one for the domain with the dot at the beginning and may choose this one to be send back to server (for browsers according to RFC 6265 it does not matter if the domain starts with a dot or not).

If the old cookie is sent then Crowd may reject such session and users would have problems with authentication. Even if they login again Crowd will send a cookie with a domain without the dot and the old one will still be there and the user would arrive at the same situation back again.

The solution might be to either remove Crowd SSO cookies from the browser or change the name of the SSO cookie in Crowd config and **all** other applications that are connected to Crowd so the SSO still works.

The former solution has this problem that you would have to tell that to all of your users if they experience this kind of problem. The latter may require some more work from you and potentially a restart of applications connected to Crowd.

I have not test this scenario yet, but this is what I believe may happen. We are exploring different solutions for this problem and will post and update on the ticket here <https://jira.atlassian.com/browse/CWD-5141>.

Best Regards,

Marcin Kempa


author: Marcin Kempa
body: The <https://jira.atlassian.com/browse/CWD-5141> issue was resolved in Crowd 3.2.1 which is now available for [downloads](https://www.atlassian.com/software/crowd/download).

Best Regards,

Marcin Kempa


author: Vick Khera
body: I got it once we went from just Jira to Jira + Confluence. I use Crowd as the directory itself.

As for if it will benefit you given you already have AD, I don't know. Maybe the authentication of the application to the authentication server may be easier with Crowd.


Tags: jira