Use Principal.getName() instead toString() when expanding %PRINCIPAL% macro. - Fixes...
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 20 Jan 2006 13:05:56 +0000 (13:05 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 20 Jan 2006 13:05:56 +0000 (13:05 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1922 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aa/attrresolv/provider/JDBCDataConnector.java

index b2bb582..824256a 100644 (file)
@@ -804,7 +804,7 @@ class DependencyStatementCreator implements JDBCStatementCreator {
                                                }
                                        } else if (attributeName.equalsIgnoreCase("%PRINCIPAL%")) {
                                                try {
-                                                       setSpecificParameter(preparedStatement, valueIndex, principal.toString());
+                                                       setSpecificParameter(preparedStatement, valueIndex, principal.getName());
                                                        return;
                                                } catch (Exception e) {
                                                        log.error("Statement Creator encountered an error while adding the parameter 'Requester': "