Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Tests can't connect to service

I've got a pipeline unit test script that uses 2 services, postgresql and samba. I'm accessing them by as suggested, not localhost. I've got a sleep 15 infront of the tests and an nmap shows ports open and services up. Tests can connect to the database service just fine, but can not connect to the samba service.

+ nmap -v -sT
Starting Nmap 7.70 ( ) at 2018-08-21 14:02 UTC
Initiating Connect Scan at 14:02
Scanning localhost ( [1000 ports]
Discovered open port 22/tcp on
Discovered open port 445/tcp on
Discovered open port 139/tcp on
Discovered open port 135/tcp on
Discovered open port 3268/tcp on
Discovered open port 49153/tcp on
Discovered open port 5432/tcp on
Discovered open port 389/tcp on
Discovered open port 49154/tcp on
Discovered open port 3269/tcp on
Discovered open port 464/tcp on
Discovered open port 636/tcp on
Discovered open port 88/tcp on
Discovered open port 49152/tcp on
Completed Connect Scan at 14:02, 0.04s elapsed (1000 total ports)
Nmap scan report for localhost (
Host is up (0.00013s latency).
Not shown: 986 closed ports
22/tcp open ssh
88/tcp open kerberos-sec
135/tcp open msrpc
139/tcp open netbios-ssn
389/tcp open ldap
445/tcp open microsoft-ds
464/tcp open kpasswd5
636/tcp open ldapssl
3268/tcp open globalcatLDAP
3269/tcp open globalcatLDAPssl
5432/tcp open postgresql
49152/tcp open unknown
49153/tcp open unknown
49154/tcp open unknown
RAN: /usr/bin/ldapadd -c -x -H ldap:// -D CN=Administrator,CN=Users,DC=padnag,DC=dev -w Password1 -f /root/ad_users.add.ldif
ldap_result: Can't contact LDAP server (-1)


I've run out of ideas how to debug / resolve this.


1 answer

0 votes

Hi Greg,

Is there anything of interest in the logs of your Samba service container?

Do you need to specify any specific ports when running ldapadd, or do the defaults match with what samba is using?

I can't see any reference to samba in the output of 'nmap'. Is that expected, or should it be there?



Thanks. It's Samba AD active directory on the default port 389. It's all works under docker-compose. I'll try bump the verbosity on the logs and see if something shows up.

Bingo! found this in the logs which I've seen before.

set_nt_acl_no_snum: fset_nt_acl returned NT_STATUS_ACCESS_DENIED.

With docker-compose I had to pass --privileged to docker run. Is there a pipelines equivalent available?

Suggest an answer

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

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

995 views 20 11
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