[java-identity-provider COMMIT] in /trunk/idp-conf/src/main/resources: conf/attribute-resolver-ldap.xml conf/authn/ld...
noreply at shibboleth.net
noreply at shibboleth.net
Thu Mar 19 00:39:43 EDT 2015
Author: dfisher
Date: Thu Mar 19 00:39:43 2015
New Revision: 7431
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=7431&view=rev
Log:
IDP-653
Add property 'idp.attribute.resolver.LDAP.returnAttributes'.
Change the parsing of idp.authn.LDAP.returnAttributes to support both space delimite
d and comma delimited values.
Change the sample values of idp.authn.LDAP.returnAttributes to reflect attributes as
sociated with authentication.
Modified:
trunk/idp-conf/src/main/resources/conf/attribute-resolver-ldap.xml
trunk/idp-conf/src/main/resources/conf/authn/ldap-authn-config.xml
trunk/idp-conf/src/main/resources/conf/ldap.properties
trunk/idp-conf/src/main/resources/system/conf/utilities.xml
Modified: trunk/idp-conf/src/main/resources/conf/attribute-resolver-ldap.xml
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-conf/src/main/resources/conf/attribute-resolver-ldap.xml?rev=7431&r1=7430&r2=7431&view=diff
==============================================================================
--- trunk/idp-conf/src/main/resources/conf/attribute-resolver-ldap.xml (original)
+++ trunk/idp-conf/src/main/resources/conf/attribute-resolver-ldap.xml Thu Mar 19 00:39:43 2015
@@ -88,6 +88,7 @@
%{idp.attribute.resolver.LDAP.searchFilter}
]]>
</dc:FilterTemplate>
+ <dc:ReturnAttributes>%{idp.attribute.resolver.LDAP.returnAttributes}</dc:ReturnAttributes>
<dc:StartTLSTrustCredential id="LDAPtoIdPCredential" xsi:type="sec:X509ResourceBacked">
<sec:Certificate>%{idp.attribute.resolver.LDAP.trustCertificates}</sec:Certificate>
</dc:StartTLSTrustCredential>
Modified: trunk/idp-conf/src/main/resources/conf/authn/ldap-authn-config.xml
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-conf/src/main/resources/conf/authn/ldap-authn-config.xml?rev=7431&r1=7430&r2=7431&view=diff
==============================================================================
--- trunk/idp-conf/src/main/resources/conf/authn/ldap-authn-config.xml (original)
+++ trunk/idp-conf/src/main/resources/conf/authn/ldap-authn-config.xml Thu Mar 19 00:39:43 2015
@@ -11,8 +11,9 @@
default-lazy-init="true">
<alias name="%{idp.authn.LDAP.authenticator:anonSearchAuthenticator}" alias="shibboleth.authn.LDAP.authenticator" />
- <bean id="shibboleth.authn.LDAP.returnAttributes" parent="shibboleth.CommaDelimStringArray">
+ <bean id="shibboleth.authn.LDAP.returnAttributes" parent="shibboleth.DelimStringArray">
<constructor-arg type="java.lang.String" value="%{idp.authn.LDAP.returnAttributes}" />
+ <constructor-arg type="java.lang.String" value=", " />
</bean>
<alias name="ValidateUsernamePasswordAgainstLDAP" alias="ValidateUsernamePassword" />
Modified: trunk/idp-conf/src/main/resources/conf/ldap.properties
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-conf/src/main/resources/conf/ldap.properties?rev=7431&r1=7430&r2=7431&view=diff
==============================================================================
--- trunk/idp-conf/src/main/resources/conf/ldap.properties (original)
+++ trunk/idp-conf/src/main/resources/conf/ldap.properties Thu Mar 19 00:39:43 2015
@@ -17,9 +17,8 @@
idp.authn.LDAP.trustStore = %{idp.home}/credentials/ldap-server.truststore
## Return attributes during authentication
-## NOTE: this is not used during attribute resolution; configure that directly in the
-## attribute-resolver.xml configuration via a DataConnector's <dc:ReturnAttributes> element
-idp.authn.LDAP.returnAttributes = cn,businessCategory,mail
+## NOTE: there is a separate property used for attribute resolution
+idp.authn.LDAP.returnAttributes = passwordExpirationTime loginGraceRemaining
## DN resolution properties ##
@@ -45,6 +44,7 @@
idp.attribute.resolver.LDAP.useStartTLS = %{idp.authn.LDAP.useStartTLS:true}
idp.attribute.resolver.LDAP.trustCertificates = %{idp.authn.LDAP.trustCertificates}
idp.attribute.resolver.LDAP.searchFilter = (uid=$requestContext.principalName)
+idp.attribute.resolver.LDAP.returnAttributes = cn homephone mail
# LDAP pool configuration, used for both authn and DN resolution
#idp.pool.LDAP.minSize = 3
Modified: trunk/idp-conf/src/main/resources/system/conf/utilities.xml
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-conf/src/main/resources/system/conf/utilities.xml?rev=7431&r1=7430&r2=7431&view=diff
==============================================================================
--- trunk/idp-conf/src/main/resources/system/conf/utilities.xml (original)
+++ trunk/idp-conf/src/main/resources/system/conf/utilities.xml Thu Mar 19 00:39:43 2015
@@ -14,9 +14,11 @@
<bean id="shibboleth.Pair" class="net.shibboleth.utilities.java.support.collection.Pair" abstract="true" />
+ <bean id="shibboleth.DelimStringArray"
+ class="org.springframework.util.StringUtils" factory-method="tokenizeToStringArray" abstract="true" />
[... 8 lines stripped ...]
More information about the commits
mailing list