Login.config vs. attribute-resolve.xml?

Chad La Joie lajoie at shibboleth.net
Mon Jun 4 19:28:22 BST 2012


login.config is the JAAS configuration file.  JAAS (Java Authentication
and Authorization Service) is a part of the JVM and can be used by the
IdP to perform authentication.

attribute-resolver.xml is used by the IdP to resolve attributes.

On 6/4/12 2:22 PM, Kanuch, Andy wrote:
> My IDP working via the testshib page with Active Directory (Huzzah!).  
> Now I just want to be sure I’m applying best practices for security. Is
> there any reason to not use LDAPS over LDAP as the connection protocol?
> 
>  
> 
> I’m also bit confused about what role the _login.config_  file plays vs.
> the DataConnector in _attribute-resolve.xml_.   Both files contain
> connection information for my LDAP (Active Directory) server.  So when
> does Shibboleth refer to each data set for connection information?
> 
>  
> 
> _Login.config:_
> 
>  
> 
>    edu.vt.middleware.ldap.jaas.LdapLoginModule required
> 
>       host="DomainController.MyDomain.LOCAL"
> 
>       port="3268"
> 
>       base="DC=MyDomain,DC=local"
> 
>       tls="true"
> 
>       serviceCredential="62592fmu4tv"
> 
>       userRoleAttribute="sAMAccountName"
> 
>       serviceUser="shibboleth.user at MyDomain.local"
> 
>       subtreeSearch = "true"
> 
>       userField="samAccountName";
> 
>  
> 
>  
> 
> _Attribute-Resolver.xml_
> 
>  
> 
>     <resolver:DataConnector id="myLDAP" xsi:type="LDAPDirectory"
> xmlns="urn:mace:shibboleth:2.0:resolver:dc"
> 
>         useStartTLS="true"
> 
>         ldapURL="ldap://DomainController.MyDomain.LOCAL:389"
> baseDN="DC=MyDomain,DC=local" principal="shibboleth.user at MyDomain.local"
> 
>         principalCredential="62592fmu4tv">
> 
>         <FilterTemplate>
> 
>             <![CDATA[
> 
>                 (sAMAccountName=$requestContext.principalName)
> 
>             ]]>
> 
>         </FilterTemplate>
> 
>  
> 
>         <!-- We rely on the uniqueness of the objectSid.  But it is
> binary so we *must* make it so -->
> 
>         <LDAPProperty name="java.naming.ldap.attributes.binary"
> value="objectSid"/>
> 
>         <!-- If we are following from the GC we need thus on -->
> 
>         <LDAPProperty name="java.naming.referral" value="follow"/>
> 
>  
> 
>     </resolver:DataConnector>
> 
> 
> 
> --
> To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net


More information about the users mailing list