LoginSignup
2
2

More than 5 years have passed since last update.

SPNEGO: iOS Safari SSO

Last updated at Posted at 2014-07-22

.mobileconfig plist

ios.mobileconfig XMLファイルを作る(Apple ):


    <?xml version="1.0" encoding="UTF-8"?> 
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
    <plist version="1.0"> 
    <dict> 
      <key>PayloadContent</key> 
      <array> 
        <dict> 
          <key>PayloadDisplayName</key> <string>Single Sign-On via SPNego</string> 
          <key>PayloadType</key> <string>com.apple.sso</string> 
          <key>PayloadVersion</key> <integer>1</integer> 
          <key>PayloadUUID</key> <string>d3fe4709-0cc6-4f51-afed-839c6ab1451c</string> 
          <key>PayloadIdentifier</key> <string>local.openid.windomain</string>  <!-- AD Server -->
          <key>Name</key> <string>Kerberos SSO</string> 
          <key>Kerberos</key> 
          <dict> 
            <key>PrincipalName</key> <string>hide</string>     <!-- ドメインユーザー名 -->
            <key>Realm</key> <string>OPENID.LOCAL</string>     <!-- レルム/AD ドメイン名 -->

            <key>URLPrefixMatches</key> 
                <!--
                    List of URLs prefixes that must be matched to use 
                    this account for Kerberos authentication over HTTP. 
                    Note that the URL postfixes must match as well.
                -->
            <array> 
              <string>http://ubuntu.openid.local</string>      
            </array> 

            <key>AppIdentifierMatches</key> 
                <!-- 
                    Optional. List of app identifiers that are allowed to use this login. 
                    If this field missing, this login matches all app identifie
                    This array, if present, may not be empty.
                -->
            <array> 
              <string>com.apple.mobilesafari</string> 
              <string>local.openid.*</string> 
            </array> 

          </dict> 
        </dict> 
      </array> 

      <key>PayloadOrganization</key> <string>Lafoglia</string> 
      <key>PayloadDisplayName</key> <string>SSO for mod_auth_kerb</string> 
      <key>PayloadVersion</key> <integer>1</integer> 
      <key>PayloadUUID</key> <string>95A9BDB1-D1F1-4A66-8F10-E72B48D79665</string> 
      <key>PayloadIdentifier</key> <string>local.openid.windomain</string>   
      <key>PayloadDescription</key> <string>SSO Configuration profile</string> 
      <key>PayloadType</key> <string>Configuration</string> 
    </dict> 
    </plist> 

インストール&SSO

mod_auth_kerbで認証かけたLocation("/i"以下)にアクセスすると認証エラー

image

http://ubuntu.openid.local/ios.mobileconfig (apache)に配置して、ダウンロード

image

インストール
image

再度アクセスする

image

アクセスできた

image

2
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2