How to integrate LDAP when installing in puppet

Original thread is there:

In other words, I need to be able to change server.xml to enable LDAP authroization. Editing would be done using puppet.

Hope it explains my need.

Also, Stash config files that has 'Corporate LDAP' enabled are also welcome - I will try to reverse-code them. wink

4 answers

1 accepted

Accepted Answer
0 votes

Ok, then there is another option - Someone willing to share Stash configuration, that has this 'Corporate LDAP' enabled, so I can extract settings and try to hack them into the config w/o actually using REST APIs...

If file contains specific ip addresses, you can delete them. wink

0 votes

Rather than post links and expect people to read another system, please explain the problem here.  Most of us won't bother following links.

Ok smile

Sorry for this. So - idea is simple - I have puppet code, I get auth data from LDAP, but I cannot find command ( from REST API ) to actually change / enable LDAP authrozation directly by editing server.xml ( which, again, I suppose, keeps configuration of the feature 'Corporate LDAP for Authorization Only' ). Could you be so kind and point me the correct way to do this REST API 'PUT' ?

0 votes

Hi Linards, 


I not sure if what do you want is possible (or easier) to do. Well, let’s split this a little:

About passing the LDAP Password, maybe you could do this using a rest command but I’ve never tried this. However, take a look into these links:


If the rest script works, than you can use the exec option from Puppet to execute this. On this links you have an example:


Or you can use on this way:

exec { "install npm":
    command => "/usr/bin/curl | sh",
    creates => "/some/directory/somewhere”


To change the server.xml file, I recommend you to use Manifests on Puppet: 


Lastly, I’ve found this answer which has a similar question. I believe you might find useful information here. 


Hope this helps.



Renato Rudnicki

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

2,387 views 9 12
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you