Work on native compilation of SPNEGO client.
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / auth / RemoteAuthUtils.java
index 4b4d291a120e7e379763f39409685b2a01999732..cf30d8a715ea72cca0d8916ce9d9925081e478e8 100644 (file)
@@ -89,7 +89,9 @@ public class RemoteAuthUtils {
                        try {
                                // Get service's principal name
                                GSSManager manager = GSSManager.getInstance();
-                               GSSName serverName = manager.createName(serverPrinc, GSSName.NT_HOSTBASED_SERVICE, KERBEROS_OID);
+                               // GSSName serverName = manager.createName(serverPrinc,
+                               // GSSName.NT_HOSTBASED_SERVICE, KERBEROS_OID);
+                               GSSName serverName = manager.createName(serverPrinc, GSSName.NT_HOSTBASED_SERVICE);
 
                                // Get the context for authentication
                                context = manager.createContext(serverName, KERBEROS_OID, null, GSSContext.DEFAULT_LIFETIME);