AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 770744
Accepted
Balint Pato
Balint Pato
Asked: 2016-04-16 12:50:25 +0800 CST2016-04-16 12:50:25 +0800 CST 2016-04-16 12:50:25 +0800 CST

从 linux 构建服务器创建 SPN

  • 772

我正在设置一个进程,它将自动为新公开的服务 URL 创建 SPN。我知道如何使用具有正确权限的 setspn -A 命令在 Windows 上创建 SPN。

由于我的构建服务器在 Linux 上运行,我想知道,除了登录到 Windows 服务器并运行 setspn 之外,还有什么方法可以从 Linux 服务器创建 SPN?

active-directory kerberos spn
  • 2 2 个回答
  • 8662 Views

2 个回答

  • Voted
  1. Best Answer
    Ryan Bolger
    2016-04-20T09:23:20+08:002016-04-20T09:23:20+08:00

    使用该setspn工具时,您所做的只是修改 AD 中指定计算机/用户的servicePrincipalName属性。

    要在 Linux 机器上执行相同的操作,您只需使用 LDAP 工具连接到域控制器并像其他任何操作一样修改属性。请记住,它是一个多值属性。因此,不要意外清除目标上可能存在的现有条目。

    • 4
  2. Mass Nerder
    2016-04-16T13:47:47+08:002016-04-16T13:47:47+08:00

    用于 Windows 远程管理 (WinRM) 的 Python 库将允许您从 Linux 机器在 Windows 机器上运行远程命令

    pywinrm 是一个用于 Windows 远程管理 (WinRM) 的 Python 客户端。这允许您从任何可以运行 Python 的机器调用目标 Windows 机器上的命令。

    https://blogs.technet.microsoft.com/heyscriptingguy/2015/10/27/using-winrm-on-linux/

    https://github.com/diyan/pywinrm

    我不认为有用于在 Active Directory 中注册 SPN 的 Linux 工具。根据您的应用程序及其设置方式,您可以委托服务帐户注册 SPN。

    Open Active Directory Users and Computers.
    
    To open Active Directory Users and Computers, click Start, click Run, type dsa.msc, and then press ENTER.
    
    Click View, and verify that the Advanced Features check box is selected.
    
    Click Advanced Features, if it is not selected.
    
    If the domain to which you want to allow a disjoint namespace does not appear in the console, take the following steps:
    
        In the console tree, right-click Active Directory Users and Computers, and then click Connect to Domain.
    
        In the Domain box, type the name of the Active Directory domain to which you want to allow the disjoint namespace, and then click OK.
    
        As an alternative, you can use the Browse button to locate the Active Directory domain.
    
    In the console tree, right-click the node that represents the domain to which you want to allow a disjoint namespace, and then click Properties.
    
    On Security tab, click Advanced.
    
    On the Permissions tab, click Add.
    
    In Enter the object name to select, type the group or user account name to which you want to delegate permission, and then click OK.
    
    Configure the Apply onto box for Computer objects.
    
    At the bottom of the Permissions box, select the Allow check box that corresponds to the Validated write to service principal name permissions, and then click OK on the three open dialog boxes to confirm your changes.
    
    Close Active Directory Users and Computers.
    
    • 1

相关问题

  • 如果以域用户身份远程登录,PC 速度极慢

  • 如何在 Windows 2003 的 ou 级别应用策略

  • 允许用户更改其 Active Directory 密码的 Web 界面

  • MOSS 2007 无法使用 ActiveDirectoryMembershipProvider 配置表单身份验证

  • 通过 VPN 更改 Active Directory 密码

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve