REST API を使用して SAML を構成するには、以下に示すように、最初に SAML プロバイダーを作成します。
<aaaSamlProvider name="cisco729224.okta.com" dn="uni/userext/samlext/samlprovider-cisco729224.okta.com"
entityId="http://www.okta.com/exk7j6qjvxgk8hwy0696"
guiBannerMessage=""
idP="okta"
metadataUrl="https://cisco729224.okta.com/app/exk7j6qjvxgk8hwy0696/sso/saml/metadata"
monitorServer="disabled" retries="1" timeout="5"
tp="oktacert"
wantAssertionsEncrypted="no" wantAssertionsSigned="yes" wantRequestsSigned="yes" wantResponseSigned="yes"
sigAlg="SIG_RSA_SHA256"
status="created,modified" />
次に、ログイン ドメインを作成します。認証には、CiscoAVPair またはグループ マップのいずれかを使用できます。
Authentication using CiscoAVPair
<aaaUserEp dn="uni/userext" status="created,modified">
<aaaLoginDomain dn="uni/userext/logindomain-TestSAML" name="TestSAML" status="created,modified">
<aaaDomainAuth dn="uni/userext/logindomain-TestSAML/domainauth" providerGroup="TestSAML" realm="saml" realmSubType="default" status="created,modified"/>
</aaaLoginDomain>
<aaaSamlEp rn="samlext" status="modified">
<aaaSamlProviderGroup dn="uni/userext/samlext/samlprovidergroup-TestSAML" name="TestSAML" authChoice="CiscoAVPair" status="created,modified">
<aaaProviderRef dn="uni/userext/samlext/samlprovidergroup-TestSAML/providerref-cisco729224.okta.com" name="cisco729224.okta.com" order="1" status="created,modified"/>
</aaaSamlProviderGroup>
</aaaSamlEp>
</aaaUserEp>
Authentication using Group Map
<aaaUserEp dn="uni/userext" status="created,modified">
<aaaLoginDomain dn="uni/userext/logindomain-TestSAML" name="TestSAML" status="created,modified">
<aaaDomainAuth dn="uni/userext/logindomain-TestSAML/domainauth" providerGroup="TestSAML" realm="saml" realmSubType="default" status="created,modified"/>
</aaaLoginDomain>
<aaaSamlEp rn="samlext" status="modified">
<aaaSamlProviderGroup dn="uni/userext/samlext/samlprovidergroup-TestSAML" name="TestSAML" authChoice="LdapGroupMap" groupAttribute="memberOf" status="created,modified">
<aaaUserGroupMapRule name="AdminRule" userGroup="CN=Domain Admins,CN=Users,DC=insaaadev,DC=net" status="created,modified">
<aaaUserDomain name="all" rn="userdomain-all" status="created,modified">
<aaaUserRole name="fabric-admin" privType="writePriv" rn="role-fabric-admin" status="created,modified"/>
</aaaUserDomain>
<aaaUserDomain name="mgmt" rn="userdomain-mgmt" status="created,modified">
<aaaUserRole name="access-admin" privType="writePriv" rn="role-access-admin" status="created,modified"/>
<aaaUserRole name="nw-svc-policy" privType="writePriv" rn="role-nw-svc-policy" status="created,modified"/>
</aaaUserDomain>
</aaaUserGroupMapRule>
<aaaUserGroupMapRule name="EmpRule" userGroup="CN=Employee,CN=Users,DC=insaaadev,DC=net" status="created,modified">
<aaaUserDomain name="mgmt" rn="userdomain-mgmt" status="created,modified">
<aaaUserRole name="ops" privType="writePriv" rn="role-ops" status="created,modified"/>
</aaaUserDomain>
</aaaUserGroupMapRule>
<aaaProviderRef dn="uni/userext/samlext/samlprovidergroup-TestSAML/providerref-cisco729224.okta.com" name="cisco729224.okta.com" order="1" status="created,modified"/>
</aaaSamlProviderGroup>
</aaaSamlEp>
</aaaUserEp>