kerberos

java security exception : checksum failed

杀马特。学长 韩版系。学妹 提交于 2019-12-25 02:29:32
问题 I am using http://webmoli.com/2009/08/29/single-sign-on-in-java-platform/ for SSO in java. I have KDC Windows server 2008, in that i have created spn by using setspn command for testsso user. And using testsso@MYDOMAIN.COM as principal in jaas.con. I have Tomcat server in Windows 7 machine(within AD). In this i have created one servlet as of jsp(from webmoli itself). I sending browser request for that servlet from 3rd machine Windows XP(within AD). But i get checksum failed error. Stacktrace

How to connect with HIVE via R with Kerberos keytab?

匆匆过客 提交于 2019-12-25 01:36:18
问题 I am trying to connect to a Hive server via R remotely, and to perform the authentication i use a Kerberos keytab file. Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, : java.io.IOException: Login failure for antonio.silva@HADOOPREALM.LOCAL from keytab C:/Users/antonio.silva/Desktop/jars/antonio.silva.keytab: javax.security.auth.login.LoginException: null (68) But when i try to login the user via keytab, the error appears. #loading libraries library("RJDBC") hadoop

How to resolve proxy error in reading & writing to HDFS using Python?

自作多情 提交于 2019-12-25 00:05:06
问题 I have a HDFS to which I want to read and write using a Python script. import requests import json import os import kerberos import sys node = os.getenv("namenode").split(",") print (node) local_file_path = sys.argv[1] remote_file_path = sys.argv[2] read_or_write = sys.argv[3] print (local_file_path,remote_file_path) def check_node_status(node): for name in node: print (name) request = requests.get("%s/jmx?qry=Hadoop:service=NameNode,name=NameNodeStatus"%name, verify=False).json() status =

Kerberos delegation: GSSUtil.createSubject returns subject with principal name only

时间秒杀一切 提交于 2019-12-24 22:51:48
问题 I am doing kerberos delegation. I noticed that GSSUtil.createSubject(context.getSrcName(), clientCred) returns a Subject without having credentials in it. Prior to that i've done GSSCredential clientCred = context.getDelegCred(); which returns the credentials. Edit: When I hit my service from one machine in same domain, it works, while if accessed from other machine in same domain, it doesn't. Confused what additional settings are needed on AD ? Any help is highly appreciated. Following is my

Spring Boot + Ldap / AD + Kerberos SSO : KrbCryptoException - Checksum failed

孤街浪徒 提交于 2019-12-24 18:59:12
问题 I am trying to implement SSO with Spring Boot, Ldap and kerberos. Where I got multiple errors of Checksum fail for different encryption type. environment details:- Machine : Windows 10 JDK Version : Oracle 1.8.0_144 (64 bit) I appear to have hit a bit of a dead-end where I am not able to find any solution. Here is what error I get when run Added key: 17version: 5 Added key: 18version: 5 Added key: 23version: 5 Found unsupported keytype (3) for HTTP/host.test@EXAMPLE.COM Found unsupported

Spark connection to Hbase in Kerberos environement failing

送分小仙女□ 提交于 2019-12-24 18:44:54
问题 I am using Spark 1.6.0( spark-1.2.0-cdh5.10.2 ) cloudera vm ( spark-1.2.0-cdh5.10.2 ) Hbase (1.2.0 from cloudera) Scala 2.10 Kerberos enabled The steps I am running are: kinit (So that my user will be in place) 2. spark-shell --master yarn --executor-memory 256m --jars /opt/cloudera/parcels/CDH/lib/hbase/lib/hbase-spark-1.2.0-cdh5.10.2.jar 3. ``` import org.apache.hadoop.hbase.spark.HBaseContext import org.apache.spark.SparkContext import org.apache.hadoop.hbase.{ CellUtil, TableName,

PHP - How to use Curl with Kerberos

南笙酒味 提交于 2019-12-24 17:33:36
问题 I'm trying to do some operation with curl, but the website where I have to work uses Kerberos authentication. Consequently I have to enable the SPNEGO function of curl which is disabled by default. This is the extract from my phpinfo: cURL support enabled cURL Information 7.19.7 Age 3 Features AsynchDNS No Debug No GSS-Negotiate Yes IDN Yes IPv6 Yes Largefile Yes NTLM Yes SPNEGO No SSL Yes SSPI No krb4 No libz Yes CharConv No Protocols tftp, ftp, telnet, dict, ldap, ldaps, http, file, https,

PHP - How to use Curl with Kerberos

假如想象 提交于 2019-12-24 17:33:10
问题 I'm trying to do some operation with curl, but the website where I have to work uses Kerberos authentication. Consequently I have to enable the SPNEGO function of curl which is disabled by default. This is the extract from my phpinfo: cURL support enabled cURL Information 7.19.7 Age 3 Features AsynchDNS No Debug No GSS-Negotiate Yes IDN Yes IPv6 Yes Largefile Yes NTLM Yes SPNEGO No SSL Yes SSPI No krb4 No libz Yes CharConv No Protocols tftp, ftp, telnet, dict, ldap, ldaps, http, file, https,

How to Access kafka brokers secured by kerberos from Eclispe running on windows 7

强颜欢笑 提交于 2019-12-24 15:12:23
问题 I have this java code trying to add messages to a kafka queue String msgID = UUID.randomUUID().toString(); Properties prop = new Properties(); prop.put("metadata.broker.list", DEFAULT_BROKER); prop.put("serializer.class", "kafka.serializer.StringEncoder"); prop.put("request.required.acks", "-1"); prop.put("producer.type", "async"); ProducerConfig config = new ProducerConfig(prop); Producer<String, String> producer = new Producer<String, String>(config); KeyedMessage<String, String> message =

SAP, IIS and SSO - Kerberos SSPI not usable with this User account

此生再无相见时 提交于 2019-12-24 14:54:28
问题 My goal is to let intranet user's credentials pass through a asp.net webpage to an SAP RFC. Background We have SAP SSO setup with our AD system. Users can open the SAP gui and login without entering a username/password. We are using ERPConnect to call RFCs in SAP. If we supply credentials to the connection string it works great. We can also use the following code below to use SSO if the webpage is running on our local machine. Dim db As New SAPContext("ashost=sapsandbox.xxxsap.ad.xxx.com snc