From b324670d262342fb06747bb95dfbbbb1fc7457f7 Mon Sep 17 00:00:00 2001 From: Robin Shen Date: Sat, 11 Feb 2023 11:44:34 +0800 Subject: [PATCH] Some help improvement --- .../authenticator/ldap/ActiveDirectoryAuthenticator.java | 6 ++++-- .../server/plugin/authenticator/ldap/LdapAuthenticator.java | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/server-plugin/server-plugin-authenticator-ldap/src/main/java/io/onedev/server/plugin/authenticator/ldap/ActiveDirectoryAuthenticator.java b/server-plugin/server-plugin-authenticator-ldap/src/main/java/io/onedev/server/plugin/authenticator/ldap/ActiveDirectoryAuthenticator.java index fb6cd0ff98..5326dbbff8 100644 --- a/server-plugin/server-plugin-authenticator-ldap/src/main/java/io/onedev/server/plugin/authenticator/ldap/ActiveDirectoryAuthenticator.java +++ b/server-plugin/server-plugin-authenticator-ldap/src/main/java/io/onedev/server/plugin/authenticator/ldap/ActiveDirectoryAuthenticator.java @@ -12,8 +12,10 @@ public class ActiveDirectoryAuthenticator extends LdapAuthenticator { private String groupSearchBase; - @Editable(order=100, name="LDAP URL", description= - "Specifies LDAP URL of the Active Directory server, for example: ldap://ad-server, or ldaps://ad-server") + @Editable(order=100, name="LDAP URL", description = "" + + "Specifies LDAP URL of the Active Directory server, for example: ldap://ad-server, or ldaps://ad-server. " + + "In case your ldap server is using a self-signed certificate for ldaps connection, you will need to " + + "configure OneDev to trust the certificate") @NotEmpty @Override public String getLdapUrl() { diff --git a/server-plugin/server-plugin-authenticator-ldap/src/main/java/io/onedev/server/plugin/authenticator/ldap/LdapAuthenticator.java b/server-plugin/server-plugin-authenticator-ldap/src/main/java/io/onedev/server/plugin/authenticator/ldap/LdapAuthenticator.java index 150997e93a..20bc02a8ad 100644 --- a/server-plugin/server-plugin-authenticator-ldap/src/main/java/io/onedev/server/plugin/authenticator/ldap/LdapAuthenticator.java +++ b/server-plugin/server-plugin-authenticator-ldap/src/main/java/io/onedev/server/plugin/authenticator/ldap/LdapAuthenticator.java @@ -49,8 +49,10 @@ public class LdapAuthenticator extends Authenticator { private GroupRetrieval groupRetrieval = new DoNotRetrieveGroups(); - @Editable(order=100, name="LDAP URL", description= - "Specifies LDAP URL, for example: ldap://localhost, or ldaps://localhost.") + @Editable(order=100, name="LDAP URL", description="" + + "Specifies LDAP URL, for example: ldap://localhost, or ldaps://localhost. In case" + + "your ldap server is using a self-signed certificate for ldaps connection, you will need " + + "to configure OneDev to trust the certificate") @NotEmpty public String getLdapUrl() { return ldapUrl;