@@ -47,11 +47,25 @@
function deleteServicePrinciple(spn) {
- function doDelete(){
- var spnName = spn;
- location.href = 'delete-finish.jsp?spnName=' + spnName;
+ function doDelete() {
+
+ $.ajax({
+ type: 'POST',
+ url: 'delete-finish-ajaxprocessor.jsp',
+ headers: {
+ Accept: "text/html"
+ },
+ data: 'spnName=' + spn,
+ async: false,
+ success: function (responseText, status) {
+ if (status == "success") {
+ location.assign("index.jsp");
+ }
+ }
+ });
}
- CARBON.showConfirmationDialog(" \'"+ spn + "\'?", doDelete, null);
+
+ CARBON.showConfirmationDialog('' + spn + '?', doDelete, null);
}
function changeSpnPassword(spn) {
@@ -155,9 +169,15 @@
<%=Encode.forHtml(principle.getServerName())%> |
<%=Encode.forHtml(principle.getServerDescription())%> |
-
+
-
+
|
diff --git a/components/directory-server-manager/org.wso2.carbon.directory.server.manager/src/main/java/org/wso2/carbon/directory/server/manager/internal/LDAPServerManagerConstants.java b/components/directory-server-manager/org.wso2.carbon.directory.server.manager/src/main/java/org/wso2/carbon/directory/server/manager/internal/LDAPServerManagerConstants.java
index 36ed77d63b6b..f55a88e56e8e 100644
--- a/components/directory-server-manager/org.wso2.carbon.directory.server.manager/src/main/java/org/wso2/carbon/directory/server/manager/internal/LDAPServerManagerConstants.java
+++ b/components/directory-server-manager/org.wso2.carbon.directory.server.manager/src/main/java/org/wso2/carbon/directory/server/manager/internal/LDAPServerManagerConstants.java
@@ -26,7 +26,7 @@ public class LDAPServerManagerConstants {
public static final String SERVICE_PASSWORD_REGEX_PROPERTY = "ServicePasswordJavaRegEx";
public static final String SERVICE_PRINCIPLE_NAME_REGEX_PROPERTY = "ServiceNameJavaRegEx";
- public static final String DEFAULT_PASSWORD_REGULAR_EXPRESSION = "[\\\\S]{5,30}";
+ public static final String DEFAULT_PASSWORD_REGULAR_EXPRESSION = "[\\S]{5,30}";
public static final String DEFAULT_SERVICE_NAME_REGULAR_EXPRESSION = "[a-zA-Z\\d]{2,10}/[a-zA-Z]{2,30}";
public static final String SERVER_PRINCIPAL_ATTRIBUTE_VALUE = "Service";
public static final String SERVER_PRINCIPAL_ATTRIBUTE_NAME = "sn";