Example #1
0
 /// <summary>TGS must have the server principal of the form "krbtgt/FOO@FOO".</summary>
 /// <param name="principal"/>
 /// <returns>true or false</returns>
 internal static bool IsTGSPrincipal(KerberosPrincipal principal)
 {
     if (principal == null)
     {
         return(false);
     }
     if (principal.GetName().Equals("krbtgt/" + principal.GetRealm() + "@" + principal
                                    .GetRealm()))
     {
         return(true);
     }
     return(false);
 }