summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/common/src/com/netscape/certsrv/ldap/LDAPExceptionConverter.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/base/common/src/com/netscape/certsrv/ldap/LDAPExceptionConverter.java b/base/common/src/com/netscape/certsrv/ldap/LDAPExceptionConverter.java
index 88b126351..51a1109f2 100644
--- a/base/common/src/com/netscape/certsrv/ldap/LDAPExceptionConverter.java
+++ b/base/common/src/com/netscape/certsrv/ldap/LDAPExceptionConverter.java
@@ -17,13 +17,13 @@
// --- END COPYRIGHT BLOCK ---
package com.netscape.certsrv.ldap;
-import netscape.ldap.LDAPException;
-
import com.netscape.certsrv.base.BadRequestException;
import com.netscape.certsrv.base.ConflictingOperationException;
import com.netscape.certsrv.base.PKIException;
import com.netscape.certsrv.base.ResourceNotFoundException;
+import netscape.ldap.LDAPException;
+
/**
* @author Endi S. Dewata
*/
@@ -39,6 +39,8 @@ public class LDAPExceptionConverter {
return new ResourceNotFoundException("No such attribute.", e);
case LDAPException.INVALID_DN_SYNTAX:
return new BadRequestException("Invalid DN syntax.", e);
+ case LDAPException.INVALID_ATTRIBUTE_SYNTAX:
+ return new BadRequestException("Invalid attribute syntax.", e);
case LDAPException.ENTRY_ALREADY_EXISTS:
return new ConflictingOperationException("Entry already exists.", e);
default: