youngmon/atlassian-qna huggingface dataset:
LDAP login with username either userPrincipalName or sAMAccountName?
Asked by Alan Sparks:

Isd it possible to configure an LDAP (MS AD) directory that will allow a user to log in using either the LDAP directories' userPrincipalName or sAMAccountName attrribute value? I'd like to allow people to use either (the one is older and more familiar to my audience than the other). Or is it only possible to match on a single attribute for a login username?

Thanks.

-Alan


Answers:
author: justindowning
body: You can setup multiple LDAP repositories in Confluence. In 3.4.x and earlier, just edit atlassian-user.xml and input to repositories with different usernameAttribute elements:

```
<ldap key="ad1" name="ad1" cache="true">
```

```
        <host>ad1</host>
```

```
        <port>389</port>
```

```
        <securityProtocol>plain</securityProtocol>
```

```
        <securityAuthentication>simple</securityAuthentication>
```

```
        <usernameAttribute>sAMAccountName</usernameAttribute>
```

```
        <userSearchFilter>(objectClass=user)</userSearchFilter>
```

```
        <firstnameAttribute>givenname</firstnameAttribute>
```

```
        <surnameAttribute>sn</surnameAttribute>
```

```
        <emailAttribute>mail</emailAttribute>
```

```
        <groupnameAttribute>cn</groupnameAttribute>
```

```
        <groupSearchFilter>(objectClass=group)</groupSearchFilter>
```

```
        <userSearchAllDepths>true</userSearchAllDepths>
```

```
        <groupSearchAllDepths>true</groupSearchAllDepths>
```

```
        <membershipAttribute>member</membershipAttribute>
```

```
</ldap>
```

```
<ldap key="ad2" name="ad2" cache="true">
```

```
        <host>ad2</host>
```

```
        <port>389</port>
```

```
        <securityProtocol>plain</securityProtocol>
```

```
        <securityAuthentication>simple</securityAuthentication>
```

```
        <usernameAttribute>userPrincipalName</usernameAttribute>
```

```
        <userSearchFilter>(objectClass=user)</userSearchFilter>
```

```
        <firstnameAttribute>givenname</firstnameAttribute>
```

```
        <surnameAttribute>sn</surnameAttribute>
```

```
        <emailAttribute>mail</emailAttribute>
```

```
        <groupnameAttribute>cn</groupnameAttribute>
```

```
        <groupSearchFilter>(objectClass=group)</groupSearchFilter>
```

```
        <userSearchAllDepths>true</userSearchAllDepths>
```

```
        <groupSearchAllDepths>true</groupSearchAllDepths>
```

```
        <membershipAttribute>member</membershipAttribute>
```

```
</ldap>
```
Is it possible to manage watchers dor a space?
Asked by Richard Hierro:

Hi

For some important spaces, I would like to add watchers. The idea is if anything new is published in those spaces, a list of persons will receive a mail, but, as adminstrator of Confluence, I would like to add myself the users to the space wtacher list.

Thanks for yous answers

Richard


Answers:
author: Jim Birch
body: You can add youself as a space watcher under Space Admin, Advanced. Anyone else with Space Admin rights should be able to do the same but you can't do it for them.

comments: author: Richard Hierro
body: "you can't do it for them", yes, that is the problem, and it is a suggegestion of a new feature, see the link posted by Azwandi.


author: Azwandi Mohd Aris
body: There seems to be no way to do this at the moment, see <https://jira.atlassian.com/browse/CONF-22313> for more information.

comments: author: Richard Hierro
body: Thanks for your answer. Any idea how I could vote for this feature?


author: justindowning
body: Create an account on [jira.atlassian.com](http://jira.atlassian.com), log in, and click the Vote button.


author: Richard Hierro
body: Well, I did not see a vote button, but I found a "Add a vote" under "More actions" menu, thanks :) .
Is it possible to automatically refresh content in Confluence?
Asked by P?ter T?r?k:

We are using Confluence 3.0 to host our project Wiki. One page shows data about the deployed servers in our project: what version of our web app each server runs, which DB it connects to, when it was last updated etc. Since updating this page by hand is easy to forget or mess up after server configuration changes, we thought it would be nice to have a way to automatically keep it in sync with reality.

To be more precise, we would like to parse specific bits of data from config files on various servers, and transfer them to Confluence to update specific cells in a table on this page.

