草庐IT

ntlm-authentication

全部标签

authentication - Hadoop 身份验证 http-signature.secret 文件

我正在使用受kerberos身份验证保护的hadoop-2.6.0。对于http身份验证,有一个名为hadoop.http.authentication.signature.secret.file的属性我在core-site.xml中设置了这个属性hadoop.http.authentication.signature.secret.fileC:\http-signature.secrethttp-signature.secret文件是空的。但是http身份验证工作正常。如果我禁用此属性,则在启动节点时会出现错误。我想知道这个secret文件的用途。为什么要设置这个属性?我用谷歌搜索但

authentication - HDFS 数据节点未开始使用 kerberos

我已将kerberos身份验证添加到apachehdfs,名称节点已启动并正在运行,但我无法启动数据节点,出现此异常:2012-08-2317:05:45,648ERRORorg.apache.hadoop.hdfs.server.datanode.DataNode:java.lang.RuntimeException:Cannotstartsecureclusterwithoutprivilegedresources.atorg.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:324)at

authentication - 从 Spark 访问 Hdfs 会出现 token 缓存错误 Can't get Master Kerberos principal for use as renewer

我正在尝试运行测试Spark脚本以将Spark连接到hadoop。脚本如下frompysparkimportSparkContextsc=SparkContext("local","SimpleApp")file=sc.textFile("hdfs://hadoop_node.place:9000/errs.txt")errors=file.filter(lambdaline:"ERROR"inline)errors.count()当我用pyspark运行它时,我得到了py4j.protocol.Py4JJavaError:Anerroroccurredwhilecallingo21.

authentication - 从远程计算机将文件放在 HDFS 上时如何指定用户名?

我有一个Hadoop集群设置并在一个通用的默认用户名“user1”下工作。我想从不属于hadoop集群的远程机器将文件放入hadoop。我以一种方式在远程机器上配置了hadoop文件,当hadoopdfs-putfile1...从远程机器调用,它将file1放在Hadoop集群上。唯一的问题是我在远程机器上以“user2”身份登录,但没有给我预期的结果。事实上,上面的代码只能在远程机器上执行为:hadoopdfs-putfile1/user/user2/testFolder但是,我真正想要的是能够将文件存储为:hadoopdfs-putfile1/user/user1/testFold

php:将 ntlm 凭据转发到 curl

我有一个动态php页面,我需要使用get参数调用它。然后我想将生成的html放入一个字符串中并在以后使用它(我正在尝试web服务的tonic框架)所以这类似于PHP-Readdynamicallygenerated(andechoed)HTMLintoastring?我尝试了使用cURL的答案。问题是身份验证是使用ntlm(apachemod_auth_sspi)完成的。执行curl的php脚本已经过身份验证,例如,只有有效用户才能执行它。是否有可能将这些“凭据”传递给cURL?(用户名可用,但当然不是密码)或者完全不同的方法也可以,但我唯一的想法是创建一个函数来创建包含html内容的

PHP ssh2_auth_pubkey_file() : Authentication failed using public key: Invalid key data, 不是 base64 编码

在PHP5.3.3中(在CentOS和apache2上)我试图通过php脚本连接到SFTP。代码从构造函数中获取key和服务器详细信息function__construct(){$this->host='servername.loc';$this->port=SFTP_PORT;$this->auth_user='username';$this->auth_pub='/data/home/username/.ssh/id_rsa.pub';$this->auth_priv='/data/home/username/.ssh/id_rsa';$this->auth_pass=null;$

php - 401 - 尝试使用 PHP 将图片上传到 TwitPic 时出现 "Could not authenticate you (header rejected by twitter)."

我正在使用meltingice'sAPIforTwitPic当我尝试上传图片时,出现401错误消息“无法对您进行身份验证(标题被Twitter拒绝)”。我的header(从HTTPRequest2对象中检索)是:Array([user-agent]=>HTTP_Request2/2.0.0(http://pear.php.net/package/http_request2)PHP/5.2.17[x-verify-credentials-authorization]=>OAuthrealm="http://api.twitter.com/",oauth_consumer_key="***

php - Twitter REST API – 使用 'Could not authenticate you' 参数时出现 'tweet_mode=extended' 错误

在从https://api.twitter.com/1.1/statuses/user_timeline.json检索数据时,我在使用TwitterRESTAPI和cURL时遇到了一个小问题。我在下面进行了以下设置,效果很好,但是一旦我尝试获取扩展推文(tweet_mode=extended)但将URL替换为https://api.twitter.com/1.1/statuses/user_timeline.json?tweet_mode=extended它出错并显示Couldnotauthenticationyou.如果我删除参数?tweet_mode=extended它再次工作正常

PHP/亚马逊 S3 : Query string authentication sometimes fails

我用PHP创建了一个简单的文件浏览器,它通过生成过期查询URL链接到文件。因此,对于目录的每次访问,都会生成一个指向每个文件的链接,该链接的有效期为900秒。我现在遇到的问题是生成的签名有时似乎会失败。这很奇怪,因为我有意使用外部S3库来生成URL和签名。事实上,我尝试了以下库来生成签名:CloudFusionS3generatorAmazonS3PHPclass库内部使用hash_hmac('sha256',...或hash_hmac('sha1',...-我也不明白为什么要使用不同的哈希算法。由于所有库都有相同的问题,所以它也可能出现在我的URL生成代码中,尽管这很简单:$buck

php - 拉维尔 5.3 : Passport Implementation - {"error" :"invalid_client" ,"message" :"Client authentication failed"}

我遵循了Laracast:What'sNewinLaravel5.3:LaravelPassport中提到的确切步骤使用oauth2实现api身份验证。我在客户端/消费者项目中的web.php文件如下所示:useIlluminate\Http\Request;Route::get('/',function(){$query=http_build_query(['client_id'=>2,'redirect_uri'=>'http://offline.xyz.com/callback','response_type'=>'code','scope'=>'',]);returnredir