From 27ae9095639bb228a1b7ff86a3ebe4264abf05be Mon Sep 17 00:00:00 2001
From: mschaefers <mschaefers@scoop-gmbh.de>
Date: Thu, 29 Nov 2012 12:33:09 -0500
Subject: [PATCH] feature: when using LdapUserService one can configure Gitblit to fetch all users from ldap that can possibly login. This allows to see newly generated LDAP users instantly in Gitblit. By now an LDAP user had to log in once to appear in GitBlit.
---
src/com/gitblit/models/FederationProposal.java | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/com/gitblit/models/FederationProposal.java b/src/com/gitblit/models/FederationProposal.java
index 03b31ce..5cf9182 100644
--- a/src/com/gitblit/models/FederationProposal.java
+++ b/src/com/gitblit/models/FederationProposal.java
@@ -37,6 +37,8 @@
public FederationToken tokenType;
public String token;
+
+ public String message;
public Map<String, RepositoryModel> repositories;
@@ -59,6 +61,7 @@
this.url = url;
this.tokenType = tokenType;
this.token = token;
+ this.message = "";
this.repositories = repositories;
try {
// determine server name and set that as the proposal name
@@ -66,7 +69,7 @@
if (name.contains("/")) {
name = name.substring(0, name.indexOf('/'));
}
- name = name.replace(".", "");
+ name = name.replace(".", "").replace(";", "").replace(":", "").replace("-", "");
} catch (Exception e) {
name = Long.toHexString(System.currentTimeMillis());
}
--
Gitblit v1.9.1