Is this possible e.g. via the Reporting Plugin (or by whatever other means)?


Answers:
author: Gaston Gaston
body: Did you check the confluence-cli?

I was using it to create pages from my machine via command line interface.

I think you can use that in conjunction with some shell scripts (if you're using unix/linux)

<https://studio.plugins.atlassian.com/wiki/display/CSOAP/Confluence+Command+Line+Interface>

Hope this helps.


Tags: refresh
can i set edit permisson and add permission separately to a user?
Asked by patrick sch?ttin:

Hi there,  

is it possible to set the "add page" permission (permission to add pages in confluence) and the "edit page" permission (permission to edit existing pages in confluence) separately?  

thx.


Answers:
author: Nic Brough -Adaptavist-
body: No. They are the same permission because it doesn't make a lot of sense to allow someone the right to do one and not the other. Especially on a wiki, where people draft stuff and are positively encouraged to edit later.

What's the aim though? There may be a good way to achieve what you want without thinking about permissions.
How do I get tif tiff image files to display
Asked by Jason Stoller:

I added a tif image file to a page but it won't display using the gallery macro and it won't display using "Insert Image" in Wiki Markup. Any way to do this? thanks


Answers:
author: Quote Light Randomness
body: You can use a tiff viewer chrome extension like the one I wrote.

<https://chrome.google.com/webstore/detail/inline-tiff-viewer/kkfncbfgbghoklckdmeljdjohpkknlma>


author: arron lee
body: Hi, have you found your way out? Why not try to bulild a web tiff image viewer by your self to display the tiff images? I am learning about how to [create Tiff viewers](http://www.yiigo.com/guides/csharp/how-to-create-tiff-viewer.shtml) with the help of some manual tools which can be customized by users according to our own favors to help display and [read tiff files](http://www.yiigo.com/guides/csharp/how-to-read-tiff.shtml) these days. You can also google it and select one whose way of processing is simple and fast to help you with the related work. Remember to check its free trial package first if possible. I hope you success. Good luck.  

<br />

<br />

Best regards,  
Arron


author: Jo-Anne MacLeod
body: The gallery macro will not work with tif images "

* Only the following file formats are supported: **gif** , **png** , **jpeg** . The *bmp* format is not supported.

I've also had problem displayinig images with IE8. And it is a IE8 problem, becasue they will display in Firefox and Safari (I believe that it displays in Chrome, but I don't use it, so I can't confirm).

What browser are you using?

comments: author: Jason Stoller
body: I use Firefox and Safari. Too bad no other file formats are supported. gif and jpeg are "lossy"


author: Jo-Anne MacLeod
body: You can attach a tiff image though, you just can't get it to display a thumbnail. :(
Is there a list of elements that can be customized via CSS in the Easy Reader Theme?
Asked by Nick Yarsulik:

Hello!

I am trying to update my teams Confluence space which is a part of a larger Confluence site. I have been tinkering with the CSS on the Easy Reader Theme but I am unable to find a good reference of which elements I can actually change outside of some of the basic background elements.

Is there a more complete list or do I need to specifically post my question for each element I am trying to alter?

The biggest change I would like to make would be to make the full_height_container background semi-transparent without making the contents transparent. Is this possible? The "opacity" command simply makes everything in the container transparent.

<br />

Thanks!

Nick


Answers:
author: BenA
body: There are no specific elements or restrictions on what you can customise (that is, you are able to modify anything), you're really only limited by how much CSS you want to write and maintain :)

comments: author: Nick Yarsulik
body: Thanks! I was able to tinker around with "Inspect Element" in Google Chrome and found different things I can target. I had just hoped there would be an easier list of what was available instead of having to hunt around the code :o)


Tags: css

custom-field

theme
Any way of labelling pages en-masse
Asked by Lis Riba:

I'm looking for some way of labelling multiple pages without having to go into every single page.

Any suggestions (including enhancement requests which I can vote up) would be most appreciated.

Can anything be done by exporting a space to XML, editing the XML file and then reimporting it into a new space?

\[Has anyone investigated methods of assigning pages to labels rather than vice-versa. Similar to the way admins can either edit groups for a user or add members to a group. If I could just select the label and then enter the list of pages I want associated, that would still be easier.\]


Answers:
author: JamieA
body: Use the [Confluence CLI](https://studio.plugins.atlassian.com/wiki/display/CSOAP/Confluence+Command+Line+Interface) - you can list pages, add labels to pages etc.

comments: author: Lis Riba
body: Thanks. That did the trick.


author: Michele Lim [Cprime]
body: Hello! We have recently made a free plug in [Power Scripts for Confluence](https://marketplace.atlassian.com/apps/1219507/power-scripts-for-confluence?hosting=server&tab=overview) which you can download from the Marketplace to help automate Confluence administration, one of the features is bulk labelling. Here's a short video on how to do it [https://youtu.be/nM0a8JM2T2E?list=PLKTAla3ZrW8mMmYvgOVf3UPXU8V4nc-xj](https://youtu.be/nM0a8JM2T2E?list=PLKTAla3ZrW8mMmYvgOVf3UPXU8V4nc-xj?)

Hope this helps!

Michele


author: Tim Schmidt
body: Does the Label Manager work for blog posts aswell?


author: Mert Karada?l? _ K?stebek Teknoloji _
body: Hi,

You could do it with Label Manager for Confluence plug in.[](https://marketplace.atlassian.com/plugins/com.kostebekteknoloji.plugins.confluence.confluence-label-manager)<https://marketplace.atlassian.com/plugins/com.kostebekteknoloji.plugins.confluence.confluence-label-manager>  
You could search for similar labels in a space and then merge them into one standard label.  
You could also do bulk operations like appending , adding and removing labels.  
Documentation is here:[](http://www.confluence.kostebekteknoloji.com/display/PLUG/Label+Manager+for+Confluence)<http://www.confluence.kostebekteknoloji.com/display/PLUG/Label+Manager+for+Confluence>  
Regards,


author: Betsy Walker
body: We've had great success with the [Label Management plugin](https://plugins.atlassian.com/plugin/details/5076), however it officially is only compatible with Confluence versions up to 2.10.4.

(We're on 2.10.2 and about to upgrade, so I don't know yet whether it truly will work with a more recent version. The compatibility listing on the Plugin Exchange is often out-of-date.)


Tags: label
Creating multiple TOCs / Navigations using the same content
Asked by Anant Sabane:

I have a huge collection of pages and I want to create different TOCs used for different PDF output to be compiled. Some topics (pages) may be overlapping in different PDF files.

Even the same is required while delivering content in online + static HTML format too.

Can anyone please guide me on how to do that?


Answers:
author: Betsy Walker
body: Try the [contentbylabel macro](http://www.google.com/url?sa=t&source=web&cd=1&ved=0CB0QFjAA&url=http%3A%2F%2Fconfluence.atlassian.com%2Fdisplay%2FDOC%2FContent%2Bby%2BLabel%2BMacro&rct=j&q=confluence%20contentbylabel&ei=mNY6TobaO4iatwfgyP2MAw&usg=AFQjCNGN71rMM81rhoJSvSBvT6zE5yqMBg&cad=rja), and label the pages so that they end up in the appropriate 'collections'.

Note: this will list the page titles, not headings within a page... but maybe that'll work just fine.


author: ITops123
body: The table of contents plugin allows you to create table of contents by including or excluding header styles (e.g., h1, h2, h3). By using these strategically, you should be able to create different tables of contents for the same content.

You can also exclude specific headers using the macro. The macro browser windows gives you all those options and is easy to use.

comments: author: Anant Sabane
body: Thank you for your suggestion. However this navigation i am talking is not only about a single page. It is for a collection of pages across multiple spaces. To deliver a documentation set to the audience for a specific modular application, I need to create navigation. The same navigation is needed in online / static HTML / PDF forms.
Confluence using MySQL Plugin Export/Import Problem
Asked by Thomas Petersen:

So I'm having a problem: I exported my DB save for the PLUGINDATA table and imported it just fine. I've been having a problem reimporting the plugins themselves..

\[root@randomserver zipp\]# mysql --max_allowed_packet=1024M confluence \< confluence.plugindata.sql

ERROR 1153 (08S01) at line 44: Got a packet bigger than 'max_allowed_packet' bytes

Any suggestions? The dump file itself is only 48M

-rw-r--r-- 1 zipp users 48M Aug 3 14:37 confluence.plugindata.sql


Answers:
author: Sergey Markovich
body: Hi Thomas,

Have you set max_allowed_packet on MySQL server side too? When you set --max_allowed_packet=1024M parameter that is for MySQL client only. To change it on server change the my.cnf or my.ini file under the mysqld section and set max_allowed_packet=100M

You can also run these commands in a mysql console connected to that same server:

set global net_buffer_length=1000000;

set global max_allowed_packet=1000000000;

comments: author: Thomas Petersen
body: I opened up two consoles and had already tried those set commands and ended up getting the same error. Only thing I haven't done yet is trying to chunk the file? It's a 48M file so I see no reason it can't buffer this thing.


author: Thomas Petersen
body: Got it. Had to resize max_allowed_packet in my.cnf and restart mysqld.


Tags: app

export

import

mysql
How to show one Jira issue on a confluence page?
Asked by Mark DeSimone:

I like to track tasks in Jira and like to manage information in Confluence. So, when working on an issue, I create a task in Jira and create a page for it in Confluence and want to merge the two. So, I would like to show the Jira task on a confluence page. I see that there is a way to show a list of Jira tasks in Confluence, but I don't want that. Rather I would like to show only one Jira task on a page...the whole task, just as you see it in Jira...kind of like doing an iframe or include.


Answers:
author: Joe Clark
body: Hi Mark,

<br />

If you are running Confluence 3.5, you can use the "Insert JIRA Issue Dialog" to insert a reference to a single JIRA issue on a Confluence page (documentation here: <http://confluence.atlassian.com/display/DOC/Inserting+JIRA+Issues>).

This does only display a brief summary of the issue, though (issue key, issue status and summary). Unfortunately there is no way to embed the details of an entire JIRA issue into a Confluence page out-of-the-box.

Some options you may consider:

* Enable the {html} macro on your Confluence instance (note: there are security implications) and manually embed an iframe into your page for the JIRA issue).
* Develop a custom Gadget definition or Confluence macro to render the information you require


Tags: jira
Can the Page Approvals Plugin be used across multiple spaces in a report?
Asked by Daniel Stavrou:

Using the {pageapproval-report:show=all} macro and parameter, I can view all active approvals in a single space. Is there a way to view all active approvals across all spaces in Confluence using this plugin? Maybe in combination with another plugin?

Thanks!


Answers:
author: Rodrigo Girardi Adami
body: Hello Dan,

I've performed a search [here](https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.pageapproval) and it seems that the plugin can only search within a single space. You might want to raise a feature request with the plugin vendor to add a functionality to use multiple spaces ;)

I hope this helps!

Rodrigo


Tags: approver

page

report

space
Why do I get 'Unknown macro: {divbox} button text' after installing the Buttons Macro?
Asked by minesh patel:

I have installed the Buttons marco on my wiki. However, now I get this error message:  

***Unknown macro: {divbox} button text***

Does anyone know what this means? How can I fix it? Thanks.


Answers:
author: minesh patel
body: This requires an additional plugin.


author: Jo-Anne MacLeod
body: Try posting the question on the site for the button macro\[http://confluence.atlassian.com/display/DISC/button+macro\]. (I get the same error by the way)


author: ITops123
body: Can you be more specific? What macro are you talking about? Where is the link to the documentation?
Can Confluence be configured to store attachments on a SAN or NAS?
Asked by Rob Piscitello:

Can Confluence be configured to store attachments on a SAN or NAS? If not has anyone run into any scaleability issues?

Is this a feature that is on anyone's radar for development?


Answers:
author: Nicolas Wildner
body: It seems that Confluence don't have such feature to store attachments on a NAS,

However, as a former Linux sysadmin, i would suggest you(if running any Linux or UNIX variation) to:

* Create a NFS filesystem export on the NAS giving RW permissions just for the Confluence Server
* Mount this NFS on your Confluence Attachments dir, with the option -o soft, to avoid "hard sync" and performance problems;

I think it would be a better solution than rely on "Tool Side Configuration", using directly a Network Filesystem ;)


Tags: configuration

nas

scale

storage
Integration between Confluence and NAS or SAN for scaleability?
Asked by Rob Piscitello:

Can Confluence be configured to store documents in a Network attached Storage(NAS) Or a Storage Area Network (SAN) for storage scaleability purposes?

If not, does anyone know if there are plans to head in that direction?


Answers:
author: Alexander Johannes
body: Maybe you are able to mount your storage and put the confluence home on the share (the usual unix-foo).

Of course you have to make sure, that the share is available, before starting confluence.

Besides: this is no question specific to confluence, because confluence is doing nothing special here...


Tags: configuration

nas

scale

storage
Confluence user created date
Asked by Jason Skrzypek:

I have to do a growth rate since we installed confluence. Is there a way to find a user created date, so i can show how many people have been added to the system. Is it also posisble to do the same with pages (display all page created dates on one page)??

Thank you


Answers:
author: Richard Yale
body: You will need to go into the database and do a few different queries. The first for users will be the \[users\] table and you'll want to look at the "created" column. For the pages you'll want to look at the \[content\] table and you'll want to filter by the creationdate column and do a where version = 1 and contenttype = page.


author: Richard Yale
body: You will need to go into the database and do a few different queries. The first for users will be the \[users\] table and you'll want to look at the "created" column. For the pages you'll want to look at the \[content\] table and you'll want to filter by the creationdate column and do a where version = 1 and contenttype = page.


Tags: user
Child Page Sorting Problem
Asked by Bryan Bae:

version: 2.10.1

I have s problem with chlid page list...

doesn't child page list sorted into alphabetically???

i tested this problem...

first day, i made new pages that titles were 00page, 01page, 03page....

the child page list sorted into alphabetical...00page, 01page, 03page...

next day, i made new pages that titles were 31page, 32page, 33page...

the child page list showed 31page, 32page, 33page, 00page, 01page, 03page.....

is this problem a bug???

how can i make the list order as alphabetically??


Answers:
author: Martin Cooper
body: My apologies Bryan.

Yes you can reorder the Child list at the bottom of the page. This again may be version dependant, but recent versions have re-order page link next to the display which takes you the hierarchy view which lets you adjust the sort order manually or select Alphabetical.

This functionality is avialable in 2.10 as well

<http://confluence.atlassian.com/display/CONF210/Setting+a+Page+Family+to+Alphabetical+Order>

comments: author: bryan finch
body: it depends are you an adult, with no children, putting an ga before s on one of your famly mimbers so you can take away there prize money, for what thay have been working so hard for, if you are then you have no clue what im going to do,being that famly member


author: Martin Cooper
body: Not sure about in that specific version, but the current version the Children Display Macro allows you to select the sort order based on title, creation or modified values. It also has a reverse sort order.

I've tested this and it lists the pages correctly.

{children:sort=title}

It does look like your macro is sorting based on creation date.

comments: author: Bryan Bae
body: i know that macro.....

i mean children page list that is bottmon of a page...
LDAP authentication with Active Directory not working - Help with troubleshooting
Asked by G?ran T?rnqvist:

Hi,  
I ve been trying to test a connection to our Active Directory using both Confluence and paddle-6.jar / atlassian-user.xml and JExplorer but whatever I try, I get error AuthenticationException and error code 52e invalid credentials.

This is basically my settings.

\<host\>dc1.office.local\</host\>  
\<port\>389\</port\>  
\<securityPrincipal\>uid=Confluence,ou=Service Accounts,ou=Users,ou=xxx,ou=xxx,dc=office,dc=local\</securityPrincipal  
\<securityCredential\>--------\</securityCredential\>  
\<securityProtocol\>plain\</securityProtocol\>  
\<securityAuthentication\>simple\</securityAuthentication\>  
\<baseContext\>dc=office,dc=local\</baseContext\>

I ve been playing around with all kinds of different DNs + moved the account to the top Users node in AD so my guess its something else.

<br />

Need help troubleshooting. Could it be a setting in our Active Directory preventing the connection?  
At the moment I don t have any Active Directory Admin to ask...

Thanks...


Answers:
author: Jim Birch
body: For AD you will do better using a login name (security principal) formatted like **loginname@xyz.local** The full DN doesn't work in a lot of situations.

For you, this should be **confluence@office.local** based on what you posted.

comments: author: Joe Clark
body: I was about to suggest this - spot on.


author: JamieA
body: If you can't bind to the ldap server using JXplorer it's just a case of "contact your admins". The principal DN or password or both is wrong... Not much point in trying to get it working with confluence til you've got past this point.

comments: author: G?ran T?rnqvist
body: Ok, thanks.  

The AD admins won t be around for a few weeks so I guess its up to me to find the answer :(  

If anyone have any idea on what settings in AD I should check, I would be grateful - policy settings etc etc.


Tags: active-directory

ldap