All Versions
Fisheye 4.2 DocumentationFisheye 4.1 Documentation
Fisheye 4.0 Documentation
More...
This page explains the settings for LDAP authentication and their parameters.
On this page:
Global LDAP settings are:
URL | The URL of the LDAP server, e.g. |
Base DN | The base search space for users, e.g. |
User Filter | The LDAP search for locating users, e.g. |
UID Attribute | The name of the username attribute in objects matching the filter. |
Email attribute | Optional. The name of an attribute giving the user's email address. |
Cache TTL (positive) | How long FishEye should cache permission checks. Example values are: |
Auto-add | FishEye can automatically create a user it has not previously encountered if the user can successfully authenticate against LDAP. |
Initial bind DN and password | Optional. If your LDAP server does not allow anonymous bind, then you need to specify a user FishEye can use to do its initial bind. |
Synchronise users with Crowd | Optional. Sets whether users will be loaded from an external directory. |
You can give FishEye an LDAP filter that will be used to check if a user has access to individual repositories.
To specify this filter for a repository, open the Permission settings of the repository, and check the Apply LDAP restriction option. Then just below the checkbox, type the filter string:
LDAP restriction | An LDAP filter used to check if a given user can access a given repository, e.g. |
Match Type | One of 'user' (default) or 'any'. This setting modifies how the search results are interpreted.
|
When writing your LDAP filter, the following expressions are available:
${USERNAME} will be replaced by the username of the logged user${DN} will be replaced by the Distinguished Name of the logged user${REP} will be replaced by the name of the repository the logged user is trying to accessTo allow an user to access a repository only if he or she is part of the group AuthorizedGroup, specify a LDAP filter such as: (&(uniqueMember=${USERNAME})(cn=AuthorizedGroup)(objectClass=groupofuniquenames)) and set the Match Type as Any.
Testing the LDAP restriction
To test the LDAP restriction, you can use Apache Directory Studio:
${USERNAME} or ${REP}, replace them by the username or repository name you want to test)To have FishEye connect to an Active Directory server, use settings such as the following:
URL |
|
Base DN |
|
User Filter |
|
UID Attribute |
|
Email attribute |
|
Initial bind DN |
|
24 Comments
Deleted Account
Sept 16, 2008The ability to configure LDAP referrals appears to be missing?
Partha
Dec 09, 2008Dear Andy,
If you need to follow referrals, please add "-Djava.naming.referral=follow" to your
FISHEYE_OPTSenvironment variable.Example:
Eric O'Brien
Jan 20, 2009In an Active Directory environment, is there any way to access multiple trees below the overall domain? For example: domain1.company.com, domain2.company.com and domain3.company.com. Through the web interface it appears I can only use one sub-domain.
Edwin Dawson [Atlassian Technical Writer]
Jan 21, 2009Dear Eric,
FishEye does not support this behaviour out of the box. However, it can be achieved if you use a custom authenticator, or Atlassian Crowd.
See this support page on custom authenticators for more information.
I hope this helps!
Best Regards,
–
Edwin Dawson
Technical Writer
ATLASSIAN - http://www.atlassian.com
Anonymous
Mar 25, 2009To go across multiple domains, you can try using a Global Catalog server as your hostname and port 3286, e.g.
ldap://GlobalCatalogServer:3268
A Global Catalog Server cache's information from other domains such as logon credentials and group memberships, whereas a normal Domain Controller does not.
Anonymous
Jan 30, 2009Does this spuuort LDAPS on port 636 instead of straigh LDAP on 389?
Anonymous
Jan 30, 2009Yea - but SSL support with java will rely on your JRE being able to walk the certificate chain of the AD cert (ie you need to import your LDAPS CA into your JRE)
captcha: poofing :/
Partha
Feb 04, 2009The steps to import your LDAPS CA are similar to those of confluence. See Connect to LDAP via SSL.
Of course skip step 2 as you will specify the port and ldaps:// in the LDAP configuration.
Anonymous
Mar 10, 2009The filter string:
sAMAccountName=${USERNAME} did not work for us with active directory. It should be corrected to (sAMAccountName=${USERNAME})Anonymous
Feb 10, 2010Cool! it works.
Anonymous
Mar 10, 2009Do the per-repository settings take into account information from the LDAP Authentication settings section? In other words, if I have
| Base DN: | OU=People, O=company.com | | User Filter: | (uid=${USERNAME}) | but I want to set my per-repository settings like this: (&(uniquemember=uid=${USERNAME},ou=People,o=company.com)(cn=APPL_Altiris_SW_Portal_Test_Users,OU=Groups,O=company.com)(objectClass=groupofuniquenames))will the per-repository settings be able to see Groups because of the People restriction in the LDAP Authentication settings section?
Matt Quail
Mar 10, 2009Yes, your per-repository setting will do what you want.
The per-repository setting is an LDAP search against the whole directory. In this case it should return one User object (with uid=${USERNAME}) or no objects at all. The User object's DN should match the DN of the user in question.
Anonymous
Mar 20, 2009No idea how to get Active Directory group membership restrictions working
(&(member=${USERNAME})(CN=Intranet - Fisheye CVS repository,OU=Intranet Resource Groups,OU=Resource Groups,DC=fcs,DC=syd)(objectClass=group))Just won't work for me
Anonymous
Mar 20, 2009Doh!
Works. sheepish grin
Anonymous
Mar 01, 2012To be clear, group membership restriction works with the following in the User Filter field:
(&(sAMAccountName=${USERNAME})(memberOf=CN=Intranet - Fisheye CVS repository,OU=Intranet Resource Groups,OU=Resource Groups,DC=fcs,DC=syd))Anonymous
Feb 25, 2010Note: it would be more practical to use the query credentials to bind for the authentication attempt. since our AD environment does not allow anonymous binds, a username and password is required. this all works ok, but I have now my personal [admin] credentials stored in the fisheye configuration. once my password expires/changes, LDAP authentication will break for all users until the new password is reentered in the fisheye LDAP configuration.
please correct me if I am wrong.
thanks
Craig Harman
Mar 10, 2010Anyone had experience setting this up using OS X's Open Directory? I keep getting an invalid DN message:
Server: ldap://server.com:389
cn=users, dc=compName,dc=domain,dc=com
Filter: (uid=$USERNAME)
UID Attribute: uid
Hendry Betts
Apr 27, 2010set your filter to (uid=${USERNAME}) -- the curly braces are important.
Anonymous
Jul 05, 2010I had to use the following format for "Initial bind user" for integrating to my Microsoft AD:
CN=John Doe,OU=Users,OU=XXX,OU=YYY,DC=ZZZ,DC=dom
Eric Stevens
Nov 03, 2010Our LDAP CN's are in the format:
Surname, Givenname (Division/SiteCode)
I believe this forward slash prevents LDAP authentication (I have a test account which does not have (Division/SiteCode), and it authenticates successfully, while my primary account does not).
The "error" such as it is reads as follows:
Anonymous
Feb 10, 2012Hi
You may want to try using this as a Trial. It worked for me!!
Base DN : OU="SomeOU",DC="SomeDomain",DC="co",DC="uk"
Initial Bind DN: CN="username",OU="SomeOU",DC="SomeDomain",DC="co",DC="uk"
Regards
Chris Walquist
Jun 30, 2011How do I turn off the LDAP integration's auto-create login? It is causing us problems managing our license allocation.
Thanks,
-chris
Alastair Bain
May 06, 2012Is there any way to have separate read/write permissions when using LDAP? The implementation seems very clunky, why couldn't you guys have implemented the same kind of setup that Confluence/Jira use? Would be nice to be able to use LDAP groups in the same fashion as local groups without having to write a custom query.
Anonymous
May 08, 2012Hi, I've just installed FishEye after installing and configuring Stash, and was expecting equivalent LDAP user and group browsing / adding. ( good work on the Stash LDAP integration tools btw )
I'd give a big thumbs up for equivalent functionality in FishEye