Changes between Version 12 and Version 13 of idpiam2018
- Timestamp:
- Sep 3, 2018, 8:50:59 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
idpiam2018
v12 v13 781 781 </resolver:DataConnector> 782 782 }}} 783 '''UTILITY FOR OPENLDAP ADMINISTRATOR:''' *ldapsearch -H ldap:// -x -b "dc=example,dc=it" -LLL dn`* the baseDN ==> `ou=people, dc=example,dc=org` (branch containing the registered users) * the bindDN ==> `cn=admin,dc=example,dc=org` (distinguished name for the user that can made queries on the LDAP)783 '''UTILITY FOR OPENLDAP ADMINISTRATOR:''' *`ldapsearch -H ldap:// -x -b "dc=example,dc=it" -LLL dn`* the baseDN ==> `ou=people, dc=example,dc=org` (branch containing the registered users) * the bindDN ==> `cn=admin,dc=example,dc=org` (distinguished name for the user that can made queries on the LDAP) 784 784 785 785 29. Enrich IDP logs with the authentication error occurred on LDAP: … … 797 797 30. Build the '''attribute-resolver.xml''' to define which attributes your IdP can manage. Here you can find the '''attribute-resolver-v1-LEARN.xml''' provided by LEARN: 798 798 * Download the attribute resolver provided by LEARN: 799 `wget https://fr-training.ac.lk/attribute-resolver-v1-LEARN.xml -O /opt/shibboleth-idp/conf/attribute-resolver-v1-LEARN.xml` 800 * Modify `services.xml` file: 801 `vim /opt/shibboleth-idp/conf/services.xml` 799 {{{ 800 wget https://fr-training.ac.lk/attribute-resolver-v1-LEARN.xml -O /opt/shibboleth-idp/conf/attribute-resolver-v1-LEARN.xml 801 }}} 802 * Modify `services.xml` file: `vim /opt/shibboleth-idp/conf/services.xml` 802 803 {{{ 803 804 <value>%{idp.home}/conf/attribute-resolver.xml</value> … … 812 813 * Restart Tomcat8: `service tomcat8 restart` 813 814 31. Enable the SAML2 support by changing the `idp-metadata.xml` and disabling the SAML v1.x deprecated support: 814 * 815 {{{ 816 vim /opt/shibboleth-idp/metadata/metadata.xml}}}{{{ 815 * 816 {{{ 817 vim /opt/shibboleth-idp/metadata/metadata.xml 818 }}} 819 {{{ 817 820 <IDPSSODescriptor> SECTION: 818 821 – From the list of "protocolSupportEnumeration" remove: … … 857 860 858 861 - Remove all ":8443" from the existing URL (such port is not used anymore) 859 }}} 862 863 }}} 860 864 32. Obtain your IdP metadata here: 861 * `https://idp.YOUR-DOMAIN/idp/shibboleth}}} 865 * 866 {{{ 867 https://idp.YOUR-DOMAIN/idp/shibboleth 868 }}} 862 869 33. Register you IdP on the test Federation: 863 * 864 {{{ 865 https://fr-training.ac.lk/}}} > For production enviornments please use `https://fr.ac.lk`, Also make sure to remove `-training` from all urls. 870 * 871 {{{ 872 https://fr-training.ac.lk/ 873 }}} 874 > For production enviornments please use `https://fr.ac.lk`, Also make sure to remove `-training` from all urls. 866 875 867 876 34. Configure the IdP to retrieve the Federation Metadata: 868 * 869 {{{ 870 cd /opt/shibboleth-idp/conf}}} * 871 {{{ 872 vim metadata-providers.xml}}} 877 * 878 {{{ 879 cd /opt/shibboleth-idp/conf 880 }}} 881 * 882 {{{ 883 vim metadata-providers.xml 884 }}} 873 885 {{{ 874 886 <MetadataProvider … … 894 906 </MetadataFilter> 895 907 </MetadataProvider> 896 897 898 * `wget https://fr-training.ac.lk/metadata-signer -O /opt/shibboleth-idp/metadata/federation-cert.pem}}} 908 }}} 909 * Retrive the Federation Certificate used to verify its signed metadata: 910 * `wget https://fr-training.ac.lk/metadata-signer -O /opt/shibboleth-idp/metadata/federation-cert.pem' 899 911 900 912 901 913 35. Reload service with id `shibboleth.MetadataResolverService` to retrieve the Federation Metadata: 902 * `cd /opt/shibboleth-idp/bin}}} * `./reload-service.sh -id shibboleth.MetadataResolverService}}} 914 * 915 {{{ 916 cd /opt/shibboleth-idp/bin 917 }}} 918 * 919 {{{ 920 ./reload-service.sh -id shibboleth.MetadataResolverService 921 }}} 903 922 904 923 905 924 36. The day after the Federation Operators approval you, check if you can login with your IdP on the following services: 906 907 908 909 910 ### Configure Attribute Filters to release the mandatory attributes to the default IDEM Resources: 925 * https://sp-training.ac.lk/secure (Service Provider provided for testing the LEARN Training Federation) 926 * https://sp-test.learn.ac.lk/secure (Service Provider provided for testing the LEARN Production Federation) 927 928 929 == Configure Attribute Filters to release the mandatory attributes to the default IDEM Resources: == 911 930 912 931 37. Make sure that you have the "`tmp/httpClientCache`" used by "`shibboleth.FileCachingHttpClient`": 913 * 914 {{{ 915 mkdir -p /opt/shibboleth-idp/tmp/httpClientCache ; chown tomcat8 /opt/shibboleth-idp/tmp/httpClientCache}}} 932 * 933 {{{ 934 mkdir -p /opt/shibboleth-idp/tmp/httpClientCache ; chown tomcat8 /opt/shibboleth-idp/tmp/httpClientCache 935 }}} 916 936 38. Modify your `services.xml`: 917 * 918 {{{ 919 vim /opt/shibboleth-idp/conf/services.xml}}} 937 * 938 {{{ 939 vim /opt/shibboleth-idp/conf/services.xml 940 }}} 920 941 {{{ 921 942 <bean id="Default-Filter" class="net.shibboleth.ext.spring.resource.FileBackedHTTPResource" … … 934 955 <ref bean="Production-Filter"/> 935 956 </util:list> 936 957 }}} 937 958 39. Reload service with id `shibboleth.AttributeFilterService` to refresh the Attribute Filter followed by the IdP: 938 * `cd /opt/shibboleth-idp/bin}}} * `./reload-service.sh -id shibboleth.AttributeFilterService}}} 959 * 960 {{{ 961 cd /opt/shibboleth-idp/bin 962 }}} 963 * 964 {{{ 965 ./reload-service.sh -id shibboleth.AttributeFilterService 966 }}} 939 967 940 968 … … 942 970 943 971 1. Tomcat 8 Logs: 944 * 972 * 945 973 {{{ 946 974 cd /var/log/tomcat8 947 975 }}} 948 * 976 * 949 977 {{{ 950 978 vim catalina.out}}} 951 979 2. Shibboleth IdP Logs: 952 * 953 {{{ 954 cd /opt/shibboleth-idp/logs}}} * '''Audit Log:''' `vim idp-audit.log}}} * '''Consent Log:''' `vim idp-consent-audit.log}}} * '''Warn Log:''' `vim idp-warn.log}}} * '''Process Log:''' `vim idp-process.log}}} 980 * 981 {{{ 982 cd /opt/shibboleth-idp/logs 983 }}} 984 * '''Audit Log:''' `vim idp-audit.log' 985 * '''Consent Log:''' `vim idp-consent-audit.log` 986 * '''Warn Log:''' `vim idp-warn.log` 987 * '''Process Log:''' `vim idp-process.log`