Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Test retrieve user : Failed

Micke S.
Contributor
August 22, 2017

This is pretty frustrating.

Have installed Jira Core 7.4.2 on Windows Server 2016

My intention is to create and Active Directory Sync that gets all users within an AD-group. But i get stuck on an error that my sync account cannot be found.

This is what i have filled in into the Configure LDAP User Directory page:

Directory Type: Microsoft Active Directory
Hostname: domaincontroller.domain.com (also tested netbiosname only)
Port: 389
Username: SVC-Jira-Sync@domain.com (also tested FQDN, ie CN=SVC-Jira-Sync,OU=etc etc)
Password: The password for SVC-Jira-Sync
Base DN: Tested both DC=Domain,DC=com and a more specific OU FQDN
LDAP Permission: Read Only

Left the rest default

When its time for testing the connection i fill in User name and Password for SVC-Jira-Sync (tested both UPN and FQDN) i get this:

Test basic connection : Succeeded
Test retrieve user : Failed

User <SVC-Jira-Sync> does not exist
The rest of the tests are not performed.
 
if i on the Jira server open Powershell and run:
Get-ADUser "CN=SVC-Jira-Sync,OU=etcetc" -Server <server specified>
I get the user back, also verified the the UPN is correct.
 
I dont have any spaces in my FQDNs
 
Whats next?

5 answers

1 vote
Midori
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 19, 2014

Seriously, if you already have this in place for single value, why don't you build a workaround like this?

Instead of overwriting the current value in that field at updates, why don't you append (or prepend) the new value to that? If you need some metadata (like update time), you can also include that in the string appended.

I know it is not fancy, but can be built with minimal efforts and may solve your problem.

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 18, 2014

You will need to find or write a plugin to provide a field like this.  All the standard custom fields are true fields - they contain a single value or set of values in one place, not multiple lines.

Ankit Agarwal
November 18, 2014

Thanks Nic Brough,

how to write a plugin to add above field

 

 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 18, 2014

Start at https://developer.atlassian.com/display/JIRADEV/JIRA+Plugin+Development You'll need a "custom field" module. You have a couple of big design decisions to make. If you want to stick to the basic way of doing things, you'll need to consider how to store multi-line data in the database in a a way that your field can extract and convert to a comment-like structure, and when being added to, it needs to take the existing data and append rather than overwrite. Or, you can do it in a more structured way - you'll need a new table in the database, structured for multiple lines per issue, with each line having author, date, content etc, and a way to read/write it directly - this is a little more complex than a simple custom field plugin, but is the correct approach

0 votes
Ankit Agarwal
November 24, 2014

Thanks FerencKiss & Nic Brough I appreciate both of your thoughts Can you please share the some links for get the data from external database in a custom field

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 21, 2014

1. No 2. I'm not aware of one for tagging comments or re-inveinting the wheel as another comment type field 3. Yes - free text is unlimited

0 votes
Ankit Agarwal
November 21, 2014

@Ferenc Kiss [Midori] & @Nic Brough [Adaptavist]

I appreciate both of your thoughts. I understand that creating a new table in database would be more structured, but it will take hell lot of efforts. So i was wondering is there a way to:

  1. Tag JIRA Comments : so that Comments from external tools can be grouped in a separate TAB. And they dont appear in the regular JIRA Comments Tab.
  2. An plugin is already available in the Market Place, so that i don't have to reinvent the wheel.
  3. Can a CustomField hold large Text(much greater than 255 characters)?

 

Suggest an answer

Log in or Sign up to answer