Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can we implement customize password policy for Bitbucket

How can we implement customize password policy for Bitbucket. In case we want to have complex password policy like 4 numeric and 4 alphanumeric .

3 answers

0 votes
Marty Atlassian Team Feb 17, 2019

Hi Nawal,

are you using the Cloud or Server version of Bitbucket?

I'm not on the Bitbucket team, but I'll try and work this out.

If you are using Bitbucket Cloud, then you can setup password policies for all your Atlassian Cloud Products using Atlassian Access: https://confluence.atlassian.com/cloud/password-policies-938859739.html

I haven't found anything yet for Bitbucket Server, have reached out to the team informally, will let you know if/when I get a response.

I hope that helps!

0 votes
Marty Atlassian Team Feb 17, 2019

Hi Nawal,

for Bitbucket Server, this functionality does not appear to exist in Bitbucket.  Instead, typically Customers connect to an external User Directory via the LDAP protocol.  The User Directory would then control the password policy.

https://confluence.atlassian.com/bitbucketserver/connecting-bitbucket-server-to-an-existing-ldap-directory-776640403.html

https://confluence.atlassian.com/bitbucketserver/delegating-bitbucket-server-authentication-to-an-ldap-directory-776640402.html

I hope that helps!

Marty Atlassian Team Feb 17, 2019

Hi Nawal,

I dug a little deeper on this and it looks like, if you use Bitbucket Server without an LDAP directory then it will use an Atlassian product called Crowd to manage a local user base.  

You can configure a regular expression for passwords there: https://confluence.atlassian.com/display/CROWD/Configuring+an+Internal+Directory?_ga=2.250763654.1691782868.1549600512-1540663825.1539569898

I hope that helps!

Thank you all of u. I am using server version and wanted to implement client customized password policy. And am really surprised to check that the issue has been highlighted in 2017 as a critical requirement from security and customer ask.

Like Marty likes this

Hey Marty,

Appreciate your valuable information.

So the Crowd internal directory have to be installed additionally? Or it's already built-in with Bitbucket installation, and just requires to be enabled via settings?

Can we integrate confluence or JIRA with on server Bitbucket to enforce customized password policy.

Marty Atlassian Team Feb 24, 2019

Hi Nawal,

yes when you have multiple Atlassian products installed you can use a User Directory called Atlassian Crowd.

https://confluence.atlassian.com/display/CROWD/Configuring+an+Internal+Directory

I hope that helps!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,804 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you